Remove old components

This commit is contained in:
Samuel Elliott 2018-02-12 17:56:22 +00:00
parent 7e2fca9059
commit 8d7261a24a
No known key found for this signature in database
GPG Key ID: 8420C7CDE43DC4D6
4 changed files with 0 additions and 102 deletions

View File

@ -1,45 +0,0 @@
/**
* BetterDiscord Core Settings Component
* Copyright (c) 2015-present Jiiks/JsSucks - https://github.com/Jiiks / https://github.com/JsSucks
* All rights reserved.
* https://betterdiscord.net
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
<template>
<SettingsWrapper headertext="Core Settings">
<div class="bd-form-item" v-for="setting in settings" :key="setting.id">
<SettingSwitch key="setting.id" :setting="setting" :onClick="settingOnClick" :disabled="setting.disabled" />
<div class="bd-form-divider" />
</div>
</SettingsWrapper>
</template>
<script>
// Imports
import { SettingsWrapper } from './';
import { SettingSwitch } from '../common';
/*Methods*/
function settingOnClick(setting) {
if (setting.enabled) return this.disableSetting('core', setting.id);
this.enableSetting('core', setting.id);
}
const methods = { settingOnClick };
export default {
props: ['settings', 'enableSetting', 'disableSetting'],
components: {
SettingsWrapper, SettingSwitch
},
methods: {
settingOnClick(setting) {
if (setting.enabled) return this.disableSetting('core', setting.id);
this.enableSetting('core', setting.id);
}
}
}
</script>

View File

@ -1,27 +0,0 @@
/**
* BetterDiscord Emote Settings Component
* Copyright (c) 2015-present Jiiks/JsSucks - https://github.com/Jiiks / https://github.com/JsSucks
* All rights reserved.
* https://betterdiscord.net
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
<template>
<SettingsWrapper headertext="Emote Settings">
</SettingsWrapper>
</template>
<script>
// Imports
import { SettingsWrapper } from './';
import { SettingSwitch } from '../common';
export default {
components: {
SettingsWrapper,
SettingSwitch
}
}
</script>

View File

@ -1,27 +0,0 @@
/**
* BetterDiscord UI Settings Component
* Copyright (c) 2015-present Jiiks/JsSucks - https://github.com/Jiiks / https://github.com/JsSucks
* All rights reserved.
* https://betterdiscord.net
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
<template>
<SettingsWrapper headertext="UI Settings">
</SettingsWrapper>
</template>
<script>
// Imports
import { SettingsWrapper } from './';
import { SettingSwitch } from '../common';
export default {
components: {
SettingsWrapper,
SettingSwitch
}
}
</script>

View File

@ -1,8 +1,5 @@
export { default as SettingsWrapper } from './SettingsWrapper.vue';
export { default as SettingsPanel } from './SettingsPanel.vue';
export { default as CoreSettings } from './CoreSettings.vue';
export { default as UISettings } from './UISettings.vue';
export { default as EmoteSettings } from './EmoteSettings.vue';
export { default as CssEditorView } from './CssEditor.vue';
export { default as PluginsView } from './PluginsView.vue';
export { default as ThemesView } from './ThemesView.vue';