Skip to content

Commit

Permalink
fix: publication edit form
Browse files Browse the repository at this point in the history
  • Loading branch information
francesco-filicetti committed Oct 28, 2021
1 parent 2cb5838 commit 40849cd
Show file tree
Hide file tree
Showing 10 changed files with 27 additions and 27 deletions.
4 changes: 2 additions & 2 deletions publiccode.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,10 @@ name: uniCMS Editorial Board
platforms:
- linux
- web
releaseDate: '2021-09-14'
releaseDate: '2021-10-28'
roadmap: 'https://github.com/UniversitaDellaCalabria/unicms-editorial-board/issues'
softwareType: standalone/web
softwareVersion: v0.23.3
softwareVersion: v0.23.4
url: 'https://github.com/UniversitaDellaCalabria/unicms-editorial-board'
usedBy:
- Università della Calabria - https://www.unical.it

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": "7c6fbacb53b20afc4ee1",
"revision": "baaa72b893730c7edf8c",
"url": "/static/unicms_editorial_board_vue/css/app.bca404fa.css"
},
{
"revision": "7c6fbacb53b20afc4ee1",
"url": "/static/unicms_editorial_board_vue/js/app.017ab612.js"
"revision": "baaa72b893730c7edf8c",
"url": "/static/unicms_editorial_board_vue/js/app.cdb7ad54.js"
},
{
"revision": "43fc4a4cc52bf4236d47",
Expand All @@ -16,7 +16,7 @@ self.__precacheManifest = [
"url": "/static/unicms_editorial_board_vue/js/chunk-vendors.af3c99db.js"
},
{
"revision": "f1c35a1d43c82fb8f0d648d9bcfb3346",
"revision": "e8d79644a27f417139878f7c7fa70319",
"url": "/static/unicms_editorial_board_vue/index.html"
},
{
Expand All @@ -32,13 +32,17 @@ self.__precacheManifest = [
"url": "/static/unicms_editorial_board_vue/img/default-avatar.png"
},
{
"revision": "99e58416b89637502b40ac8350eed85a",
"url": "/static/unicms_editorial_board_vue/img/faces/face-1.jpg"
"revision": "be74132f42ae1d3502f9a9b9fff68ac1",
"url": "/static/unicms_editorial_board_vue/Dashboard.PNG"
},
{
"revision": "a9615bac158705203261e8348f574cc8",
"url": "/static/unicms_editorial_board_vue/img/faces/face-0.jpg"
},
{
"revision": "99e58416b89637502b40ac8350eed85a",
"url": "/static/unicms_editorial_board_vue/img/faces/face-1.jpg"
},
{
"revision": "0e953b1ea6d6e3addd7210e9c7c420a7",
"url": "/static/unicms_editorial_board_vue/img/faces/face-2.jpg"
Expand All @@ -51,10 +55,6 @@ self.__precacheManifest = [
"revision": "0b68eb8f1cde1fc9987a9196df05b96a",
"url": "/static/unicms_editorial_board_vue/img/faces/face-4.jpg"
},
{
"revision": "be74132f42ae1d3502f9a9b9fff68ac1",
"url": "/static/unicms_editorial_board_vue/Dashboard.PNG"
},
{
"revision": "4ab22eca4053c14a34e4bdb6390deae9",
"url": "/static/unicms_editorial_board_vue/img/faces/face-5.jpg"
Expand Down Expand Up @@ -107,14 +107,14 @@ self.__precacheManifest = [
"revision": "44bf13a71a4db6e15913fe8af9296711",
"url": "/static/unicms_editorial_board_vue/img/tim_80x80.png"
},
{
"revision": "9ebea76ee1225f00d882b21547a7b49f",
"url": "/static/unicms_editorial_board_vue/img/sidebar-5.jpg"
},
{
"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.d090f5efb2a12083b7a8202993e3d3e7.js"
"/static/unicms_editorial_board_vue/precache-manifest.09bd4fe9076ffad36a0c60f588990d5b.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.017ab612.js" rel="preload" as="script"><link href="/static/unicms_editorial_board_vue/js/chunk-vendors.af3c99db.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.af3c99db.js"></script><script src="/static/unicms_editorial_board_vue/js/app.017ab612.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.cdb7ad54.js" rel="preload" as="script"><link href="/static/unicms_editorial_board_vue/js/chunk-vendors.af3c99db.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.af3c99db.js"></script><script src="/static/unicms_editorial_board_vue/js/app.cdb7ad54.js"></script></body></html>
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export default {
alerts: [],
publication_id: this.$route.params.publication_id,
form: {},
form_source: '/api/editorial-board/publications/form/',
form_source: '/api/editorial-board/publications/edit-form/',
files: {},
add_modal_fields: {'presentation_image': this.$router.resolve({name: 'MediaNew'}).href},
rich_text_fields: ['content'],
Expand All @@ -140,7 +140,7 @@ export default {
methods: {
setData(data) {
for (const [key, value] of Object.entries(data)) {
if(key=='category') {
if(key=='categories_data') {
let categories = [];
value.forEach(v => {categories.push(v.id)});
this.$set(this.form, key, categories)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,14 @@ export default {
'id',
'name',
'title',
'category',
{key: 'category_data', label: 'Category'},
'relevance',
{key: 'is_active', label: 'Active'},
{key: 'childs', label: 'Related'},
'actions'
],
arrays: ['category'],
arrays_map: [{'category': 'name'}],
arrays: ['category_data'],
arrays_map: [{'category_data': 'name'}],
files: ['presentation_image'],
ordering: 'name',
ordering_list: [{ text: 'Id', value: 'id' },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default {
page_id: this.$route.params.page_id,
publication_id: this.$route.params.publication_id,
form: {},
form_source: '/api/editorial-board/sites/'+this.$route.params.site_id+'/webpaths/'+this.$route.params.webpath_id+'/pages/'+this.$route.params.page_id+'/publications/form/',
form_source: '/api/editorial-board/sites/'+this.$route.params.site_id+'/webpaths/'+this.$route.params.webpath_id+'/pages/'+this.$route.params.page_id+'/publications/edit-form/',
add_modal_fields: {'publication': this.$router.resolve({name: 'PublicationNew'}).href},
page_title: '',
redis_alert: null,
Expand Down

0 comments on commit 40849cd

Please sign in to comment.