Refactor sass for theming

This commit is contained in:
Cadence Ember
2020-05-09 21:34:00 +12:00
parent 710400c4f1
commit 23e2ffecbf
14 changed files with 226 additions and 128 deletions

View File

@@ -114,6 +114,21 @@ let constants = {
default: "",
boolean: true,
replaceEmptyWithDefault: true
},{
name: "save_data",
default: "automatic",
boolean: false,
replaceEmptyWithDefault: true
},{
name: "rewrite_youtube",
default: "",
boolean: false,
replaceEmptyWithDefault: true
},{
name: "rewrite_twitter",
default: "",
boolean: false,
replaceEmptyWithDefault: true
}
],
@@ -210,7 +225,7 @@ let constants = {
additional_routes: [],
database_version: 5
database_version: 6
}
// Override values from config and export the result

View File

@@ -75,6 +75,17 @@ const deltas = new Map([
.run()
})()
}],
// version 5 to version 6
[6, function() {
db.transaction(() => {
db.prepare("ALTER TABLE UserSettings ADD COLUMN save_data TEXT NOT NULL DEFAULT 'automatic'")
.run()
db.prepare("ALTER TABLE UserSettings ADD COLUMN rewrite_youtube TEXT NOT NULL DEFAULt ''")
.run()
db.prepare("ALTER TABLE UserSettings ADD COLUMN rewrite_twitter TEXT NOT NULL DEFAULT ''")
.run()
})()
}]
])
module.exports = async function() {