Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
ab86351
tmp
invercity Mar 21, 2019
b5404cf
tmp
invercity Mar 21, 2019
c6abe10
Added logs for changing good count
invercity Mar 22, 2019
355a8c3
Disable save btn on ONCE clicked
invercity Mar 22, 2019
342e6f5
Lint fix
invercity Mar 22, 2019
4002d7a
IRI-001 Updated dependencies, fixed security alerts
invercity Aug 27, 2019
031041d
IRI-001 Updated CI
invercity Aug 27, 2019
8c3197d
IRI-001 Updated dependencies
invercity Aug 27, 2019
8ca1da7
IRI-001 Bump version to 1.3.1
invercity Aug 27, 2019
a462145
IRI-001 Set version to 1.3.0, done with deps
invercity Aug 27, 2019
f4936ae
Changed app title
invercity Aug 27, 2019
a8d8c24
Changed HTML title
invercity Aug 27, 2019
efb415f
Fixed license
invercity Sep 9, 2019
88d4187
Added order status, changed count title
invercity Sep 10, 2019
90b7cdd
Added client comments
invercity Sep 10, 2019
14bf9a8
Fix view order link
invercity Sep 10, 2019
d08eceb
Added orders by client, orders by good
invercity Sep 10, 2019
2e6f3ab
Fixed client/order list, good/order list, labels
invercity Sep 10, 2019
06ec197
Fixed client/order list width
invercity Sep 10, 2019
5905a63
Updated list styles
invercity Sep 11, 2019
34cd73d
Added list titles
invercity Sep 11, 2019
0e28e9e
Fixed list styles
invercity Sep 11, 2019
8ff5804
Extended client/orders
invercity Sep 13, 2019
0dac494
Lint fix
invercity Sep 13, 2019
a72fd6d
Added good.type, removed good.orders
invercity Sep 14, 2019
6ee52f5
Added good.orders.new
invercity Sep 16, 2019
808f040
Added order.extras on server side
invercity Sep 16, 2019
b611596
view for checkboxes
invercity Sep 17, 2019
374e5c2
Added order.extras on UI
invercity Sep 17, 2019
3cec899
Lint fix
invercity Sep 17, 2019
0cac602
Fixed UI js
invercity Sep 17, 2019
336840f
Incremented npm version
invercity Sep 17, 2019
bb9d85a
Added option to create order per item
invercity Sep 17, 2019
65feea8
Fixed promise
invercity Sep 17, 2019
1d72fde
Fixed flacon
invercity Sep 18, 2019
ab57de4
Added export data to jpeg
invercity Sep 19, 2019
9d98b62
jshint fix
invercity Sep 19, 2019
e35d0aa
Re-implemented reports for goods
invercity Sep 24, 2019
8a3d989
Changed client.orders style, orders list
invercity Sep 30, 2019
6ad4e61
Added filters on goods.list page
invercity Sep 30, 2019
3ac3b13
Women type by default on create good
invercity Sep 30, 2019
0b96d15
Fixed get order by client
invercity Oct 1, 2019
73c3afc
Lint fix
invercity Oct 1, 2019
d460174
Fixed price in report
invercity Oct 1, 2019
4cbf9e3
Added option to remove order from client.orderlist
invercity Oct 2, 2019
705ac1c
Added regex on client create, order good orders by client name
invercity Oct 8, 2019
7fc7098
Updated good order list
invercity Oct 18, 2019
bb99d3b
Changed report styles, client order
invercity Oct 18, 2019
87c4c8e
Changed report styles
invercity Oct 18, 2019
0038787
Experimental deps changes, sort orders fix
Oct 22, 2019
9ff1fab
Sort orders fix
Oct 22, 2019
926732b
Sort orders fix
invercity Oct 22, 2019
12863eb
Fixed sort on a client side
invercity Oct 23, 2019
494b5e4
Updated limits
invercity Oct 29, 2019
6ac936b
Added auto updating orders on good remove
invercity Dec 17, 2019
ec0df91
Extended model, added extras
invercity Mar 22, 2020
808e16d
Fixed extras on get
invercity Mar 22, 2020
49690a3
Updated to Node@18
invercity Mar 23, 2023
c813d96
Fix npm install
invercity Mar 23, 2023
736333d
Fix heroku build
invercity Mar 23, 2023
5ff3078
Fix heroku build
invercity Mar 23, 2023
918939a
Upgrade mongo config
invercity Sep 20, 2023
7f6699e
Set npm version
invercity Sep 20, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions .jshintrc
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,16 @@
"undef": true, // Require all non-global variables be declared before they are used.
"unused": false, // Warn unused variables.
"strict": false, // Don' require `use strict` pragma in every file.
"globals": { // Globals variables.
"globals": {
"angular": true,
"io": true,
"ApplicationConfiguration": true,
"_": true
"_": true,
"domtoimage": true,
"inject": true,
"by": true,
"browser": true,
"element": true
},
"predef": [ // Extra globals.
"inject",
"by",
"browser",
"element"
],
"devel": true // Allow development statements e.g. `console.log();`
}
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
legacy-peer-deps=true
17 changes: 9 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
language: node_js
sudo: required
node_js:
- "8"
- "10"
- "8"
- "10"
- "12"
env:
- NODE_ENV=travis
- NODE_ENV=travis
services:
- mongodb
- mongodb
before_install:
- gem update --system
- gem install sass --version "=3.3.7"
- npm i nsp -g
- gem update --system
- gem install sass --version "=3.3.7"
- npm i nsp -g
after_script:
- nsp audit-package
- nsp audit-package
notifications:
webhooks:
urls:
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2017-2018 Andriy Ermolenko
Copyright (c) 2017-2020 Andrii Yermolenko

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
Expand Down
4 changes: 3 additions & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
"angular-file-upload": "1.1.5",
"angular-messages": "~1.3.17",
"owasp-password-strength-test": "~1.3.0",
"lodash": "^4.17.4"
"lodash": "^4.17.4",
"file-saver": "^2.0.2",
"dom-to-image": "^2.6.0"
},
"resolutions": {
"angular": "~1.3"
Expand Down
2 changes: 2 additions & 0 deletions config/assets/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ module.exports = {
'public/lib/angular-file-upload/angular-file-upload.min.js',
'public/lib/owasp-password-strength-test/owasp-password-strength-test.js',
'public/lib/lodash/dist/lodash.min.js',
'public/lib/dom-to-image/dist/dom-to-image.min.js',
'public/lib/file-saver/dist/FileSaver.min.js'
],
tests: ['public/lib/angular-mocks/angular-mocks.js']
},
Expand Down
4 changes: 2 additions & 2 deletions config/env/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module.exports = {
// sessionSecret should be changed for security measures and concerns
sessionSecret: process.env.SESSION_SECRET || 'MEAN',
// sessionKey is set to the generic sessionId key used by PHP applications
// for obsecurity reasons
// for security reasons
sessionKey: 'sessionId',
sessionCollection: 'sessions',
logo: 'modules/core/client/img/brand/logo.png',
Expand All @@ -31,7 +31,7 @@ module.exports = {
profileUpload: {
dest: './modules/users/client/img/profile/uploads/', // Profile upload destination path
limits: {
fileSize: 1*1024*1024 // Max file size in bytes (1 MB)
fileSize: 1024*1024 // Max file size in bytes (1 MB)
}
}
}
Expand Down
9 changes: 5 additions & 4 deletions config/env/development.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ module.exports = {
user: '',
pass: '',
useNewUrlParser: true,
useCreateIndex: true
useCreateIndex: true,
useUnifiedTopology: true
},
// Enable mongoose debug mode
debug: process.env.MONGODB_DEBUG || false
Expand Down Expand Up @@ -75,11 +76,11 @@ module.exports = {
}
}
},
livereload: true,
livereload: false,
seedDB: {
seed: process.env.MONGO_SEED === 'true' ? true : false,
seed: process.env.MONGO_SEED === 'true',
options: {
logResults: process.env.MONGO_SEED_LOG_RESULTS === 'false' ? false : true,
logResults: process.env.MONGO_SEED_LOG_RESULTS !== 'false',
seedUser: {
username: process.env.MONGO_SEED_USER_USERNAME || 'user',
provider: 'local',
Expand Down
4 changes: 3 additions & 1 deletion config/env/production.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ module.exports = {
options: {
// user: '',
// pass: '',
useNewUrlParser: true
useNewUrlParser: true,
useCreateIndex: true,
useUnifiedTopology: true
},
// Enable mongoose debug mode
debug: process.env.MONGODB_DEBUG || false
Expand Down
4 changes: 3 additions & 1 deletion config/lib/express.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const consolidate = require('consolidate');

const config = require('../config');
const logger = require('./logger');
const { version } = require('../../package');

/**
* Initialize local variables
Expand All @@ -34,6 +35,7 @@ module.exports.initLocalVariables = (app) => {
app.locals.livereload = config.livereload;
app.locals.logo = config.logo;
app.locals.favicon = config.favicon;
app.locals.version = version;

// Passing the request url to environment locals
app.use((req, res, next) => {
Expand Down Expand Up @@ -146,7 +148,7 @@ module.exports.initHelmetHeaders = (app) => {
app.use(helmet.ieNoOpen());
app.use(helmet.hsts({
maxAge: SIX_MONTHS,
includeSubdomains: true,
includeSubDomains: true,
force: true
}));
app.disable('x-powered-by');
Expand Down
8 changes: 2 additions & 6 deletions modules/core/client/controllers/header.client.controller.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

angular.module('core').controller('HeaderController', ['$scope', '$state', 'Authentication', 'Menus', 't','$http',
function ($scope, $state, Authentication, Menus, t, $http) {
angular.module('core').controller('HeaderController', ['$scope', '$state', 'Authentication', 'Menus', 't',
function ($scope, $state, Authentication, Menus, t) {
$scope.t = t;
// Expose view variables
$scope.$state = $state;
Expand All @@ -16,10 +16,6 @@ angular.module('core').controller('HeaderController', ['$scope', '$state', 'Auth
$scope.isCollapsed = !$scope.isCollapsed;
};

$http.get('/version').success(function (data) {
$scope.version = data.version;
});

// Collapsing the menu after navigation
$scope.$on('$stateChangeSuccess', function () {
$scope.isCollapsed = false;
Expand Down
29 changes: 29 additions & 0 deletions modules/core/client/css/core.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
.content {
margin-top: 50px;
}

.content-footer {
min-height: calc(100vh - 67px);
}

.undecorated-link:hover {
text-decoration: none;
}
Expand Down Expand Up @@ -69,3 +74,27 @@ a:hover .header-profile-image {
.hero-widget var { display: block; height: 64px; font-size: 64px; line-height: 64px; font-style: normal; }
.hero-widget label { font-size: 17px; }
.hero-widget .options { margin-top: 10px; }

.footer {
height: 17px;
text-align: center;
}

.footer-version {
color: #333;
font-weight: bold;
font-size: 12px;
font-family: Calibri;
}

.item-payed {
background: yellow;
}

.item-send {
background: lightgreen;
}

.item-left {
background: #ff9700;
}
11 changes: 10 additions & 1 deletion modules/core/client/services/translate.client.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,18 @@ angular.module('core').factory('t', [function () {
ORDER_STATUS_READY: 'Готові',
ORDER_STATUS_TOGO: 'Можна збирати',
ORDER_STATUS_DONE: 'Зібрані',
ORDER_STATUS_SENT: 'Відправлено',
ORDER_STATUS_CARE: 'Зберігання',
ORDER_STATUS_SELF: 'Самовивіз',
ORDER_STATUS_OUT: 'Роздача',
CLIENT_NEW: 'Додати клієнта',
CLIENT_EDIT: 'Редагувати клыэнта',
OK: 'Так',
CANCEL: 'Скасувати',
CONFIRM: 'Підтвердження',
REMOVE_ORDER_CONF: 'Видалити дане замовлення?',
PAY_ORDER_CONF: 'Оплатити дане замовлення?',
SEND_ORDER_CONF: 'Відправити дане замовлення?',
EDIT_ORDER_NUM: 'Редагувати замовлення #',
NEW_ORDER: 'Нове замовлення',
EDIT_MANUALLY: 'Ввести вручну',
Expand Down Expand Up @@ -116,6 +121,10 @@ angular.module('core').factory('t', [function () {
EDIT_CLIENT: 'Редагувати клієнта',
PLACE_DELIVER_DEFAULT: 'Місце отримання за замовчуванням',
TOTAL_ORDERS_TO_SHOW: 'Показано замовлень',
ACTIVE: 'Активний'
ACTIVE: 'Активний',
BAR: 'IRIS',
VOLUME: 'Об\'єм, мл',
COMMENTS: 'Коментарі',
GOOD_OLD_TYPES: 'Залишок'
};
}]);
2 changes: 1 addition & 1 deletion modules/core/client/views/confirm.client.view.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="modal-header">
<h3 class="modal-title">{{confirmTitle}}</h3>
<h4 class="modal-title">{{confirmTitle}}</h4>
</div>
<div class="modal-body">
<h3>{{confirmText}}</h3>
Expand Down
3 changes: 1 addition & 2 deletions modules/core/client/views/header.client.view.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
<span class="icon-bar"></span>
</button>
<a ui-sref="home" class="navbar-brand">
IRIS
<sup style="font-size: 10px; color: yellow">{{version}}</sup>
{{t.BAR}}
</a>
</div>
<nav class="collapse navbar-collapse" collapse="!isCollapsed" role="navigation">
Expand Down
4 changes: 3 additions & 1 deletion modules/core/server/views/layout.server.view.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,14 @@

<body class="ng-cloak">
<header ng-include="'/modules/core/client/views/header.client.view.html'" class="navbar navbar-fixed-top navbar-inverse"></header>
<section class="content">
<section class="content content-footer">
<section class="container">
{% block content %}{% endblock %}
</section>
</section>

<footer class="footer"><div class="footer-version">IRIS v{{version}}, developed by <a href="mailto:andriy.ermolenko@gmail.com">Andrii Yermolenko</a></div></footer>

<!--Embedding The User Object-->
<script type="text/javascript">
var user = {{ user | json | safe }};
Expand Down
2 changes: 1 addition & 1 deletion modules/data/client/config/orders.client.routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ angular.module('data').config(['$stateProvider',
}
})
.state('orders.create', {
url: '/create',
url: '/create?clientId',
templateUrl: 'modules/data/client/views/orders/edit.client.view.html',
data: {
roles: ['user']
Expand Down
Loading