#814 First stable version

This commit is contained in:
Juan Ferrer 2018-12-27 12:54:16 +01:00
parent f2fc5b6b2b
commit 9cdfe0c5d9
1082 changed files with 648 additions and 452 deletions

View File

@ -1,8 +1,16 @@
FROM node:8-slim FROM vn-node
COPY . /salix RUN mkdir /salix
COPY dist/webpack-assets.json /salix/client/
RUN npm -g install pm2
WORKDIR /salix WORKDIR /salix
COPY dist .
COPY modules .
#COPY node_modules .
COPY loopback .
COPY dist/webpack-assets.json loopback/client
RUN rm /etc/nginx/sites-enabled/default
COPY services/nginx/temp/nginx.conf /etc/nginx/sites-available/salix
RUN ln -s /etc/nginx/sites-available/salix /etc/nginx/sites-enabled/salix
CMD ["pm2-docker", "./server/server.js"] CMD ["pm2-docker", "./server/server.js"]

2
Jenkinsfile vendored
View File

@ -33,7 +33,7 @@ node {
} }
stage ('Generating new dockers') { stage ('Generating new dockers') {
sh "docker build -t vn-loopback:latest ./services/loopback/" sh "docker build -t vn-loopback:latest ./loopback/"
sh "docker-compose up -d --build" sh "docker-compose up -d --build"
sh "docker image prune -f" sh "docker image prune -f"
} }

11
front/auth/auth.ejs Normal file
View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Salix</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body ng-app="vnAuth">
<vn-login></vn-login>
</body>
</html>

View File

@ -1 +1,2 @@
export * from './src/auth'; import './module';
import './login/login';

View File

Before

Width:  |  Height:  |  Size: 6.2 KiB

After

Width:  |  Height:  |  Size: 6.2 KiB

View File

@ -1,4 +1,4 @@
import {ng} from 'vendor'; import {ng} from 'core/vendor';
import 'core'; import 'core';
let ngModule = ng.module('vnAuth', ['vnCore']); let ngModule = ng.module('vnAuth', ['vnCore']);

View File

@ -1,2 +0,0 @@
import './module';
import './login/login';

View File

@ -1,6 +1,6 @@
import ngModule from '../../module'; import ngModule from '../../module';
import ModelProxy from '../model-proxy/model-proxy'; import ModelProxy from '../model-proxy/model-proxy';
import {mergeWhere, mergeFilters} from 'vn-loopback/common/filter.js'; import {mergeWhere, mergeFilters} from 'vn-loopback/util/filter';
/** /**
* Model that uses remote loopback model as datasource. * Model that uses remote loopback model as datasource.

View File

@ -1,6 +1,6 @@
import ngModule from '../../module'; import ngModule from '../../module';
import Component from '../../lib/component'; import Component from '../../lib/component';
import Flatpickr from 'vendor/src/flatpickr'; import {Flatpickr} from '../../vendor';
import './style.scss'; import './style.scss';
class DatePicker extends Component { class DatePicker extends Component {

View File

@ -3,7 +3,7 @@ import ngModule from '../../module';
import Component from '../../lib/component'; import Component from '../../lib/component';
import ArrayModel from '../array-model/array-model'; import ArrayModel from '../array-model/array-model';
import CrudModel from '../crud-model/crud-model'; import CrudModel from '../crud-model/crud-model';
import {mergeWhere} from 'vn-loopback/common/filter.js'; import {mergeWhere} from 'vn-loopback/util/filter';
/** /**
* @event select Thrown when model item is selected * @event select Thrown when model item is selected

Some files were not shown because too many files have changed in this diff Show More