Skip to content

Commit

Permalink
feature: template_blocks page
Browse files Browse the repository at this point in the history
  • Loading branch information
francesco-filicetti committed Apr 22, 2021
1 parent 5c29929 commit ff269ef
Show file tree
Hide file tree
Showing 11 changed files with 94 additions and 37 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

setup(
name='unicms-editorial-board',
version='0.7.3',
version='0.8.0',

packages=[PKG_NAME],
package_dir={PKG_NAME: f"{SRC_FOLDER}/{PKG_NAME}"},
Expand Down

This file was deleted.

This file was deleted.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
self.__precacheManifest = [
{
"revision": "ce3831ef08f512662465",
"revision": "70122fa78083fbd031ad",
"url": "/static/unicms_editorial_board_vue/css/app.bca404fa.css"
},
{
"revision": "ce3831ef08f512662465",
"url": "/static/unicms_editorial_board_vue/js/app.4a9ed882.js"
"revision": "70122fa78083fbd031ad",
"url": "/static/unicms_editorial_board_vue/js/app.7e9b774a.js"
},
{
"revision": "9c41a8a956028c357565",
Expand All @@ -16,7 +16,7 @@ self.__precacheManifest = [
"url": "/static/unicms_editorial_board_vue/js/chunk-vendors.b3ebd97f.js"
},
{
"revision": "7be7b8978b18945e74db782cd2e1c7e2",
"revision": "6b0160a380b6ea8494d52f8bbee96815",
"url": "/static/unicms_editorial_board_vue/index.html"
},
{
Expand All @@ -28,16 +28,16 @@ self.__precacheManifest = [
"url": "/static/unicms_editorial_board_vue/favicon.png"
},
{
"revision": "be74132f42ae1d3502f9a9b9fff68ac1",
"url": "/static/unicms_editorial_board_vue/Dashboard.PNG"
"revision": "a9615bac158705203261e8348f574cc8",
"url": "/static/unicms_editorial_board_vue/img/default-avatar.png"
},
{
"revision": "a9615bac158705203261e8348f574cc8",
"url": "/static/unicms_editorial_board_vue/img/faces/face-0.jpg"
},
{
"revision": "a9615bac158705203261e8348f574cc8",
"url": "/static/unicms_editorial_board_vue/img/default-avatar.png"
"revision": "be74132f42ae1d3502f9a9b9fff68ac1",
"url": "/static/unicms_editorial_board_vue/Dashboard.PNG"
},
{
"revision": "99e58416b89637502b40ac8350eed85a",
Expand Down Expand Up @@ -87,14 +87,14 @@ self.__precacheManifest = [
"revision": "f575a04ebbb31b5798a4c54783e745a2",
"url": "/static/unicms_editorial_board_vue/img/new_logo.png"
},
{
"revision": "7a4ce7cc040fc1cb8176cde106e9232f",
"url": "/static/unicms_editorial_board_vue/img/sidebar-2.jpg"
},
{
"revision": "6be21e8a1b7d63048728851c6003e189",
"url": "/static/unicms_editorial_board_vue/img/sidebar-1.jpg"
},
{
"revision": "7a4ce7cc040fc1cb8176cde106e9232f",
"url": "/static/unicms_editorial_board_vue/img/sidebar-2.jpg"
},
{
"revision": "cd253e23ed052deeb80b42d2ed772183",
"url": "/static/unicms_editorial_board_vue/img/sidebar-3.jpg"
Expand All @@ -103,6 +103,10 @@ self.__precacheManifest = [
"revision": "897b4cf909210560a84398d36da51983",
"url": "/static/unicms_editorial_board_vue/img/sidebar-4.jpg"
},
{
"revision": "9ebea76ee1225f00d882b21547a7b49f",
"url": "/static/unicms_editorial_board_vue/img/sidebar-5.jpg"
},
{
"revision": "44bf13a71a4db6e15913fe8af9296711",
"url": "/static/unicms_editorial_board_vue/img/tim_80x80.png"
Expand All @@ -111,10 +115,6 @@ self.__precacheManifest = [
"revision": "c2a605fbc0e687b2e1b4b90a7c445cdd",
"url": "/static/unicms_editorial_board_vue/img/vue-logo.png"
},
{
"revision": "9ebea76ee1225f00d882b21547a7b49f",
"url": "/static/unicms_editorial_board_vue/img/sidebar-5.jpg"
},
{
"revision": "b6216d61c03e6ce0c9aea6ca7808f7ca",
"url": "/static/unicms_editorial_board_vue/robots.txt"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
importScripts("https://storage.googleapis.com/workbox-cdn/releases/3.6.3/workbox-sw.js");

importScripts(
"/static/unicms_editorial_board_vue/precache-manifest.e81f4bd6cd76636191cb2002401a5e9f.js"
"/static/unicms_editorial_board_vue/precache-manifest.2491c37a400a025c16c67fd9abd73da8.js"
);

workbox.core.setCacheNameDetails({prefix: "vue-light-bootstrap-dashboard"});
Expand Down
2 changes: 1 addition & 1 deletion src/unicms_editorial_board/templates/board.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!DOCTYPE html><html><head><meta charset="utf-8"><link rel="apple-touch-icon" sizes="76x76" href="/static/unicms_editorial_board_vue/apple-icon.png"><!--[if IE]><link rel="icon" type="image/png" sizes="96x96" href="/static/unicms_editorial_board_vue/favicon.png"><![endif]--><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"><title>uniCMS - Editorial Board</title><meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0"><link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"><link href="https://fonts.googleapis.com/css?family=Montserrat:400,700,200" rel="stylesheet"><link href="/static/unicms_editorial_board_vue/css/app.bca404fa.css" rel="preload" as="style"><link href="/static/unicms_editorial_board_vue/css/chunk-vendors.25bdde32.css" rel="preload" as="style"><link href="/static/unicms_editorial_board_vue/js/app.4a9ed882.js" rel="preload" as="script"><link href="/static/unicms_editorial_board_vue/js/chunk-vendors.b3ebd97f.js" rel="preload" as="script"><link href="/static/unicms_editorial_board_vue/css/chunk-vendors.25bdde32.css" rel="stylesheet"><link href="/static/unicms_editorial_board_vue/css/app.bca404fa.css" rel="stylesheet"><link rel="icon" type="image/png" sizes="32x32" href="/static/unicms_editorial_board_vue/img/icons/favicon-32x32.png"><link rel="icon" type="image/png" sizes="16x16" href="/static/unicms_editorial_board_vue/img/icons/favicon-16x16.png"><link rel="manifest" href="/static/unicms_editorial_board_vue/manifest.json"><meta name="theme-color" content="#344675"><meta name="apple-mobile-web-app-capable" content="yes"><meta name="apple-mobile-web-app-status-bar-style" content="#344675"><meta name="apple-mobile-web-app-title" content="uniCMS - Unical Editorial Board"><link rel="apple-touch-icon" href="/static/unicms_editorial_board_vue/img/icons/apple-touch-icon-152x152.png"><link rel="mask-icon" href="/static/unicms_editorial_board_vue/img/icons/safari-pinned-tab.svg" color="#344675"><meta name="msapplication-TileImage" content="/static/unicms_editorial_board_vue/img/icons/msapplication-icon-144x144.png"><meta name="msapplication-TileColor" content="#344675"></head><body><div id="app"></div><script src="/static/unicms_editorial_board_vue/js/chunk-vendors.b3ebd97f.js"></script><script src="/static/unicms_editorial_board_vue/js/app.4a9ed882.js"></script></body></html>
<!DOCTYPE html><html><head><meta charset="utf-8"><link rel="apple-touch-icon" sizes="76x76" href="/static/unicms_editorial_board_vue/apple-icon.png"><!--[if IE]><link rel="icon" type="image/png" sizes="96x96" href="/static/unicms_editorial_board_vue/favicon.png"><![endif]--><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"><title>uniCMS - Editorial Board</title><meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0"><link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"><link href="https://fonts.googleapis.com/css?family=Montserrat:400,700,200" rel="stylesheet"><link href="/static/unicms_editorial_board_vue/css/app.bca404fa.css" rel="preload" as="style"><link href="/static/unicms_editorial_board_vue/css/chunk-vendors.25bdde32.css" rel="preload" as="style"><link href="/static/unicms_editorial_board_vue/js/app.7e9b774a.js" rel="preload" as="script"><link href="/static/unicms_editorial_board_vue/js/chunk-vendors.b3ebd97f.js" rel="preload" as="script"><link href="/static/unicms_editorial_board_vue/css/chunk-vendors.25bdde32.css" rel="stylesheet"><link href="/static/unicms_editorial_board_vue/css/app.bca404fa.css" rel="stylesheet"><link rel="icon" type="image/png" sizes="32x32" href="/static/unicms_editorial_board_vue/img/icons/favicon-32x32.png"><link rel="icon" type="image/png" sizes="16x16" href="/static/unicms_editorial_board_vue/img/icons/favicon-16x16.png"><link rel="manifest" href="/static/unicms_editorial_board_vue/manifest.json"><meta name="theme-color" content="#344675"><meta name="apple-mobile-web-app-capable" content="yes"><meta name="apple-mobile-web-app-status-bar-style" content="#344675"><meta name="apple-mobile-web-app-title" content="uniCMS - Unical Editorial Board"><link rel="apple-touch-icon" href="/static/unicms_editorial_board_vue/img/icons/apple-touch-icon-152x152.png"><link rel="mask-icon" href="/static/unicms_editorial_board_vue/img/icons/safari-pinned-tab.svg" color="#344675"><meta name="msapplication-TileImage" content="/static/unicms_editorial_board_vue/img/icons/msapplication-icon-144x144.png"><meta name="msapplication-TileColor" content="#344675"></head><body><div id="app"></div><script src="/static/unicms_editorial_board_vue/js/chunk-vendors.b3ebd97f.js"></script><script src="/static/unicms_editorial_board_vue/js/app.7e9b774a.js"></script></body></html>
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,15 @@
<p>Publications</p>
</sidebar-link>

<sidebar-link to="/blocks">
<b-icon icon="bricks"
class="mr-4 ml-1"
variant="white"
scale="1.9">
</b-icon>
<p>Blocks</p>
</sidebar-link>


</side-bar>
<div class="main-panel">
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<template>
<CompleteTable
:api_source="api_source"
:fields="fields"
:images="images"
:ordering_list="ordering_list"
:page_title="page_title">
</CompleteTable>
</template>
<script>
import CompleteTable from '../layout/CompleteTable.vue'
export default {
components: {
CompleteTable
},
data () {
return {
api_source: '/api/editorial-board/templates/blocks/',
fields: [
'name',
'type',
'image',
'description',
],
images: ['image'],
ordering_list: [{ text: 'Name', value: 'name' },
{ text: 'Type', value: 'type' },
{ text: 'Description', value: 'description' }],
page_title: 'Template blocks',
}
}
}
</script>
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ import WebpathPagePublicationEdit from 'src/pages/WebpathPagePublicationEdit.vue
import WebpathPageRelated from 'src/pages/WebpathPageRelated.vue'
import WebpathPageRelatedNew from 'src/pages/WebpathPageRelatedNew.vue'
import WebpathPageRelatedEdit from 'src/pages/WebpathPageRelatedEdit.vue'
import TemplateBlocks from 'src/pages/TemplateBlocks.vue'

const routes = [
{
Expand Down Expand Up @@ -1415,6 +1416,19 @@ const routes = [
}
}
},

// template blocks
{
path: 'blocks',
name: 'TemplateBlocks',
component: TemplateBlocks,
meta: {
breadcrumb: {
label: 'Blocks',
parent: 'Dashboard'
}
}
},
]
},
{ path: '*', component: Error404 }
Expand Down

0 comments on commit ff269ef

Please sign in to comment.