From b92e518eaa0e3baeef460667dee0929d5b19cc3d Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Tue, 21 Feb 2023 16:21:51 +0100 Subject: [PATCH] add static CMS --- static/admin/config.yml | 33 ++ static/admin/index.html | 14 + static/admin/static-cms-app.js | 1012 ++++++++++++++++++++++++++++++++ 3 files changed, 1059 insertions(+) create mode 100644 static/admin/config.yml create mode 100644 static/admin/index.html create mode 100644 static/admin/static-cms-app.js diff --git a/static/admin/config.yml b/static/admin/config.yml new file mode 100644 index 0000000..8968119 --- /dev/null +++ b/static/admin/config.yml @@ -0,0 +1,33 @@ +backend: + name: gitea + repo: foobar/guide.web.vimaire.machine.dufour.io + base_url: http://teabag.vimaire.machine.dufour.io + api_root: http://git.vimaire.machine.dufour.io/api/v1 + branch: main + +media_folder: 'static/img/' +site_url: http://guide.web.vimaire.machine.dufour.io +display_url: http://guide.web.vimaire.machine.dufour.io +locale: 'en' + +collections: + - name: 'wiki' + label: 'Wiki' + folder: 'content' + editor: + preview: false + create: true + nested: + depth: 10 + summary: '{{ title }}' + fields: + - label: Title + name: title + widget: string + - label: Weight + name: weight + widget: number + - label: Body + name: body + widget: markdown + meta: { path: { widget: string, label: 'Path', index_file: '_index' } } diff --git a/static/admin/index.html b/static/admin/index.html new file mode 100644 index 0000000..b914f88 --- /dev/null +++ b/static/admin/index.html @@ -0,0 +1,14 @@ + + + + + + Content Manager + + + + + + + + diff --git a/static/admin/static-cms-app.js b/static/admin/static-cms-app.js new file mode 100644 index 0000000..6dcfbb9 --- /dev/null +++ b/static/admin/static-cms-app.js @@ -0,0 +1,1012 @@ +/*! For license information please see static-cms-app.js.LICENSE.txt */ +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.StaticCmsApp=t():e.StaticCmsApp=t()}(globalThis,(()=>(()=>{var __webpack_modules__={936:(e,t,n)=>{"use strict";var r=n(204),i=n(489);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n