prettier: format project
This commit is contained in:
94 files changed
+261
-252
No files matched your search
@@ -73,7 +73,7 @@
|
||||
<button
|
||||
onclick={() => {
|
||||
const newTheme = {
|
||||
id: Math.max(...themeData.data.themes.map(t => t.id)) + 1,
|
||||
id: Math.max(...themeData.data.themes.map((t) => t.id)) + 1,
|
||||
colors: getDefaultColors(),
|
||||
name: $t('routes.theme.preset.new'),
|
||||
}
|
||||
@@ -170,10 +170,10 @@
|
||||
</Header>
|
||||
<ColorSwatch
|
||||
value={themeData.current.colors.primary?.[900]}
|
||||
onchange={e => {
|
||||
onchange={(e) => {
|
||||
themeData.current.colors.primary[900] = e
|
||||
}}
|
||||
oncontextmenu={e => {
|
||||
oncontextmenu={(e) => {
|
||||
e.preventDefault()
|
||||
themeData.current.colors.primary[900] = defaultColors.primary[900]
|
||||
|
||||
@@ -183,10 +183,10 @@
|
||||
/>
|
||||
<ColorSwatch
|
||||
value={themeData.current.colors.primary?.[100]}
|
||||
onchange={e => {
|
||||
onchange={(e) => {
|
||||
themeData.current.colors.primary[100] = e
|
||||
}}
|
||||
oncontextmenu={e => {
|
||||
oncontextmenu={(e) => {
|
||||
e.preventDefault()
|
||||
themeData.current.colors.primary[100] = defaultColors.primary[100]
|
||||
|
||||
@@ -221,10 +221,10 @@
|
||||
<!--@ts-ignore-->
|
||||
<ColorSwatch
|
||||
bind:value={themeData.current.colors[category][shade]}
|
||||
onchange={e => {
|
||||
onchange={(e) => {
|
||||
themeData.current.colors[category][shade] = e
|
||||
}}
|
||||
oncontextmenu={e => {
|
||||
oncontextmenu={(e) => {
|
||||
e.preventDefault()
|
||||
themeData.current.colors[category][shade] =
|
||||
defaultColors[category][shade]
|
||||
|
||||
Reference in new issue
Block a user