From d4f9c31a1721fdea6b92ae90ca5c4bd8635fd0cb Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Thu, 29 Sep 2016 12:13:19 -0400 Subject: v0.2.0 - new admin theme --- themes/test/public/css/main.css | 0 themes/test/public/js/app.js | 15 ++++++++ themes/test/templates/404.liquid | 54 +++++++++++++++++++++++++++++ themes/test/templates/5xx.liquid | 54 +++++++++++++++++++++++++++++ themes/test/templates/index.liquid | 6 ++++ themes/test/templates/partials/app.liquid | 8 +++++ themes/test/templates/partials/flash.liquid | 20 +++++++++++ themes/test/templates/partials/head.liquid | 13 +++++++ themes/test/templates/partials/tail.liquid | 9 +++++ themes/test/templates/resource.liquid | 6 ++++ themes/test/templates/resource_new.liquid | 6 ++++ 11 files changed, 191 insertions(+) create mode 100644 themes/test/public/css/main.css create mode 100644 themes/test/public/js/app.js create mode 100644 themes/test/templates/404.liquid create mode 100644 themes/test/templates/5xx.liquid create mode 100644 themes/test/templates/index.liquid create mode 100644 themes/test/templates/partials/app.liquid create mode 100644 themes/test/templates/partials/flash.liquid create mode 100644 themes/test/templates/partials/head.liquid create mode 100644 themes/test/templates/partials/tail.liquid create mode 100644 themes/test/templates/resource.liquid create mode 100644 themes/test/templates/resource_new.liquid (limited to 'themes/test') diff --git a/themes/test/public/css/main.css b/themes/test/public/css/main.css new file mode 100644 index 0000000..e69de29 diff --git a/themes/test/public/js/app.js b/themes/test/public/js/app.js new file mode 100644 index 0000000..1e710e9 --- /dev/null +++ b/themes/test/public/js/app.js @@ -0,0 +1,15 @@ +var app = (function(){ + var app = {} + var cms + + app.init = function(){ + cms = app.cms = new OKCMS ({ ready: app.ready }) + } + app.ready = function(){ + console.log ("READY") + } + + return app +})() + +window.addEventListener("DOMContentLoaded", app.init) \ No newline at end of file diff --git a/themes/test/templates/404.liquid b/themes/test/templates/404.liquid new file mode 100644 index 0000000..87f5342 --- /dev/null +++ b/themes/test/templates/404.liquid @@ -0,0 +1,54 @@ + + + + 404 + + + +
+

¯\_(ツ)_/¯

+

We couldn't find that page.

+

Sure you have the right URL?

+ Back +
+ + diff --git a/themes/test/templates/5xx.liquid b/themes/test/templates/5xx.liquid new file mode 100644 index 0000000..f245545 --- /dev/null +++ b/themes/test/templates/5xx.liquid @@ -0,0 +1,54 @@ + + + + 404 + + + +
+

(;一_一)

+

Looks like we experienced an error.

+

Sorry about that. Maybe try again later.

+ Back +
+ + diff --git a/themes/test/templates/index.liquid b/themes/test/templates/index.liquid new file mode 100644 index 0000000..7dee4be --- /dev/null +++ b/themes/test/templates/index.liquid @@ -0,0 +1,6 @@ +{% include 'partials/head' %} + +{% include 'partials/flash' %} +{% include 'partials/app' %} + +{% include 'partials/tail' %} diff --git a/themes/test/templates/partials/app.liquid b/themes/test/templates/partials/app.liquid new file mode 100644 index 0000000..46c19e4 --- /dev/null +++ b/themes/test/templates/partials/app.liquid @@ -0,0 +1,8 @@ + + + + +
+
\ No newline at end of file diff --git a/themes/test/templates/partials/flash.liquid b/themes/test/templates/partials/flash.liquid new file mode 100644 index 0000000..e51a86b --- /dev/null +++ b/themes/test/templates/partials/flash.liquid @@ -0,0 +1,20 @@ +{% if success.length > 0 %} +
+
Changes saved.
+ +
+{% endif %} + +{% if errors.length > 0 %} +
+ {% for error in errors %} +
+
{{error.message}}
+
+ {% endfor %} +
+{% endif %} \ No newline at end of file diff --git a/themes/test/templates/partials/head.liquid b/themes/test/templates/partials/head.liquid new file mode 100644 index 0000000..e9c27dc --- /dev/null +++ b/themes/test/templates/partials/head.liquid @@ -0,0 +1,13 @@ + + + + + {{meta.project}} Admin + + + +
+ {{meta.project}} Admin + View Site +
+
\ No newline at end of file diff --git a/themes/test/templates/partials/tail.liquid b/themes/test/templates/partials/tail.liquid new file mode 100644 index 0000000..7727d69 --- /dev/null +++ b/themes/test/templates/partials/tail.liquid @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/themes/test/templates/resource.liquid b/themes/test/templates/resource.liquid new file mode 100644 index 0000000..7dee4be --- /dev/null +++ b/themes/test/templates/resource.liquid @@ -0,0 +1,6 @@ +{% include 'partials/head' %} + +{% include 'partials/flash' %} +{% include 'partials/app' %} + +{% include 'partials/tail' %} diff --git a/themes/test/templates/resource_new.liquid b/themes/test/templates/resource_new.liquid new file mode 100644 index 0000000..7dee4be --- /dev/null +++ b/themes/test/templates/resource_new.liquid @@ -0,0 +1,6 @@ +{% include 'partials/head' %} + +{% include 'partials/flash' %} +{% include 'partials/app' %} + +{% include 'partials/tail' %} -- cgit v1.2.3-70-g09d2