Add i18n api

parent cd8715a4
const options = {
allowedHeaders: ['Origin', 'X-Requested-With', 'Content-Type', 'Accept', 'X-Access-Token'],
credentials: true,
methods: 'GET,HEAD,OPTIONS,PUT,PATCH,POST,DELETE',
origin: true,
preflightContinue: false
};
module.exports = options;
......@@ -3349,6 +3349,15 @@
"resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz",
"integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac="
},
"cors": {
"version": "2.8.4",
"resolved": "https://registry.npmjs.org/cors/-/cors-2.8.4.tgz",
"integrity": "sha1-K9OB8usgECAQXNUOpZ2mMJBpRoY=",
"requires": {
"object-assign": "^4",
"vary": "^1"
}
},
"corser": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/corser/-/corser-2.0.1.tgz",
......@@ -9896,8 +9905,7 @@
"object-assign": {
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
"integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=",
"dev": true
"integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM="
},
"object-component": {
"version": "0.0.3",
......@@ -13750,8 +13758,7 @@
"vary": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",
"integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=",
"dev": true
"integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw="
},
"verror": {
"version": "1.10.0",
......
......@@ -9,7 +9,7 @@
"description": "Version 2 of arsnova.click (Frontend WebApp)",
"scripts": {
"ng": "ng",
"start:SSR": "node dist/server",
"start:SSR": "cd dist && node server",
"start:DEV": "ng serve --host 0.0.0.0 --port 4200 --disable-host-check --aot",
"build:DEV": "ng serve --host 0.0.0.0 --port 4200 --disable-host-check --aot --prod",
"build:SSR": "npm run build:PROD && npm run purify && npm run build:SERVER && npm run webpack:SERVER",
......@@ -59,7 +59,8 @@
"ngx-translate-messageformat-compiler": "^4.1.1",
"rxjs": "^6.1.0",
"ts-loader": "^4.3.0",
"zone.js": "^0.8.26"
"zone.js": "^0.8.26",
"cors": "^2.8.4"
},
"devDependencies": {
"@angular-devkit/build-angular": "^0.6.3",
......
This diff is collapsed.
......@@ -2,9 +2,13 @@ const path = require('path');
const webpack = require('webpack');
module.exports = {
entry: { server: './server.ts' },
resolve: { extensions: ['.js', '.ts'] },
entry: {server: './server.ts'},
resolve: {extensions: ['.js', '.ts']},
target: 'node',
node: {
__dirname: false,
__filename: false,
},
mode: 'none',
// this makes sure we include node_modules and other 3rd party libraries
externals: [/node_modules/],
......@@ -13,7 +17,7 @@ module.exports = {
filename: '[name].js'
},
module: {
rules: [{ test: /\.ts$/, loader: 'ts-loader' }]
rules: [{test: /\.ts$/, loader: 'ts-loader'}]
},
plugins: [
// Temporary Fix for issue: https://github.com/angular/angular/issues/11580
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment