Skip to content

Commit 5bd9f8f

Browse files
Merge pull request #8 from szczepanmasny/dev
v0.9.0
2 parents a978de5 + 82bd5ee commit 5bd9f8f

File tree

178 files changed

+1107
-408
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

178 files changed

+1107
-408
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export const configApi = {
1+
export const api = {
22
url: 'http://crm-api.id-a.pl/',
33
path: {
44
default: 'api',

examples/crm/config/crud.js

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
export const crud = {
2+
fieldModifiers: {
3+
dateFromTimestamp: (param) => {
4+
return param.substring(0, 10)
5+
},
6+
timeFromTimestamp: (param) => {
7+
let tmp = param || ''
8+
return tmp.substring(0, 5)
9+
},
10+
datetimeFromTimestamp: (param) => {
11+
return '<nobr>' + param.substring(0, 19) + '</nobr>'
12+
},
13+
croppedText: (param) => {
14+
return (param == null || param.length < 100) ? param : param.substring(0, 100) + '...'
15+
},
16+
list: (param) => {
17+
return param ? param.map(obj => obj.tableList).join(', ') : ''
18+
},
19+
listTasks: (param) => {
20+
return param ? param.map(obj => {
21+
return obj.task.name
22+
}).join('<br>') : ''
23+
},
24+
lastReset: (param) => {
25+
if (param.length > 0) {
26+
return '<nobr>' + param[param.length - 1].reset_time.substring(0, 19) + '</nobr>'
27+
}
28+
}
29+
}
30+
}

examples/crm/config/main.js

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
export const main = {
2+
title: "Vue CRUD",
3+
locales: [{
4+
name: 'en',
5+
text: 'English'
6+
},
7+
{
8+
name: 'pl',
9+
text: 'Polski'
10+
},
11+
],
12+
defaultLocale: 'en',
13+
iconfont: 'md',
14+
primaryTheme: 'dark',
15+
secondaryTheme: 'dark',
16+
theme: {
17+
primary: '#34495e',
18+
secondary: '#41b883',
19+
accent: '#82B1FF',
20+
error: '#FF5252',
21+
info: '#2196F3',
22+
success: '#4CAF50',
23+
warning: '#FFC107'
24+
},
25+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// custom modules
2+
import administration from '@/routes/app/routes/administration/store/'
3+
import crm from '@/routes/app/routes/crm/store/'
4+
5+
export default {
6+
administration,
7+
crm
8+
}

0 commit comments

Comments
 (0)