Skip to content
This repository has been archived by the owner on Jan 31, 2018. It is now read-only.

Bug 857264 - Rewrite publish system to use WebComponents for each trackevent and media #1632

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mjschranz
Copy link
Contributor

No description provided.

for ( k = 0; k < numSources - 1; k++ ) {
mediaUrlsString += mediaUrls[ k ] + '" , "';
for ( k = 0; k < numSources; k++ ) {
popcornString += '\n<webmaker-media href="' + mediaUrls[ k ] + '" target="' + currentMedia.target + '" ></webmaker-media>\n'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if there's a way for us to make the web components loadable server-side too, so we don't have to hardcode element generation.

@Pomax
Copy link
Contributor

Pomax commented Apr 5, 2013

I'm not sure this approach makes sense; with web components, what a user has in their client is already the code that should be published, minus whatever hosted-by-us requirements we have (like GA, etc). Making the server rebuild the page rather than having the user send over "this is my page HTML now" introduces an unnecessary step that is virtually guaranteed to rewrite what the user wants to save into something different. A better approach would be to have the client send over the serialized "I am looking at this document right now" view, and then validate->inject->store that.

@mjschranz
Copy link
Contributor Author

I agree but I think at the moment that's more effort than it's worth. Previous in the app you could view source before saving the project to the server and was removed at somepoint during the major UI redesign.

I'm thinking in the future when we integrate all this into the application itself perhaps we have multiple toggle able views: Normal/Graphic, Code and Preview. All accessible before sending any data to the server which would send basically preview + our meta data + GA and whatnot.

@Pomax
Copy link
Contributor

Pomax commented Apr 5, 2013

I think this is too big a difference to do in stages, but let's get some more input here. @humphd, @brettgaylor

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants