Skip to content
This repository was archived by the owner on Jun 27, 2019. It is now read-only.

Commit 99e6d4c

Browse files
seed legal page templates
1 parent 393dcb6 commit 99e6d4c

File tree

2 files changed

+79
-0
lines changed

2 files changed

+79
-0
lines changed

server/seeder/base/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ module.exports = function () {
55
// Add your seeder configs here
66
return [
77
require('./categories'),
8+
require('./pages'),
89
require('./badges')
910
];
1011
};

server/seeder/base/pages.js

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
// Database Seeder Config
2+
3+
// See https://www.npmjs.com/package/feathers-seeder
4+
// Using faker models https://github.com/marak/Faker.js/
5+
6+
// eslint-disable-next-line no-unused-vars
7+
module.exports = (seederstore) => {
8+
return {
9+
services: [
10+
{
11+
path: 'pages',
12+
template: {
13+
title: 'Terms and Condition',
14+
type: 'termsAndConditions',
15+
key: 'terms-and-conditions',
16+
content: '<strong>ADD TERMS AND CONDITIONS!</strong>',
17+
language: 'en',
18+
wasSeeded: true
19+
}
20+
},
21+
{
22+
path: 'pages',
23+
template: {
24+
title: 'Nutzungsbedingungen',
25+
type: 'termsAndConditions',
26+
key: 'terms-and-conditions',
27+
content: '<strong>FÜGE AGB`s HINZU!</strong>',
28+
language: 'de',
29+
wasSeeded: true
30+
}
31+
},
32+
{
33+
path: 'pages',
34+
template: {
35+
title: 'Privacy Policy',
36+
type: 'privacyPolicy',
37+
key: 'privacy-policy',
38+
content: '<strong>ADD PRIVACY POLICY!</strong>',
39+
language: 'en',
40+
wasSeeded: true
41+
}
42+
},
43+
{
44+
path: 'pages',
45+
template: {
46+
title: 'Datenschutz',
47+
type: 'privacyPolicy',
48+
key: 'privacy-policy',
49+
content: '<strong>FÜGE DATENSCHUTZRICHTLINIEN HINZU!</strong>',
50+
language: 'de',
51+
wasSeeded: true
52+
}
53+
},
54+
{
55+
path: 'pages',
56+
template: {
57+
title: 'Imprint',
58+
type: 'imprint',
59+
key: 'imprint',
60+
content: '<strong>ADD IMPRINT!</strong>',
61+
language: 'en',
62+
wasSeeded: true
63+
}
64+
},
65+
{
66+
path: 'pages',
67+
template: {
68+
title: 'Impressum',
69+
type: 'imprint',
70+
key: 'imprint',
71+
content: '<strong>FÜGE EIN IMPRESSUM HINZU!</strong>',
72+
language: 'de',
73+
wasSeeded: true
74+
}
75+
}
76+
]
77+
};
78+
};

0 commit comments

Comments
 (0)