-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: Add settings tab * fix: Persist theme * fix: fixes
- Loading branch information
Showing
7 changed files
with
100 additions
and
6 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<template> | ||
<div class="global-preferences"> | ||
<VueFormField title="Component Name Format"> | ||
<VueGroup | ||
:value="$shared.classifyComponents" | ||
class="extend" | ||
@input="$shared.classifyComponents = $event" | ||
> | ||
<VueGroupButton | ||
:value="false" | ||
label="kebab-case" | ||
/> | ||
<VueGroupButton | ||
:value="true" | ||
label="PascalCase" | ||
/> | ||
</VueGroup> | ||
</VueFormField> | ||
|
||
<VueFormField title="Theme"> | ||
<VueGroup | ||
:value="$shared.theme" | ||
class="extend" | ||
@input="$shared.theme = $event" | ||
> | ||
<VueGroupButton | ||
value="auto" | ||
label="Auto" | ||
/> | ||
<VueGroupButton | ||
value="dark" | ||
label="Dark" | ||
/> | ||
<VueGroupButton | ||
value="light" | ||
label="Light" | ||
/> | ||
</VueGroup> | ||
</VueFormField> | ||
</div> | ||
</template> | ||
|
||
<style lang="stylus" scoped> | ||
.global-preferences | ||
display flex | ||
flex-wrap wrap | ||
padding 1rem 1.5rem | ||
> * | ||
flex-basis 300px | ||
margin 0 .5rem 1rem .5rem | ||
</style>--> |
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,18 @@ | ||
<template> | ||
<div class="grid"> | ||
<GlobalPreferences /> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import GlobalPreferences from './GlobalPreferences.vue' | ||
import { mapState } from 'vuex' | ||
export default { | ||
components: { GlobalPreferences }, | ||
computed: mapState('events', [ | ||
'enabled' | ||
]) | ||
} | ||
</script> |
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