xing-framework 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. checksums.yaml +4 -4
  2. data/default_configuration/base_app/backend/config/initializers/session_store.rb +1 -1
  3. data/default_configuration/base_app/backend/static-app.ru +1 -1
  4. data/default_configuration/base_app/frontend/npm-shrinkwrap.json +2042 -885
  5. data/default_configuration/base_app/frontend/package.json +1 -1
  6. data/default_configuration/base_app/frontend/src/app/auth/passwords/passwords-request.tpl.html +2 -2
  7. data/default_configuration/base_app/frontend/src/app/auth/passwords/passwords-update.tpl.html +3 -3
  8. data/default_configuration/base_app/frontend/src/app/auth/registrations/registrations.tpl.html +6 -6
  9. data/default_configuration/base_app/frontend/src/app/auth/sessions/sessions.tpl.html +4 -4
  10. data/default_configuration/base_app/frontend/src/app/inner.tpl.html +8 -8
  11. data/default_configuration/base_app/frontend/src/app/root.tpl.html +1 -1
  12. data/default_configuration/base_app/frontend/src/common/components/sessionLinks/session-links.tpl.html +3 -3
  13. data/default_configuration/base_app/frontend/src/common/components/sessionLinks/sessionLinks.js +1 -1
  14. data/default_configuration/base_app/frontend/src/common/components/signOut/signOut.js +1 -1
  15. data/default_configuration/base_app/frontend/src/common/config.js +2 -2
  16. data/default_configuration/base_app/frontend/src/index.html +1 -1
  17. data/default_configuration/base_app/frontend/src/styles/partials/_forms.sass +1 -1
  18. data/default_configuration/base_app/frontend/src/styles/partials/_navbar.sass +1 -1
  19. data/default_configuration/base_app/frontend/test/auth/passwords/passwordsControllers.js +2 -2
  20. data/default_configuration/base_app/frontend/test/auth/registrations/registrationsControllers.js +1 -1
  21. data/default_configuration/base_app/frontend/test/auth/sessions/sessionsControllers.js +1 -1
  22. data/default_configuration/base_app/static-app.ru +1 -1
  23. metadata +2 -47
  24. data/default_configuration/base_app/API_DOC/README +0 -23
  25. data/default_configuration/base_app/API_DOC/admin-menus +0 -167
  26. data/default_configuration/base_app/API_DOC/admin-pages +0 -173
  27. data/default_configuration/base_app/API_DOC/content-block +0 -10
  28. data/default_configuration/base_app/API_DOC/navigation +0 -54
  29. data/default_configuration/base_app/API_DOC/page +0 -38
  30. data/default_configuration/base_app/backend/README +0 -12
  31. data/default_configuration/base_app/backend/public/index.html +0 -0
  32. data/default_configuration/base_app/dummy-api/admin/menu_items/10.json +0 -15
  33. data/default_configuration/base_app/dummy-api/admin/menu_items/11.json +0 -15
  34. data/default_configuration/base_app/dummy-api/admin/menu_items/12.json +0 -15
  35. data/default_configuration/base_app/dummy-api/admin/menu_items/13.json +0 -15
  36. data/default_configuration/base_app/dummy-api/admin/menu_items/14.json +0 -15
  37. data/default_configuration/base_app/dummy-api/admin/menu_items/15.json +0 -15
  38. data/default_configuration/base_app/dummy-api/admin/menu_items/16.json +0 -15
  39. data/default_configuration/base_app/dummy-api/admin/menus.json +0 -23
  40. data/default_configuration/base_app/dummy-api/admin/menus/1.json +0 -118
  41. data/default_configuration/base_app/dummy-api/admin/menus/2.json +0 -8
  42. data/default_configuration/base_app/dummy-api/admin/pages.json +0 -105
  43. data/default_configuration/base_app/dummy-api/admin/pages/about_us.json +0 -45
  44. data/default_configuration/base_app/dummy-api/admin/pages/contact_us.json +0 -36
  45. data/default_configuration/base_app/dummy-api/admin/pages/gallery.json +0 -36
  46. data/default_configuration/base_app/dummy-api/admin/pages/home.json +0 -36
  47. data/default_configuration/base_app/dummy-api/admin/pages/homepage.json +0 -18
  48. data/default_configuration/base_app/dummy-api/admin/pages/links.json +0 -36
  49. data/default_configuration/base_app/dummy-api/admin/pages/newsletter.json +0 -54
  50. data/default_configuration/base_app/dummy-api/homepage.json +0 -14
  51. data/default_configuration/base_app/dummy-api/navigation/main.json +0 -119
  52. data/default_configuration/base_app/dummy-api/pages/about_us.json +0 -41
  53. data/default_configuration/base_app/dummy-api/pages/contact_us.json +0 -32
  54. data/default_configuration/base_app/dummy-api/pages/gallery.json +0 -32
  55. data/default_configuration/base_app/dummy-api/pages/home.json +0 -32
  56. data/default_configuration/base_app/dummy-api/pages/homepage.json +0 -14
  57. data/default_configuration/base_app/dummy-api/pages/links.json +0 -32
  58. data/default_configuration/base_app/dummy-api/pages/newsletter.json +0 -50
  59. data/default_configuration/base_app/frontend/CHANGELOG.md +0 -125
  60. data/default_configuration/base_app/frontend/LICENSE +0 -19
  61. data/default_configuration/base_app/frontend/README.md +0 -5
  62. data/default_configuration/base_app/frontend/bin/index.html +0 -0
  63. data/default_configuration/base_app/frontend/changelog.tpl +0 -23
  64. data/default_configuration/base_app/frontend/src/README.md +0 -48
  65. data/default_configuration/base_app/frontend/src/app/README.md +0 -68
  66. data/default_configuration/base_app/frontend/src/assets/README.md +0 -4
  67. data/default_configuration/base_app/frontend/src/common/README.md +0 -19
  68. data/default_configuration/base_app/frontend/tools.md +0 -223
