-
Notifications
You must be signed in to change notification settings - Fork 278
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* move quality-chooser to vue * add js libs * fix form submitting * move new vue component to vue-components dir * rename qualityChooser file * Rename "preffered" to preferred * Fix quality chooser (tested only on add new show page) + a few changes in add-show-options I needed to make the save defaults button work better * Remove imports of quality-chooser.js, remove map files * Update files in the other themes quality-chooser.mako add-show-options.js vue-submit-form.js * More fixes - Fix Backlog warning missing word and link. - Fix archive episodes button, html and function. * remove old js tag and move component import to main.mako * Fix quality chooser for add-show-options **Always render** the allowed/preferred qualities select elements, so jQuery could pull data from them to send to Python. Signed-off-by: sharkykh <[email protected]> * Remove quality-chooser.js again it was probably re-added in the rebase by mistake Signed-off-by: sharkykh <[email protected]> * Add watches to emit event when qualities change. * Update component to support massEdit and some finishing touches * gulp * Fix Add Show 'Step 3' section height not expanding when changing from a preset to custom quality + Fix indentation in Vue code
- Loading branch information
1 parent
ff7523f
commit 6b67a67
Showing
50 changed files
with
840 additions
and
792 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
window.vueSubmitForm = async function(formId) { | ||
const element = document.getElementById(formId); | ||
const formData = new FormData(element); | ||
const method = element.getAttribute('method'); | ||
const base = document.getElementsByTagName('base')[0].getAttribute('href'); | ||
const path = element.getAttribute('action'); | ||
const redirect = element.getAttribute('redirect'); | ||
|
||
// @TODO: Add this back when we're JSON only | ||
// This converts formData to JSON | ||
// const body = Array.from(formData.entries()).reduce((memo, pair) => ({ | ||
// ...memo, | ||
// [pair[0]]: pair[1] | ||
// }), {}); | ||
this.$http[method](path, { body: formData, redirect: 'follow' }) | ||
.then(() => { | ||
if (redirect) { | ||
window.location.href = base + redirect; | ||
} | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.