@statusfy/core
Advanced tools
Comparing version 0.1.0-alpha.1 to 0.1.0-alpha.2
@@ -12,6 +12,11 @@ export default { | ||
const canonical = `${this.$statusfy.baseUrl}${this.$route.path}` | ||
return { | ||
link: favicons | ||
link: [ | ||
...favicons, | ||
{ rel: 'canonical', href: canonical, hid: 'canonical' } | ||
] | ||
} | ||
} | ||
} |
@@ -32,6 +32,20 @@ const createDatabase = require('../../../lib/content/database') | ||
// All Incients Pages | ||
const incidentsPage1 = database.incidents(locale.code) | ||
let currentPage = 1 | ||
let totalPages = incidentsPage1.total_pages | ||
while (currentPage <= totalPages) { | ||
const data = database.incidents(locale.code, currentPage) | ||
compilation.assets[`${pathPrefix}/incidents.page-${currentPage}.${locale.code}.json`] = | ||
asset(data) | ||
currentPage = data.page + 1 | ||
} | ||
// History Pages | ||
const historyPage1 = database.incidentsHistory(locale.code) | ||
let currentPage = 1 | ||
let totalPages = historyPage1.total_pages | ||
currentPage = 1 | ||
totalPages = historyPage1.total_pages | ||
@@ -38,0 +52,0 @@ while (currentPage <= totalPages) { |
@@ -151,3 +151,3 @@ const { readdir, stat, readFile } = require('fs') | ||
return { | ||
incidents (lang, page = 1, pageSize = 3) { | ||
incidents (lang, page = 1, pageSize = 10) { | ||
const sortedIncidents = sortIncidents(incidents[lang]) | ||
@@ -154,0 +154,0 @@ const paginatedIncidents = getPaginatedItems(sortedIncidents, page, pageSize) |
{ | ||
"name": "@statusfy/core", | ||
"version": "0.1.0-alpha.1", | ||
"version": "0.1.0-alpha.2", | ||
"description": "Core of Statusfy", | ||
@@ -16,7 +16,5 @@ "author": { | ||
"scripts": { | ||
"lint:scripts": "eslint --ext .js,.vue --ignore-path .gitignore . lib/ client/ test/", | ||
"lint:scripts:fix": "npm run lint:scripts -- --fix", | ||
"lint:scripts": "eslint --fix --ext .js,.vue --ignore-path .gitignore . lib/ client/ test/", | ||
"lint:css": "stylelint 'client/**/*.{css,vue}'", | ||
"lint": "npm run lint:scripts && npm run lint:css", | ||
"lint:fix": "npm run lint:scripts:fix && npm run lint:css", | ||
"prepare-test": "cross-env NODE_ENV=test node test/prepare.js", | ||
@@ -44,4 +42,4 @@ "svg": "vsvg -s ./client/assets/icons -t ./client/components/icons --es6" | ||
"@nuxtjs/pwa": "^2.5.0", | ||
"@statusfy/common": "^0.1.0-alpha.1", | ||
"@statusfy/markdown": "^0.1.0-alpha.1", | ||
"@statusfy/common": "^0.1.0-alpha.2", | ||
"@statusfy/markdown": "^0.1.0-alpha.2", | ||
"body-parser": "^1.18.3", | ||
@@ -59,2 +57,3 @@ "browser-sync": "^2.26.0", | ||
"lodash.drop": "^4.1.1", | ||
"lodash.get": "^4.4.2", | ||
"lodash.isstring": "^4.0.1", | ||
@@ -79,3 +78,3 @@ "lodash.sortby": "^4.7.0", | ||
"@mapbox/stylelint-processor-arbitrary-tags": "^0.2.0", | ||
"@statusfy/test-utils": "^0.1.0-alpha.1", | ||
"@statusfy/test-utils": "^0.1.0-alpha.2", | ||
"babel-core": "^7.0.0-0", | ||
@@ -95,3 +94,3 @@ "eslint-config-standard": "^12.0.0", | ||
}, | ||
"gitHead": "8db9635054c7eb394994f6ebe2243665fa17f3c5" | ||
"gitHead": "bfc2a202a5fca7dbaa4afbcd753117fcf4b27f39" | ||
} |
@@ -465,4 +465,4 @@ /* | ||
shadows: { | ||
default: '0 .125rem .25rem rgba(0,0,0,.075)' | ||
// 'md': '0 4px 8px 0 rgba(0,0,0,0.12), 0 2px 4px 0 rgba(0,0,0,0.08)', | ||
default: '0 .125rem .25rem rgba(0,0,0,.075)', | ||
'md': '0 4px 8px 0 rgba(0,0,0,0.12), 0 2px 4px 0 rgba(0,0,0,0.08)' | ||
// 'lg': '0 15px 30px 0 rgba(0,0,0,0.11), 0 5px 15px 0 rgba(0,0,0,0.08)', | ||
@@ -469,0 +469,0 @@ // 'inner': 'inset 0 2px 4px 0 rgba(0,0,0,0.06)', |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
198220
3086
33
+ Addedlodash.get@^4.4.2