mirror of
https://github.com/zombieFox/nightTab.git
synced 2025-02-22 05:01:43 +01:00
remove firefox specific setting page
This commit is contained in:
parent
7a001a3da3
commit
bc2bb88c52
@ -1,69 +0,0 @@
|
||||
import { state } from '../../state';
|
||||
import { data } from '../../data';
|
||||
import { header } from '../../header';
|
||||
import { bookmark } from '../../bookmark';
|
||||
import { theme } from '../../theme';
|
||||
import { version } from '../../version';
|
||||
import { menu } from '../../menu';
|
||||
import { icon } from '../../icon';
|
||||
import { logo } from '../../logo';
|
||||
import { link } from '../../link';
|
||||
import { layout } from '../../layout';
|
||||
import { toolbar } from '../../toolbar';
|
||||
import { appName } from '../../appName';
|
||||
|
||||
import * as form from '../../form';
|
||||
|
||||
import { Button } from '../../button';
|
||||
import { Collapse } from '../../collapse';
|
||||
import { Edge } from '../../edge';
|
||||
import { Alert } from '../../alert';
|
||||
|
||||
import { Control_helperText } from '../../control/helperText';
|
||||
import { Control_inputButton } from '../../control/inputButton';
|
||||
import { Control_groupText } from '../../control/groupText';
|
||||
import { Control_radio } from '../../control/radio';
|
||||
import { Control_radioGrid } from '../../control/radioGrid';
|
||||
import { Control_checkbox } from '../../control/checkbox';
|
||||
import { Control_slider } from '../../control/slider';
|
||||
import { Control_sliderSlim } from '../../control/sliderSlim';
|
||||
import { Control_sliderDouble } from '../../control/sliderDouble';
|
||||
import { Control_colorMixer } from '../../control/colorMixer';
|
||||
import { Control_color } from '../../control/color';
|
||||
import { Control_text } from '../../control/text';
|
||||
import { Control_textReset } from '../../control/textReset';
|
||||
import { Control_textarea } from '../../control/textarea';
|
||||
|
||||
import { node } from '../../../utility/node';
|
||||
import { complexNode } from '../../../utility/complexNode';
|
||||
import { applyCSSVar } from '../../../utility/applyCSSVar';
|
||||
import { applyCSSClass } from '../../../utility/applyCSSClass';
|
||||
import { applyCSSState } from '../../../utility/applyCSSState';
|
||||
|
||||
const firefoxSetting = {};
|
||||
|
||||
firefoxSetting.firefox = (parent) => {
|
||||
|
||||
parent.appendChild(
|
||||
node('div', [
|
||||
complexNode({
|
||||
tag: 'p',
|
||||
text: 'Firefox does not allow addons to replace the "homepage". However there is a workaround:'
|
||||
}),
|
||||
form.wrap({
|
||||
children: [
|
||||
node('ol', [
|
||||
node('li:Open a new Firefox window'),
|
||||
node('li:Open Firefox <code>Preferences</code> and open a new tab (' + appName + ')'),
|
||||
node('li:In Firefox preferences under <code>Home</code>, change <code>Homepage and new windows</code> to <code>Custom URLs...</code>'),
|
||||
node('li:Then click <code>Use Current Page</code>'),
|
||||
]),
|
||||
node('p:' + appName + ' will now appear as the homepage.'),
|
||||
]
|
||||
})
|
||||
])
|
||||
);
|
||||
|
||||
};
|
||||
|
||||
export { firefoxSetting }
|
@ -9,7 +9,6 @@ import { headerSetting } from './headerSetting';
|
||||
import { toolbarSetting } from './toolbarSetting';
|
||||
import { themeSetting } from './themeSetting';
|
||||
import { dataSetting } from './dataSetting';
|
||||
import { firefoxSetting } from './firefoxSetting';
|
||||
import { supportSetting } from './supportSetting';
|
||||
import { coffeeSetting } from './coffeeSetting';
|
||||
import { appSetting } from './appSetting';
|
||||
@ -139,16 +138,6 @@ export const MenuContent = function({
|
||||
|
||||
switch (this.makeId(activeNavData.name)) {
|
||||
|
||||
case 'firefox':
|
||||
|
||||
menuContentItem.appendChild(this.element.header(activeNavData.name));
|
||||
|
||||
formElement = this.element.form({ indent: true });
|
||||
|
||||
firefoxSetting[this.makeId(activeNavData.name)](formElement);
|
||||
|
||||
break;
|
||||
|
||||
case 'support':
|
||||
|
||||
menuContentItem.appendChild(this.element.header(activeNavData.name));
|
||||
|
Loading…
Reference in New Issue
Block a user