1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-07-31 15:08:31 +00:00

4.0.0-rc8.6

* Fixed: Update Fine to deal with changes to how the React Root is stored in the DOM.

Behind the Scenes

* Working on the UI for Translation Editing
* Refactor some of the main menu dialog logic into a more generic Dialog class
This commit is contained in:
SirStendec 2018-07-24 16:11:02 -04:00
parent 154a587c87
commit b8f86fe48f
14 changed files with 570 additions and 180 deletions

View file

@ -78,10 +78,18 @@ export default class Twilight extends BaseSite {
// Check for ?ffz-settings in page and open the
// settings window in exclusive mode.
const params = new URL(window.location).searchParams;
if (params && params.has('ffz-settings')) {
const main_menu = this.resolve('main_menu');
main_menu.exclusive = true;
main_menu.enable();
if ( params ) {
if ( params.has('ffz-settings') ) {
const main_menu = this.resolve('main_menu');
main_menu.dialog.exclusive = true;
main_menu.enable();
}
if ( params.has('ffz-translate') ) {
const translation = this.resolve('translation_ui');
translation.dialog.exclusive = true;
translation.enable();
}
}
}
@ -182,4 +190,9 @@ Twilight.ROUTES = {
'product': '/products/:productName',
'prime': '/prime',
'user': '/:userName'
}
}
Twilight.DIALOG_EXCLUSIVE = '.twilight-main,.twilight-minimal-root>div,.twilight-root>.tw-full-height,.clips-root';
Twilight.DIALOG_MAXIMIZED = '.twilight-main,.twilight-minimal-root,.twilight-root .dashboard-side-nav+.tw-full-height,.clips-root>.tw-full-height .scrollable-area';
Twilight.DIALOG_SELECTOR = '.twilight-root>.tw-full-height,.twilight-minimal-root>.tw-full-height,.clips-root>.tw-full-height .scrollable-area';