@igea/oac_frontend 1.0.92 → 1.0.93

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@igea/oac_frontend",
3
- "version": "1.0.92",
3
+ "version": "1.0.93",
4
4
  "description": "Frontend service for the OAC project",
5
5
  "main": "src/index.js",
6
6
  "bin": {
package/src/index.js CHANGED
@@ -127,7 +127,7 @@ getPort.default({
127
127
  // Application routes
128
128
  // ---------------------------------------------------------------------
129
129
  app.get(`/${serviceName}`, (req, res) => {
130
- res.render('login', { root: serviceName, title: 'Login' });
130
+ res.render('v2/login', { root: serviceName, title: 'Login' });
131
131
  });
132
132
  app.get(`/${serviceName}/password_recovery`, (req, res) => {
133
133
  res.render('password_recovery', { root: serviceName, title: 'Password recovery' });
@@ -196,6 +196,55 @@ getPort.default({
196
196
  res.render('v2/presentazione/sistema', data.toJson());
197
197
  });
198
198
 
199
+ app.get('/frontend/v2/modelli', (req, res) => {
200
+ let data = new DataModel(req, {
201
+ root: 'frontend/v2',
202
+ title: 'Modelli',
203
+
204
+ activeMenu: 'introduction',
205
+ activeSidebar: 'presentazione',
206
+ activeSidebarItem: 'modelli'
207
+ });
208
+ res.render('v2/presentazione/modelli', data.toJson());
209
+ });
210
+
211
+
212
+ app.get('/frontend/v2/bibliografia', (req, res) => {
213
+ let data = new DataModel(req, {
214
+ root: 'frontend/v2',
215
+ title: 'Bibliografia',
216
+
217
+ activeMenu: 'introduction',
218
+ activeSidebar: 'presentazione',
219
+ activeSidebarItem: 'bibliografia'
220
+ });
221
+ res.render('v2/presentazione/bibliografia', data.toJson());
222
+ });
223
+
224
+ app.get('/frontend/v2/crediti', (req, res) => {
225
+ let data = new DataModel(req, {
226
+ root: 'frontend/v2',
227
+ title: 'Crediti',
228
+
229
+ activeMenu: 'introduction',
230
+ activeSidebar: 'presentazione',
231
+ activeSidebarItem: 'crediti'
232
+ });
233
+ res.render('v2/presentazione/crediti', data.toJson());
234
+ });
235
+
236
+ app.get('/frontend/v2/contatti', (req, res) => {
237
+ let data = new DataModel(req, {
238
+ root: 'frontend/v2',
239
+ title: 'Contatti',
240
+
241
+ activeMenu: 'introduction',
242
+ activeSidebar: 'presentazione',
243
+ activeSidebarItem: 'contatti'
244
+ });
245
+ res.render('v2/presentazione/contatti', data.toJson());
246
+ });
247
+
199
248
  app.get('/frontend/v2/investigation/form', async (req, res) => {
200
249
  let data = new DataModel(req, {
201
250
  root: 'frontend/v2',
@@ -214,12 +263,12 @@ activeSidebar: 'investigation',
214
263
  title: 'Ricerca',
215
264
  activeMenu: 'search',
216
265
  activeSidebar: 'search',
217
- activeSidebarItem: 'fast',
218
- fastType: 1,
219
- schema: 'fast_' + 1
266
+ //activeSidebarItem: 'fast',
267
+ //fastType: 1,
268
+ //schema: 'fast_' + 1
220
269
  });
221
270
 
222
- res.render('v2/search/advanced', data.toJson());
271
+ res.render('v2/search/index', data.toJson());
223
272
  });
224
273
 
225
274
 
@@ -240,6 +289,7 @@ app.get('/frontend/v2/admin', (req, res) => {
240
289
 
241
290
 
242
291
 
292
+
243
293
  // ---------------------------------------------------------------------
244
294
  // Start listing on the specified port
245
295
  app.listen(port, async () => {