mirror of
https://git.sr.ht/~cadence/bibliogram
synced 2026-03-01 18:31:35 +00:00
Refactor sass for theming
This commit is contained in:
parent
710400c4f1
commit
23e2ffecbf
14 changed files with 226 additions and 128 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue