Untitled
unknown
plain_text
3 years ago
10 kB
10
Indexable
APP EXT CONFIG
window.GP = window.GP || {};
GP.config = GP.config || {};
var cfg = {
pageAfterProfileUpdate: "",
smallPicture: "./images/small-picture.jpg",
mainPicture: "./images/main-picture.jpg",
headerLogo: "./images/header-logo.png",
footerPicture: "./images/footer-logos.png",
logoApp: "./images/logo-app.png",
headerContent: "Krajowy Zarząd Gospodarki Wodnej",
footerContent: {
name: "Krajowy Zarząd Gospodarki Wodnej",
street: "ul. Grzybowska 80/82",
postCode: "00-844 Warszawie",
phone: "+48 22 37 20 211",
fax: "+48 22 37 20 290",
mail: "biuroisok@kzgw.gov.pl",
},
clientHomePage: "",
clientHomePageTitle: "",
titleApp: "MZS",
menuHeader: "Menu",
defaultPage: "home",
pageAfterLogin: "casePage/caseList/",
enableSubstitutions: true,
disabledMenuDrawer: true,
enableSystemInfo: true,
addCaseToDocFromDocsBtn: true,
defaultJrwaYear: "2023",
jrwaYears: ["2023", "2022", "2021", "2020"],
deliverTypeList: [
{
deliverTypeId: "NATIONAL_ARCHIVES",
deliverTypeName: "Archiwum Państwowe",
},
{
deliverTypeId: "TO_DESTROY",
deliverTypeName: "Do zniszczenia",
},
],
borrowingTypeList: [
{
borrowingTypeId: "TO_TAKE",
borrowingTypeName: "Wypożyczenie",
},
{
borrowingTypeId: "TO_LOOK",
borrowingTypeName: "Udostępnienie na miejscu",
},
],
orgsToCategories: {
isokRzgw: "categoryrzgw",
isokNw: "category_zz_nw",
isokZzl: "category_zz_nw",
isokKzgw: "categorykzgw",
},
orgDesc: true,
folderModule: true,
archivedModule: true,
registerModule: true,
cardModule: true,
pages: [
{
id: "login",
src: "./bower_components/imap-app-pages-layout/components/login-page.html",
tag: "login-page",
label: "Logowanie",
icon: "assignment",
description: "",
needUserLogged: false,
hideHeader: true,
properties: {},
},
{
id: "home",
src: "./src/pages/page-home.html",
tag: "page-home",
label: "ISOK MZS",
icon: "assignment",
description: "",
needUserLogged: false,
color: "#017bc5",
properties: {},
},
{
id: "profil",
src: "./src/pages/page-user-profile.html",
tag: "page-user-profile",
label: "Dane użytkownika",
icon: "assignment",
description: "Strona użytkownika",
color: "#017bc5",
needUserLogged: true,
properties: {},
},
{
id: "admin",
src: "./src/pages/page-admin-panel.html",
tag: "page-admin-panel",
label: "Panel Admina",
icon: "assignment",
description: "",
color: "#017bc5",
needUserLogged: true,
hideHeader: true,
properties: {},
groupPermission: [
{
value: "allOrg",
label: "allOrg",
id: "allOrg",
},
{
value: "manager",
label: "manager",
id: "manager",
},
],
},
{
id: "subjectPage",
src: "./src/pages/subject-page/subject-page.html",
tag: "subject-page",
label: "Podmioty",
icon: "assignment",
description: "",
color: "#017bc5",
needUserLogged: true,
hideHeader: true,
properties: {},
},
{
id: "substitutionPage",
src: "./src/pages/substitution-page/substitution-page.html",
tag: "substitution-page",
label: "Moduł Zastępstw",
icon: "assignment",
description: "",
color: "#017bc5",
needUserLogged: true,
hideHeader: true,
properties: {},
},
{
id: "archivePage",
src: "./src/pages/archive-page/archive-page.html",
tag: "archive-page",
label: "Archiwum",
icon: "assignment",
description: "",
color: "#017bc5",
needUserLogged: true,
hideHeader: true,
properties: {},
},
{
id: "foldersPage",
src: "./src/pages/folders-page/folders-page.html",
tag: "folders-page",
label: "Teczki",
icon: "assignment",
description: "",
color: "#017bc5",
needUserLogged: true,
hideHeader: true,
properties: {},
},
{
id: "registersPage",
src: "./src/pages/registers-page/registers-page.html",
tag: "registers-page",
label: "Spisy",
icon: "assignment",
description: "",
color: "#017bc5",
needUserLogged: true,
hideHeader: true,
properties: {},
},
{
id: "borrowed",
src: "./src/pages/archives-page/archives-page.html",
tag: "borrowed-archives-page",
label: "Wypożyczenia",
icon: "assignment",
description: "",
color: "#017bc5",
needUserLogged: true,
hideHeader: true,
properties: {},
},
{
id: "casePage",
src: "./src/pages/case-page/case-page.html",
tag: "case-page",
hideHeader: true,
label: "Sprawy",
icon: "assignment",
description: "",
color: "#017bc5",
needUserLogged: true,
properties: {
prop1: "value1",
},
},
{
id: "addCase",
src: "./src/pages/case-page/add-case.html",
tag: "add-case",
label: "Załóż sprawę",
icon: "assignment",
description: "",
color: "#017bc5",
needUserLogged: true,
properties: {},
},
{
id: "taskPage",
src: "./src/pages/task-page/task-page.html",
tag: "task-page",
label: "Zadania",
icon: "assignment",
hideHeader: true,
description: "",
color: "#017bc5",
needUserLogged: true,
properties: {},
},
{
id: "taskList",
src: "./src/pages/task-page/task-list.html",
tag: "task-list",
label: "Zadania",
icon: "assignment",
hideHeader: true,
description: "",
color: "#017bc5",
needUserLogged: true,
properties: {},
},
{
id: "docs",
src: "./src/pages/docs-page/docs-page.html",
tag: "docs-page",
label: "Dokumenty",
icon: "assignment",
hideHeader: true,
description: "",
color: "#017bc5",
needUserLogged: true,
properties: {},
},
{
id: "notification",
src: "./src/pages/notification/notification-page.html",
tag: "notification-page",
label: "Powiadomienia",
icon: "assignment",
hideHeader: true,
description: "",
color: "#017bc5",
needUserLogged: true,
properties: {},
},
{
id: "archives",
src: "./src/pages/archives-page/archives-page.html",
tag: "archives-page",
label: "Archiwum",
icon: "assignment",
hideHeader: true,
description: "",
color: "#017bc5",
needUserLogged: true,
properties: {
archUrl: "",
},
},
{
id: "wpPermit",
src: "./src/pages/water-legal-permit-page/water-legal-permit-list.html",
tag: "water-legal-permit-list",
label: "Pozwolenia WP",
icon: "assignment",
hideHeader: true,
description: "",
color: "#017bc5",
needUserLogged: true,
properties: {},
},
{
id: "permitAdd",
src: "./src/pages/water-legal-permit-page/water-legal-permit-add.html",
tag: "water-legal-permit-add",
label: "Dodaj pozwolenie",
icon: "assignment",
description: "",
color: "#017bc5",
needUserLogged: true,
hideHeader: true,
properties: {},
},
],
menu: [
{
label: "Sprawy",
icon: "folder",
path: "/casePage/caseList/",
submenu: [
{
label: "Moje sprawy",
path: "/casePage/caseList/",
},
{
label: "Wszystkie",
path: "/casePage/caseAll/",
},
],
},
{
label: "Zadania",
icon: "assignment",
path: "/taskPage/taskList/",
submenu: [
{
label: "Moje zadania",
path: "/taskPage/taskList/",
},
{
label: "Wszystkie",
path: "/taskPage/taskAll/",
},
],
},
{
label: "Dokumenty",
icon: "description",
path: "/docs/list/",
expandedList: true,
submenu: [
{
label: "Moje dokumenty",
path: "/docs/list/",
},
{
label: "Wszystkie",
path: "/docs/listAll/",
},
{
label: "Zarejestruj dokument",
path: "/docs/create/",
timestamp: true,
},
],
},
{
label: "Teczki",
icon: "icons:folder-open",
path: "/foldersPage/folders/",
submenu: [
{
label: "Zarejestruj teczkę",
path: "/foldersPage/create/",
timestamp: true,
},
],
},
{
label: "Spisy",
icon: "icons:dashboard",
path: "/registersPage/registers/",
submenu: [
{
label: "Zarejestruj Spis",
path: "/registersPage/create/",
timestamp: true,
},
],
},
{
label: "Zarządzanie podmiotami",
icon: "social:person-add",
path: "/subjectPage/subjects/",
},
{
label: "Moduł Zastępstw",
icon: "icons:compare-arrows",
pathBySubstitution: "/substitutionPage/substitution/",
},
{
label: "Archiwum",
icon: "icons:shopping-cart",
path: "/archivePage/archive/",
submenu: [
{
label: "Wypożyczenia",
path: "/archivePage/borrowed/",
},
],
},
{
label: "Przejdź do SIGW",
icon: "icons:launch",
url: `${GP.config.prefixes.sigwUrl}`,
},
{
label: "Pomoc",
icon: "icons:help",
url: `${GP.config.helpUrl}`,
},
],
tiles: [],
excludes: {
"doc-form-details": ["documentType"],
},
};
GP.config = Object.assign(cfg, GP.config);
Editor is loading...