@@ -1,173 +0,0 @@
1
- # NOTE: public has no view of list of pages
2
- # This endpoint will NOT include blog posts: this is the list
3
- # of pages to appear in the "Edit Pages" tool for admin users.
4
- #
5
- # RFC: Is 'self' link the public view of the page, or the admin
6
- # view of the page? I'd think the latter
7
- #
8
- # GET /admin/pages
9
- {
10
- links {
11
- self: '/admin/pages'
12
- },
13
- data: [
14
- { links: {
15
- self: '/admin/pages/:slug1'
16
- public: '/pages/:slug1'
17
- },
18
- data: {
19
- title: 'Page 1',
20
- layout: "one_column",
21
- url_slug: "url_slug",
22
- published: [true | false],
23
- publish_start: <date/time>,
24
- publish_end: <date/time>
25
- }
26
- },
27
- { links: {
28
- self: '/admin/pages/:slug2' ,
29
- public: '/pages/:slug2'
30
- },
31
- data: {
32
- title: 'Page 2'
33
- layout: "one_column",
34
- url_slug: "url_slug",
35
- published: [true | false],
36
- publish_start: <date/time>,
37
- publish_end: <date/time>
38
- }
39
- },
40
- { links: {
41
- self: '/admin/pages/:slug3'
42
- public: '/pages/:slug3'
43
- },
44
- data: {
45
- title: 'Page 3',
46
- layout: "two_column",
47
- url_slug: "url_slug",
48
- published: [true | false],
49
- publish_start: <date/time>,
50
- publish_end: <date/time>
51
- }
52
- }
53
- ]
54
- }
55
-
56
- # RFP: I think this one is ready to go.
57
- #
58
- # GET /admin/pages/:url_slug
59
- {
60
- links: {
61
- self: "/admin/pages/:slug",
62
- public: "/pages/:slug"
63
- },
64
-
65
- data: {
66
- url_slug: 'some-url-slug',
67
- title: "string",
68
- keywords: "string",
69
- description: "string",
70
- layout: "one_column",
71
- url_slug: "url_slug",
72
- published: "boolean",
73
- publish_start: "datetime",
74
- publish_end: "datetime",
75
- contents: {
76
- main: {
77
- links: { self: "/content-blocks/:id" }
78
- data: {
79
- content_type: 'text/html',
80
- body: 'Four score and <em>seven</em> years'
81
- }
82
- },
83
- headline: {
84
- links: { self: "/content-blocks/:id" },
85
- data: {
86
- content_type: 'text/html',
87
- body: 'The Gettysburg Address'
88
- }
89
- },
90
- styles: {
91
- links: { self: "/content-blocks/:id" },
92
- data: {
93
- content_type: 'text/css',
94
- body: 'p { font-weight: bold; }'
95
- }
96
- }
97
- }
98
- }
99
- }
100
-
101
-
102
- # POST /admin/pages
103
- # creates a page with the supplied content
104
- {
105
- # links omitted
106
- data: {
107
- url_slug: "string", # optional
108
- title: "string", # REQUIRED
109
- keywords: "string", # optional
110
- description: "string", # optional
111
- layout: "", # REQUIRED - options are an ENUM per project
112
-
113
- published: <boolean>, # optional - default true
114
- publish_start: <datetime>, # optional - default nil
115
- publish_end: <datetime>, # optional - default nil
116
-
117
- contents: {
118
- main: {
119
- data: {
120
- # NOTE: content-type omitted because that's specified in the back-end
121
- # specification for this Page layout
122
- body: 'Four score and <em>seven</em> years'
123
- }
124
- },
125
- headline: {
126
- data: {
127
- body: 'The Gettysburg Address'
128
- }
129
- },
130
- styles: {
131
- data: {
132
- body: 'p { font-weight: bold; }'
133
- }
134
- }
135
- }
136
- }
137
- }
138
-
139
- # PUT /admin/pages/:url_slug
140
- # exactly like POST except that all fields are now optional, existing
141
- # values will be retained
142
- {
143
- # links omitted
144
- data: {
145
- url_slug: "string", # optional
146
- title: "string", # optional
147
- keywords: "string", # optional
148
- description: "string", # optional
149
- layout: "", # optional
150
-
151
- published: <boolean>, # optional - default true
152
- publish_start: <datetime>, # optional - default nil
153
- publish_end: <datetime>, # optional - default nil
154
-
155
- contents: {
156
- main: {
157
- data: {
158
- body: 'Four score and <em>seven</em> years'
159
- }
160
- },
161
- headline: {
162
- data: {
163
- body: 'The Gettysburg Address'
164
- }
165
- },
166
- styles: {
167
- data: {
168
- body: 'p { font-weight: bold; }'
169
- }
170
- }
171
- }
172
- }
173
- }
@@ -1,10 +0,0 @@
1
- # There is no POST or GET for content-block. They should be created and fetched via the page
2
- # resource. However, in order to support in-line / AJAXY editing, the front-end may update
3
- # an individual content block resource.
4
-
5
- # PUT /admin/content-blocks/:id
6
- {
7
- data: {
8
- body: "New value for this content block's body"
9
- }
10
- }
@@ -1,54 +0,0 @@
1
-
2
-
3
- #GET /navigation/main:
4
- {
5
- links: {
6
- self: "/navigation/main"
7
- },
8
- data: [
9
-
10
- # a top-level menu item
11
- {
12
- links : {}
13
- data : {
14
- name: "Services",
15
- url: 'services',
16
- type: [ 'page' | 'raw_url' ]
17
- children: [
18
-
19
- # a sub-menu item under "Services"
20
- {
21
- links: {},
22
- data: {
23
- name: "Startup MVPs",
24
- url: '/startup-mvps',
25
- type: [ 'page' | 'raw_url' ],
26
- # no children - key omitted
27
- }
28
- },
29
- {
30
- links: {},
31
- data: {
32
- name: "Code Rescue",
33
- url: '/code-rescue'
34
- type: [ 'page' | 'raw_url' ]
35
- # no children - key omitted
36
- }
37
- },
38
-
39
- ]
40
- }
41
- },
42
-
43
- # a top-level menu item with an external link
44
- {
45
- links : {}
46
- data : {
47
- name: "About Web Security",
48
- url: 'https://www.owasp.org/index.php/Main_Page',
49
- type: 'raw_url',
50
- # no children - key ommitted
51
- }
52
- }
53
- ]
54
- }
@@ -1,38 +0,0 @@
1
-
2
- # an individual page
3
- GET /pages/:slug
4
- {
5
- links: {
6
- self: "/pages/:slug",
7
- admin: "admin/pages/:slug"
8
- },
9
- data: {
10
- title: "string",
11
- keywords: "string",
12
- description: "string",
13
- layout: "one_column",
14
- contents: {
15
- main: {
16
- links: { self: "/content-blocks/:id" }
17
- data: {
18
- content_type: 'text/html',
19
- body: 'Four score and <em>seven</em> years'
20
- }
21
- },
22
- headline: {
23
- links: { self: "/content-blocks/:id" },
24
- data: {
25
- content_type: 'text/html',
26
- body: 'The Gettysburg Address'
27
- }
28
- },
29
- styles: {
30
- links: { self: "/content-blocks/:id" },
31
- data: {
32
- content_type: 'text/css',
33
- body: 'p { font-weight: bold; }'
34
- }
35
- }
36
- }
37
- }
38
- }
@@ -1,12 +0,0 @@
1
- == Logical Reality Design CMS Framework
2
-
3
- The goal of this project is a simple bare-bones CMS with editable
4
- pages and locations (nav menu) and uploadable documents and images that
5
- can all be controlled by an admin user. Editing/management functions
6
- are available in an admin/ namespace.
7
-
8
- This project will be forked to create individual projects for clients;
9
- the hope is that for many of those projects we can continue to pull changes
10
- as they are made to the CMS.
11
-
12
- test
@@ -1,15 +0,0 @@
1
- {
2
- "links": {
3
- "self": "/admin/menu_items/10"
4
- },
5
- "data": {
6
- "type": "page",
7
- "name": "About Us",
8
- "page": {
9
- "links": {
10
- "self": "/pages/contact_us"
11
- }
12
- },
13
- "parent_id": 1
14
- }
15
- }
@@ -1,15 +0,0 @@
1
- {
2
- "links": {
3
- "self": "/admin/menu_items/11"
4
- },
5
- "data": {
6
- "type": "page",
7
- "name": "Services",
8
- "page": {
9
- "links": {
10
- "self": "/pages/contact_us"
11
- }
12
- },
13
- "parent_id": 1
14
- }
15
- }
@@ -1,15 +0,0 @@
1
- {
2
- "links": {
3
- "self": "/admin/menu_items/12"
4
- },
5
- "data": {
6
- "type": "page",
7
- "name": "Products",
8
- "page": {
9
- "links": {
10
- "self": "/pages/links"
11
- }
12
- },
13
- "parent_id": 1
14
- }
15
- }
@@ -1,15 +0,0 @@
1
- {
2
- "links": {
3
- "self": "/admin/menu_items/13"
4
- },
5
- "data": {
6
- "type": "page",
7
- "name": "Contact",
8
- "page": {
9
- "links": {
10
- "self": "/pages/home"
11
- }
12
- },
13
- "parent_id": 1
14
- }
15
- }
@@ -1,15 +0,0 @@
1
- {
2
- "links": {
3
- "self": "/admin/menu_items/14"
4
- },
5
- "data": {
6
- "type": "page",
7
- "name": "Startup MVPs",
8
- "page": {
9
- "links": {
10
- "self": "/pages/home"
11
- }
12
- },
13
- "parent_id": 11
14
- }
15
- }
@@ -1,15 +0,0 @@
1
- {
2
- "links": {
3
- "self": "/admin/menu_items/15"
4
- },
5
- "data": {
6
- "type": "page",
7
- "name": "Code Rescue",
8
- "page": {
9
- "links": {
10
- "self": "/pages/contact_us"
11
- }
12
- },
13
- "parent_id": 11
14
- }
15
- }
@@ -1,15 +0,0 @@
1
- {
2
- "links": {
3
- "self": "/admin/menu_items/16"
4
- },
5
- "data": {
6
- "type": "page",
7
- "name": "Training",
8
- "page": {
9
- "links": {
10
- "self": "/pages/newsletter"
11
- }
12
- },
13
- "parent_id": 11
14
- }
15
- }
@@ -1,23 +0,0 @@
1
- {
2
- "links": {
3
- "self": "/admin/menus"
4
- },
5
- "data": [
6
- {
7
- "links": {
8
- "self": "/admin/menus/1"
9
- },
10
- "data": {
11
- "name": "Main Menu"
12
- }
13
- },
14
- {
15
- "links": {
16
- "self": "/admin/menus/2"
17
- },
18
- "data": {
19
- "name": "Blog Topics"
20
- }
21
- }
22
- ]
23
- }
@@ -1,118 +0,0 @@
1
- {
2
- "links": {
3
- "self": "/admin/menus/1"
4
- },
5
- "data": [
6
- {
7
- "links": {
8
- },
9
- "data": {
10
- "type": "page",
11
- "name": "About Us",
12
- "page": {
13
- "links": {
14
- "self": "/pages/contact_us"
15
- }
16
- },
17
- "children": [
18
-
19
- ]
20
- }
21
- },
22
- {
23
- "links": {
24
- },
25
- "data": {
26
- "type": "page",
27
- "name": "Services",
28
- "page": {
29
- "links": {
30
- "self": "/pages/contact_us"
31
- }
32
- },
33
- "children": [
34
- {
35
- "links": {
36
- },
37
- "data": {
38
- "type": "page",
39
- "name": "Startup MVPs",
40
- "page": {
41
- "links": {
42
- "self": "/pages/home"
43
- }
44
- },
45
- "children": [
46
-
47
- ]
48
- }
49
- },
50
- {
51
- "links": {
52
- },
53
- "data": {
54
- "type": "page",
55
- "name": "Code Rescue",
56
- "page": {
57
- "links": {
58
- "self": "/pages/contact_us"
59
- }
60
- },
61
- "children": [
62
-
63
- ]
64
- }
65
- },
66
- {
67
- "links": {
68
- },
69
- "data": {
70
- "type": "page",
71
- "name": "Training",
72
- "page": {
73
- "links": {
74
- "self": "/pages/newsletter"
75
- }
76
- },
77
- "children": [
78
-
79
- ]
80
- }
81
- }
82
- ]
83
- }
84
- },
85
- {
86
- "links": {
87
- },
88
- "data": {
89
- "type": "page",
90
- "name": "Products",
91
- "page": {
92
- "links": {
93
- "self": "/pages/links"
94
- }
95
- },
96
- "children": [
97
-
98
- ]
99
- }
100
- },
101
- {
102
- "links": {
103
- },
104
- "data": {
105
- "type": "page",
106
- "name": "Contact",
107
- "page": {
108
- "links": {
109
- "self": "/pages/home"
110
- }
111
- },
112
- "children": [
113
-
114
- ]
115
- }
116
- }
117
- ]
118
- }