mirror of https://github.com/Requarks/wiki.git
NGPixel
2 years ago
No known key found for this signature in database
GPG Key ID: 8FDA2F1757F60D63
24 changed files with 235 additions and 352 deletions
Unified View
Diff Options
-
65client/components/admin/admin-theme.vue
-
81client/components/editor.vue
-
92client/components/editor/editor-modal-properties.vue
-
20client/graph/admin/theme/theme-mutation-save.gql
-
7client/graph/admin/theme/theme-query-config.gql
-
9client/store/page.js
-
28client/themes/default/components/page-toc-item.vue
-
30client/themes/default/components/page.vue
-
2dev/containers/Dockerfile
-
7server/app/data.yml
-
33server/controllers/common.js
-
11server/db/migrations-sqlite/2.5.13.js
-
12server/db/migrations-sqlite/2.5.284.js
-
11server/db/migrations/2.5.13.js
-
12server/db/migrations/2.5.284.js
-
8server/graph/resolvers/theming.js
-
11server/graph/schemas/common.graphql
-
62server/graph/schemas/page.graphql
-
14server/graph/schemas/theming.graphql
-
45server/models/pages.js
-
9server/modules/storage/disk/common.js
-
8server/setup.js
-
5server/views/editor.pug
-
5server/views/page.pug
@ -1,11 +0,0 @@ |
|||||
exports.up = async knex => { |
|
||||
await knex.schema |
|
||||
.alterTable('pages', table => { |
|
||||
table.integer('minTocLevel').notNullable().defaultTo(0) |
|
||||
table.integer('tocLevel').notNullable().defaultTo(0) |
|
||||
table.integer('tocCollapseLevel').notNullable().defaultTo(0) |
|
||||
table.boolean('doUseTocDefault').notNullable().defaultTo(true) |
|
||||
}) |
|
||||
} |
|
||||
|
|
||||
exports.down = knex => { } |
|
@ -0,0 +1,12 @@ |
|||||
|
exports.up = async knex => { |
||||
|
await knex.schema |
||||
|
.alterTable('pages', table => { |
||||
|
table.json('tocOptions').notNullable().defaultTo(JSON.stringify({ |
||||
|
min: 1, |
||||
|
max: 2, |
||||
|
useDefault: true |
||||
|
})) |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
exports.down = knex => { } |
@ -1,11 +0,0 @@ |
|||||
exports.up = async knex => { |
|
||||
await knex.schema |
|
||||
.alterTable('pages', table => { |
|
||||
table.integer('minTocLevel').notNullable().defaultTo(0) |
|
||||
table.integer('tocLevel').notNullable().defaultTo(0) |
|
||||
table.integer('tocCollapseLevel').notNullable().defaultTo(0) |
|
||||
table.boolean('doUseTocDefault').notNullable().defaultTo(true) |
|
||||
}) |
|
||||
} |
|
||||
|
|
||||
exports.down = knex => { } |
|
@ -0,0 +1,12 @@ |
|||||
|
exports.up = async knex => { |
||||
|
await knex.schema |
||||
|
.alterTable('pages', table => { |
||||
|
table.json('tocOptions').notNullable().defaultTo(JSON.stringify({ |
||||
|
min: 1, |
||||
|
max: 2, |
||||
|
useDefault: true |
||||
|
})) |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
exports.down = knex => { } |
Write
Preview
Loading…
Cancel
Save