mirror of
https://github.com/Mueller-Patrick/Betterzon.git
synced 2024-11-22 06:13:57 +00:00
resolved conflicts
This commit is contained in:
commit
3755402781
34
.github/workflows/master-betterzon.yml
vendored
34
.github/workflows/master-betterzon.yml
vendored
|
@ -1,34 +0,0 @@
|
|||
|
||||
name: Test
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [12.x]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
|
||||
- name: Cache node modules
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
path: ~/.npm
|
||||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-node-
|
||||
- name: Node ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
|
||||
- name: npm ci and npm run build
|
||||
run: |
|
||||
cd Frontend
|
||||
npm ci
|
||||
npm run build
|
5
.gitignore
vendored
5
.gitignore
vendored
|
@ -1,7 +1,7 @@
|
|||
# See http://help.github.com/ignore-files/ for more about ignoring files.
|
||||
|
||||
# compiled output
|
||||
/dist
|
||||
**/dist
|
||||
/tmp
|
||||
/out-tsc
|
||||
# Only exists if Bazel was run
|
||||
|
@ -52,3 +52,6 @@ testem.log
|
|||
.DS_Store
|
||||
Thumbs.db
|
||||
/CucumberTests/target/
|
||||
|
||||
# Env files
|
||||
.env
|
||||
|
|
|
@ -2,7 +2,10 @@
|
|||
<module type="WEB_MODULE" version="4">
|
||||
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
||||
<exclude-output />
|
||||
<content url="file://$MODULE_DIR$" />
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/dist" />
|
||||
</content>
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
||||
</module>
|
||||
|
|
|
@ -1,41 +0,0 @@
|
|||
var createError = require('http-errors');
|
||||
var express = require('express');
|
||||
var path = require('path');
|
||||
var cookieParser = require('cookie-parser');
|
||||
var logger = require('morgan');
|
||||
|
||||
var indexRouter = require('./routes/index');
|
||||
var usersRouter = require('./routes/users');
|
||||
|
||||
var app = express();
|
||||
|
||||
// view engine setup
|
||||
app.set('views', path.join(__dirname, 'views'));
|
||||
app.set('view engine', 'pug');
|
||||
|
||||
app.use(logger('dev'));
|
||||
app.use(express.json());
|
||||
app.use(express.urlencoded({extended: false}));
|
||||
app.use(cookieParser());
|
||||
app.use(express.static(path.join(__dirname, 'public')));
|
||||
|
||||
app.use('/', indexRouter);
|
||||
app.use('/users', usersRouter);
|
||||
|
||||
// catch 404 and forward to error handler
|
||||
app.use(function (req, res, next) {
|
||||
next(createError(404));
|
||||
});
|
||||
|
||||
// error handler
|
||||
app.use(function (err, req, res, next) {
|
||||
// set locals, only providing error in development
|
||||
res.locals.message = err.message;
|
||||
res.locals.error = req.app.get('env') === 'development' ? err : {};
|
||||
|
||||
// render the error page
|
||||
res.status(err.status || 500);
|
||||
res.render('error');
|
||||
});
|
||||
|
||||
module.exports = app;
|
|
@ -1,90 +0,0 @@
|
|||
#!/usr/bin/env node
|
||||
|
||||
/**
|
||||
* Module dependencies.
|
||||
*/
|
||||
|
||||
var app = require('../app');
|
||||
var debug = require('debug')('backend:server');
|
||||
var http = require('http');
|
||||
|
||||
/**
|
||||
* Get port from environment and store in Express.
|
||||
*/
|
||||
|
||||
var port = normalizePort(process.env.PORT || '3000');
|
||||
app.set('port', port);
|
||||
|
||||
/**
|
||||
* Create HTTP server.
|
||||
*/
|
||||
|
||||
var server = http.createServer(app);
|
||||
|
||||
/**
|
||||
* Listen on provided port, on all network interfaces.
|
||||
*/
|
||||
|
||||
server.listen(port);
|
||||
server.on('error', onError);
|
||||
server.on('listening', onListening);
|
||||
|
||||
/**
|
||||
* Normalize a port into a number, string, or false.
|
||||
*/
|
||||
|
||||
function normalizePort(val) {
|
||||
var port = parseInt(val, 10);
|
||||
|
||||
if (isNaN(port)) {
|
||||
// named pipe
|
||||
return val;
|
||||
}
|
||||
|
||||
if (port >= 0) {
|
||||
// port number
|
||||
return port;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Event listener for HTTP server "error" event.
|
||||
*/
|
||||
|
||||
function onError(error) {
|
||||
if (error.syscall !== 'listen') {
|
||||
throw error;
|
||||
}
|
||||
|
||||
var bind = typeof port === 'string'
|
||||
? 'Pipe ' + port
|
||||
: 'Port ' + port;
|
||||
|
||||
// handle specific listen errors with friendly messages
|
||||
switch (error.code) {
|
||||
case 'EACCES':
|
||||
console.error(bind + ' requires elevated privileges');
|
||||
process.exit(1);
|
||||
break;
|
||||
case 'EADDRINUSE':
|
||||
console.error(bind + ' is already in use');
|
||||
process.exit(1);
|
||||
break;
|
||||
default:
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Event listener for HTTP server "listening" event.
|
||||
*/
|
||||
|
||||
function onListening() {
|
||||
var addr = server.address();
|
||||
var bind = typeof addr === 'string'
|
||||
? 'pipe ' + addr
|
||||
: 'port ' + addr.port;
|
||||
debug('Listening on ' + bind);
|
||||
}
|
7767
Backend/package-lock.json
generated
7767
Backend/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
|
@ -1,16 +1,34 @@
|
|||
{
|
||||
"name": "backend",
|
||||
"version": "0.0.0",
|
||||
"private": true,
|
||||
"name": "Backend",
|
||||
"version": "1.0.0",
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"start": "node ./bin/www"
|
||||
"start": "node dist/index",
|
||||
"webpack": "webpack --config webpack.config.ts"
|
||||
},
|
||||
"keywords": [],
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"cookie-parser": "~1.4.4",
|
||||
"debug": "~2.6.9",
|
||||
"express": "~4.16.1",
|
||||
"http-errors": "~1.6.3",
|
||||
"morgan": "~1.9.1",
|
||||
"pug": "2.0.0-beta11"
|
||||
"cors": "^2.8.5",
|
||||
"dotenv": "^8.2.0",
|
||||
"express": "^4.17.1",
|
||||
"helmet": "^4.2.0",
|
||||
"mariadb": "^2.5.1",
|
||||
"typeorm": "^0.2.29"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/cors": "^2.8.8",
|
||||
"@types/dotenv": "^8.2.0",
|
||||
"@types/express": "^4.17.9",
|
||||
"@types/helmet": "^4.0.0",
|
||||
"@types/node": "^14.14.9",
|
||||
"@types/webpack": "^4.41.25",
|
||||
"ts-loader": "^6.2.2",
|
||||
"typescript": "^4.1.2",
|
||||
"webpack": "^5.6.0",
|
||||
"webpack-cli": "^3.3.12",
|
||||
"webpack-node-externals": "^1.7.2"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
body {
|
||||
padding: 50px;
|
||||
font: 14px "Lucida Grande", Helvetica, Arial, sans-serif;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #00B7FF;
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
var express = require('express');
|
||||
var router = express.Router();
|
||||
|
||||
/* GET home page. */
|
||||
router.get('/', function (req, res, next) {
|
||||
res.render('index', {
|
||||
title: 'Express'
|
||||
});
|
||||
});
|
||||
|
||||
module.exports = router;
|
|
@ -1,9 +0,0 @@
|
|||
var express = require('express');
|
||||
var router = express.Router();
|
||||
|
||||
/* GET users listing. */
|
||||
router.get('/', function (req, res, next) {
|
||||
res.send('respond with a resource');
|
||||
});
|
||||
|
||||
module.exports = router;
|
13
Backend/src/common/http-exception.ts
Normal file
13
Backend/src/common/http-exception.ts
Normal file
|
@ -0,0 +1,13 @@
|
|||
export default class HttpException extends Error {
|
||||
statusCode: number;
|
||||
message: string;
|
||||
error: string | null;
|
||||
|
||||
constructor(statusCode: number, message: string, error?: string) {
|
||||
super(message);
|
||||
|
||||
this.statusCode = statusCode;
|
||||
this.message = message;
|
||||
this.error = error || null;
|
||||
}
|
||||
}
|
83
Backend/src/index.ts
Normal file
83
Backend/src/index.ts
Normal file
|
@ -0,0 +1,83 @@
|
|||
/**
|
||||
* Required External Modules
|
||||
*/
|
||||
|
||||
import * as dotenv from 'dotenv';
|
||||
import express from 'express';
|
||||
import cors from 'cors';
|
||||
import helmet from 'helmet';
|
||||
import {productsRouter} from './models/products/products.router';
|
||||
import {categoriesRouter} from './models/categories/categories.router';
|
||||
import {manufacturersRouter} from './models/manufacturers/manufacturers.router';
|
||||
import {pricesRouter} from './models/prices/prices.router';
|
||||
import {vendorsRouter} from './models/vendors/vendors.router';
|
||||
import {errorHandler} from './middleware/error.middleware';
|
||||
import {notFoundHandler} from './middleware/notFound.middleware';
|
||||
|
||||
dotenv.config();
|
||||
|
||||
|
||||
/**
|
||||
* App Variables
|
||||
*/
|
||||
|
||||
if (!process.env.PORT) {
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
const PORT: number = parseInt(process.env.PORT as string, 10);
|
||||
|
||||
const app = express();
|
||||
|
||||
|
||||
/**
|
||||
* App Configuration
|
||||
*/
|
||||
|
||||
app.use(helmet());
|
||||
app.use(cors());
|
||||
app.use(express.json());
|
||||
app.use('/products', productsRouter);
|
||||
app.use('/categories', categoriesRouter);
|
||||
app.use('/manufacturers', manufacturersRouter);
|
||||
app.use('/prices', pricesRouter);
|
||||
app.use('/vendors', vendorsRouter);
|
||||
|
||||
app.use(errorHandler);
|
||||
app.use(notFoundHandler);
|
||||
|
||||
|
||||
/**
|
||||
* Server Activation
|
||||
*/
|
||||
|
||||
const server = app.listen(PORT, () => {
|
||||
console.log(`Listening on port ${PORT}`);
|
||||
});
|
||||
|
||||
|
||||
/**
|
||||
* Webpack HMR Activation
|
||||
*/
|
||||
|
||||
type ModuleId = string | number;
|
||||
|
||||
interface WebpackHotModule {
|
||||
hot?: {
|
||||
data: any;
|
||||
accept(
|
||||
dependencies: string[],
|
||||
callback?: (updatedDependencies: ModuleId[]) => void,
|
||||
): void;
|
||||
accept(dependency: string, callback?: () => void): void;
|
||||
accept(errHandler?: (err: Error) => void): void;
|
||||
dispose(callback: (data: any) => void): void;
|
||||
};
|
||||
}
|
||||
|
||||
declare const module: WebpackHotModule;
|
||||
|
||||
if (module.hot) {
|
||||
module.hot.accept();
|
||||
module.hot.dispose(() => server.close());
|
||||
}
|
15
Backend/src/middleware/error.middleware.ts
Normal file
15
Backend/src/middleware/error.middleware.ts
Normal file
|
@ -0,0 +1,15 @@
|
|||
import HttpException from "../common/http-exception";
|
||||
import { Request, Response, NextFunction } from "express";
|
||||
|
||||
export const errorHandler = (
|
||||
error: HttpException,
|
||||
request: Request,
|
||||
response: Response,
|
||||
next: NextFunction
|
||||
) => {
|
||||
const status = error.statusCode || 500;
|
||||
const message =
|
||||
error.message || "It's not you. It's us. We are having some problems.";
|
||||
|
||||
response.status(status).send(message);
|
||||
};
|
12
Backend/src/middleware/notFound.middleware.ts
Normal file
12
Backend/src/middleware/notFound.middleware.ts
Normal file
|
@ -0,0 +1,12 @@
|
|||
import { Request, Response, NextFunction } from "express";
|
||||
|
||||
export const notFoundHandler = (
|
||||
request: Request,
|
||||
response: Response,
|
||||
next: NextFunction
|
||||
) => {
|
||||
|
||||
const message = "Resource not found";
|
||||
|
||||
response.status(404).send(message);
|
||||
};
|
5
Backend/src/models/categories/categories.interface.ts
Normal file
5
Backend/src/models/categories/categories.interface.ts
Normal file
|
@ -0,0 +1,5 @@
|
|||
import {Category} from './category.interface';
|
||||
|
||||
export interface Categories {
|
||||
[key: number]: Category;
|
||||
}
|
112
Backend/src/models/categories/categories.router.ts
Normal file
112
Backend/src/models/categories/categories.router.ts
Normal file
|
@ -0,0 +1,112 @@
|
|||
/**
|
||||
* Required External Modules and Interfaces
|
||||
*/
|
||||
|
||||
import express, {Request, Response} from 'express';
|
||||
import * as CategoryService from './categories.service';
|
||||
import {Category} from './category.interface';
|
||||
import {Categories} from './categories.interface';
|
||||
|
||||
|
||||
/**
|
||||
* Router Definition
|
||||
*/
|
||||
|
||||
export const categoriesRouter = express.Router();
|
||||
|
||||
|
||||
/**
|
||||
* Controller Definitions
|
||||
*/
|
||||
|
||||
// GET items/
|
||||
|
||||
categoriesRouter.get('/', async (req: Request, res: Response) => {
|
||||
try {
|
||||
const categories: Categories = await CategoryService.findAll();
|
||||
|
||||
res.status(200).send(categories);
|
||||
} catch (e) {
|
||||
res.status(404).send(e.message);
|
||||
}
|
||||
});
|
||||
|
||||
// GET items/:id
|
||||
|
||||
categoriesRouter.get('/:id', async (req: Request, res: Response) => {
|
||||
const id: number = parseInt(req.params.id, 10);
|
||||
|
||||
if (!id) {
|
||||
res.status(400).send('Missing parameters.');
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
const category: Category = await CategoryService.find(id);
|
||||
|
||||
res.status(200).send(category);
|
||||
} catch (e) {
|
||||
res.status(404).send(e.message);
|
||||
}
|
||||
});
|
||||
|
||||
// GET items/:name
|
||||
|
||||
categoriesRouter.get('/search/:term', async (req: Request, res: Response) => {
|
||||
const term: string = req.params.term;
|
||||
|
||||
if (!term) {
|
||||
res.status(400).send('Missing parameters.');
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
const categories: Categories = await CategoryService.findBySearchTerm(term);
|
||||
|
||||
res.status(200).send(categories);
|
||||
} catch (e) {
|
||||
res.status(404).send(e.message);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
// POST items/
|
||||
|
||||
// categoriesRouter.post('/', async (req: Request, res: Response) => {
|
||||
// try {
|
||||
// const category: Category = req.body.category;
|
||||
//
|
||||
// await CategoryService.create(category);
|
||||
//
|
||||
// res.sendStatus(201);
|
||||
// } catch (e) {
|
||||
// res.status(404).send(e.message);
|
||||
// }
|
||||
// });
|
||||
//
|
||||
// // PUT items/
|
||||
//
|
||||
// categoriesRouter.put('/', async (req: Request, res: Response) => {
|
||||
// try {
|
||||
// const category: Category = req.body.category;
|
||||
//
|
||||
// await CategoryService.update(category);
|
||||
//
|
||||
// res.sendStatus(200);
|
||||
// } catch (e) {
|
||||
// res.status(500).send(e.message);
|
||||
// }
|
||||
// });
|
||||
//
|
||||
// // DELETE items/:id
|
||||
//
|
||||
// categoriesRouter.delete('/:id', async (req: Request, res: Response) => {
|
||||
// try {
|
||||
// const id: number = parseInt(req.params.id, 10);
|
||||
// await CategoryService.remove(id);
|
||||
//
|
||||
// res.sendStatus(200);
|
||||
// } catch (e) {
|
||||
// res.status(500).send(e.message);
|
||||
// }
|
||||
// });
|
135
Backend/src/models/categories/categories.service.ts
Normal file
135
Backend/src/models/categories/categories.service.ts
Normal file
|
@ -0,0 +1,135 @@
|
|||
import * as dotenv from 'dotenv';
|
||||
|
||||
dotenv.config();
|
||||
|
||||
const mariadb = require('mariadb');
|
||||
const pool = mariadb.createPool({
|
||||
host: process.env.DB_HOST,
|
||||
user: process.env.DB_USER,
|
||||
password: process.env.DB_PASSWORD,
|
||||
database: process.env.DB_DATABASE,
|
||||
connectionLimit: 5
|
||||
});
|
||||
|
||||
/**
|
||||
* Data Model Interfaces
|
||||
*/
|
||||
|
||||
import {Category} from './category.interface';
|
||||
import {Categories} from './categories.interface';
|
||||
|
||||
|
||||
/**
|
||||
* Service Methods
|
||||
*/
|
||||
|
||||
export const findAll = async (): Promise<Categories> => {
|
||||
let conn;
|
||||
let categRows = [];
|
||||
try {
|
||||
conn = await pool.getConnection();
|
||||
const rows = await conn.query('SELECT category_id, name FROM categories');
|
||||
for (let row in rows) {
|
||||
if (row !== 'meta') {
|
||||
let categ: Category = {
|
||||
category_id: 0,
|
||||
name: ''
|
||||
};
|
||||
const sqlCateg = rows[row];
|
||||
|
||||
categ.category_id = sqlCateg.category_id;
|
||||
categ.name = sqlCateg.name;
|
||||
categRows.push(categ);
|
||||
}
|
||||
}
|
||||
|
||||
} catch (err) {
|
||||
throw err;
|
||||
} finally {
|
||||
if (conn) {
|
||||
conn.end();
|
||||
}
|
||||
}
|
||||
|
||||
return categRows;
|
||||
};
|
||||
|
||||
export const find = async (id: number): Promise<Category> => {
|
||||
let conn;
|
||||
let categ: any;
|
||||
try {
|
||||
conn = await pool.getConnection();
|
||||
const rows = await conn.query('SELECT category_id, name FROM categories WHERE category_id = ?', id);
|
||||
for (let row in rows) {
|
||||
if (row !== 'meta') {
|
||||
categ = rows[row];
|
||||
}
|
||||
}
|
||||
|
||||
} catch (err) {
|
||||
throw err;
|
||||
} finally {
|
||||
if (conn) {
|
||||
conn.end();
|
||||
}
|
||||
}
|
||||
|
||||
return categ;
|
||||
};
|
||||
|
||||
export const findBySearchTerm = async (term: string): Promise<Categories> => {
|
||||
let conn;
|
||||
let categRows = [];
|
||||
try {
|
||||
conn = await pool.getConnection();
|
||||
term = '%' + term + '%';
|
||||
const rows = await conn.query('SELECT category_id, name FROM categories WHERE name LIKE ?', term);
|
||||
for (let row in rows) {
|
||||
if (row !== 'meta') {
|
||||
categRows.push(rows[row]);
|
||||
}
|
||||
}
|
||||
|
||||
} catch (err) {
|
||||
throw err;
|
||||
} finally {
|
||||
if (conn) {
|
||||
conn.end();
|
||||
}
|
||||
}
|
||||
|
||||
return categRows;
|
||||
};
|
||||
|
||||
// export const create = async (newItem: Product): Promise<void> => {
|
||||
// let conn;
|
||||
// try {
|
||||
// conn = await pool.getConnection();
|
||||
// await conn.query("");
|
||||
//
|
||||
// } catch (err) {
|
||||
// throw err;
|
||||
// } finally {
|
||||
// if (conn) conn.end();
|
||||
// }
|
||||
// };
|
||||
//
|
||||
// export const update = async (updatedItem: Product): Promise<void> => {
|
||||
// if (models.products[updatedItem.product_id]) {
|
||||
// models.products[updatedItem.product_id] = updatedItem;
|
||||
// return;
|
||||
// }
|
||||
//
|
||||
// throw new Error("No record found to update");
|
||||
// };
|
||||
//
|
||||
// export const remove = async (id: number): Promise<void> => {
|
||||
// const record: Product = models.products[id];
|
||||
//
|
||||
// if (record) {
|
||||
// delete models.products[id];
|
||||
// return;
|
||||
// }
|
||||
//
|
||||
// throw new Error("No record found to delete");
|
||||
// };
|
4
Backend/src/models/categories/category.interface.ts
Normal file
4
Backend/src/models/categories/category.interface.ts
Normal file
|
@ -0,0 +1,4 @@
|
|||
export interface Category {
|
||||
category_id: number;
|
||||
name: string;
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
export interface Manufacturer {
|
||||
manufacturer_id: number;
|
||||
name: string;
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
import {Manufacturer} from './manufacturer.interface';
|
||||
|
||||
export interface Manufacturers {
|
||||
[key: number]: Manufacturer;
|
||||
}
|
112
Backend/src/models/manufacturers/manufacturers.router.ts
Normal file
112
Backend/src/models/manufacturers/manufacturers.router.ts
Normal file
|
@ -0,0 +1,112 @@
|
|||
/**
|
||||
* Required External Modules and Interfaces
|
||||
*/
|
||||
|
||||
import express, {Request, Response} from 'express';
|
||||
import * as ManufacturerService from './manufacturers.service';
|
||||
import {Manufacturer} from './manufacturer.interface';
|
||||
import {Manufacturers} from './manufacturers.interface';
|
||||
|
||||
|
||||
/**
|
||||
* Router Definition
|
||||
*/
|
||||
|
||||
export const manufacturersRouter = express.Router();
|
||||
|
||||
|
||||
/**
|
||||
* Controller Definitions
|
||||
*/
|
||||
|
||||
// GET items/
|
||||
|
||||
manufacturersRouter.get('/', async (req: Request, res: Response) => {
|
||||
try {
|
||||
const manufacturers: Manufacturers = await ManufacturerService.findAll();
|
||||
|
||||
res.status(200).send(manufacturers);
|
||||
} catch (e) {
|
||||
res.status(404).send(e.message);
|
||||
}
|
||||
});
|
||||
|
||||
// GET items/:id
|
||||
|
||||
manufacturersRouter.get('/:id', async (req: Request, res: Response) => {
|
||||
const id: number = parseInt(req.params.id, 10);
|
||||
|
||||
if (!id) {
|
||||
res.status(400).send('Missing parameters.');
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
const manufacturer: Manufacturer = await ManufacturerService.find(id);
|
||||
|
||||
res.status(200).send(manufacturer);
|
||||
} catch (e) {
|
||||
res.status(404).send(e.message);
|
||||
}
|
||||
});
|
||||
|
||||
// GET items/:name
|
||||
|
||||
manufacturersRouter.get('/search/:term', async (req: Request, res: Response) => {
|
||||
const term: string = req.params.term;
|
||||
|
||||
if (!term) {
|
||||
res.status(400).send('Missing parameters.');
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
const manufacturer: Manufacturers = await ManufacturerService.findBySearchTerm(term);
|
||||
|
||||
res.status(200).send(manufacturer);
|
||||
} catch (e) {
|
||||
res.status(404).send(e.message);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
// POST items/
|
||||
|
||||
// manufacturersRouter.post('/', async (req: Request, res: Response) => {
|
||||
// try {
|
||||
// const category: Category = req.body.category;
|
||||
//
|
||||
// await CategoryService.create(category);
|
||||
//
|
||||
// res.sendStatus(201);
|
||||
// } catch (e) {
|
||||
// res.status(404).send(e.message);
|
||||
// }
|
||||
// });
|
||||
//
|
||||
// // PUT items/
|
||||
//
|
||||
// manufacturersRouter.put('/', async (req: Request, res: Response) => {
|
||||
// try {
|
||||
// const category: Category = req.body.category;
|
||||
//
|
||||
// await CategoryService.update(category);
|
||||
//
|
||||
// res.sendStatus(200);
|
||||
// } catch (e) {
|
||||
// res.status(500).send(e.message);
|
||||
// }
|
||||
// });
|
||||
//
|
||||
// // DELETE items/:id
|
||||
//
|
||||
// manufacturersRouter.delete('/:id', async (req: Request, res: Response) => {
|
||||
// try {
|
||||
// const id: number = parseInt(req.params.id, 10);
|
||||
// await CategoryService.remove(id);
|
||||
//
|
||||
// res.sendStatus(200);
|
||||
// } catch (e) {
|
||||
// res.status(500).send(e.message);
|
||||
// }
|
||||
// });
|
135
Backend/src/models/manufacturers/manufacturers.service.ts
Normal file
135
Backend/src/models/manufacturers/manufacturers.service.ts
Normal file
|
@ -0,0 +1,135 @@
|
|||
import * as dotenv from 'dotenv';
|
||||
|
||||
dotenv.config();
|
||||
|
||||
const mariadb = require('mariadb');
|
||||
const pool = mariadb.createPool({
|
||||
host: process.env.DB_HOST,
|
||||
user: process.env.DB_USER,
|
||||
password: process.env.DB_PASSWORD,
|
||||
database: process.env.DB_DATABASE,
|
||||
connectionLimit: 5
|
||||
});
|
||||
|
||||
/**
|
||||
* Data Model Interfaces
|
||||
*/
|
||||
|
||||
import {Manufacturer} from './manufacturer.interface';
|
||||
import {Manufacturers} from './manufacturers.interface';
|
||||
|
||||
|
||||
/**
|
||||
* Service Methods
|
||||
*/
|
||||
|
||||
export const findAll = async (): Promise<Manufacturers> => {
|
||||
let conn;
|
||||
let manRows = [];
|
||||
try {
|
||||
conn = await pool.getConnection();
|
||||
const rows = await conn.query('SELECT manufacturer_id, name FROM manufacturers');
|
||||
for (let row in rows) {
|
||||
if (row !== 'meta') {
|
||||
let man: Manufacturer = {
|
||||
manufacturer_id: 0,
|
||||
name: ''
|
||||
};
|
||||
const sqlMan = rows[row];
|
||||
|
||||
man.manufacturer_id = sqlMan.manufacturer_id;
|
||||
man.name = sqlMan.name;
|
||||
manRows.push(man);
|
||||
}
|
||||
}
|
||||
|
||||
} catch (err) {
|
||||
throw err;
|
||||
} finally {
|
||||
if (conn) {
|
||||
conn.end();
|
||||
}
|
||||
}
|
||||
|
||||
return manRows;
|
||||
};
|
||||
|
||||
export const find = async (id: number): Promise<Manufacturer> => {
|
||||
let conn;
|
||||
let man: any;
|
||||
try {
|
||||
conn = await pool.getConnection();
|
||||
const rows = await conn.query('SELECT manufacturer_id, name FROM manufacturers WHERE manufacturer_id = ?', id);
|
||||
for (let row in rows) {
|
||||
if (row !== 'meta') {
|
||||
man = rows[row];
|
||||
}
|
||||
}
|
||||
|
||||
} catch (err) {
|
||||
throw err;
|
||||
} finally {
|
||||
if (conn) {
|
||||
conn.end();
|
||||
}
|
||||
}
|
||||
|
||||
return man;
|
||||
};
|
||||
|
||||
export const findBySearchTerm = async (term: string): Promise<Manufacturers> => {
|
||||
let conn;
|
||||
let manRows = [];
|
||||
try {
|
||||
conn = await pool.getConnection();
|
||||
term = '%' + term + '%';
|
||||
const rows = await conn.query('SELECT manufacturer_id, name FROM manufacturers WHERE name LIKE ?', term);
|
||||
for (let row in rows) {
|
||||
if (row !== 'meta') {
|
||||
manRows.push(rows[row]);
|
||||
}
|
||||
}
|
||||
|
||||
} catch (err) {
|
||||
throw err;
|
||||
} finally {
|
||||
if (conn) {
|
||||
conn.end();
|
||||
}
|
||||
}
|
||||
|
||||
return manRows;
|
||||
};
|
||||
|
||||
// export const create = async (newItem: Product): Promise<void> => {
|
||||
// let conn;
|
||||
// try {
|
||||
// conn = await pool.getConnection();
|
||||
// await conn.query("");
|
||||
//
|
||||
// } catch (err) {
|
||||
// throw err;
|
||||
// } finally {
|
||||
// if (conn) conn.end();
|
||||
// }
|
||||
// };
|
||||
//
|
||||
// export const update = async (updatedItem: Product): Promise<void> => {
|
||||
// if (models.products[updatedItem.product_id]) {
|
||||
// models.products[updatedItem.product_id] = updatedItem;
|
||||
// return;
|
||||
// }
|
||||
//
|
||||
// throw new Error("No record found to update");
|
||||
// };
|
||||
//
|
||||
// export const remove = async (id: number): Promise<void> => {
|
||||
// const record: Product = models.products[id];
|
||||
//
|
||||
// if (record) {
|
||||
// delete models.products[id];
|
||||
// return;
|
||||
// }
|
||||
//
|
||||
// throw new Error("No record found to delete");
|
||||
// };
|
7
Backend/src/models/prices/price.interface.ts
Normal file
7
Backend/src/models/prices/price.interface.ts
Normal file
|
@ -0,0 +1,7 @@
|
|||
export interface Price {
|
||||
price_id: number;
|
||||
product_id: number;
|
||||
vendor_id: number;
|
||||
price_in_cents: number;
|
||||
timestamp: Date;
|
||||
}
|
5
Backend/src/models/prices/prices.interface.ts
Normal file
5
Backend/src/models/prices/prices.interface.ts
Normal file
|
@ -0,0 +1,5 @@
|
|||
import {Price} from './price.interface';
|
||||
|
||||
export interface Prices {
|
||||
[key: number]: Price;
|
||||
}
|
112
Backend/src/models/prices/prices.router.ts
Normal file
112
Backend/src/models/prices/prices.router.ts
Normal file
|
@ -0,0 +1,112 @@
|
|||
/**
|
||||
* Required External Modules and Interfaces
|
||||
*/
|
||||
|
||||
import express, {Request, Response} from 'express';
|
||||
import * as PriceService from './prices.service';
|
||||
import {Price} from './price.interface';
|
||||
import {Prices} from './prices.interface';
|
||||
|
||||
|
||||
/**
|
||||
* Router Definition
|
||||
*/
|
||||
|
||||
export const pricesRouter = express.Router();
|
||||
|
||||
|
||||
/**
|
||||
* Controller Definitions
|
||||
*/
|
||||
|
||||
// GET items/
|
||||
|
||||
pricesRouter.get('/', async (req: Request, res: Response) => {
|
||||
try {
|
||||
const prices: Prices = await PriceService.findAll();
|
||||
|
||||
res.status(200).send(prices);
|
||||
} catch (e) {
|
||||
res.status(404).send(e.message);
|
||||
}
|
||||
});
|
||||
|
||||
// GET items/:id
|
||||
|
||||
pricesRouter.get('/:id', async (req: Request, res: Response) => {
|
||||
const id: number = parseInt(req.params.id, 10);
|
||||
|
||||
if (!id) {
|
||||
res.status(400).send('Missing parameters.');
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
const price: Price = await PriceService.find(id);
|
||||
|
||||
res.status(200).send(price);
|
||||
} catch (e) {
|
||||
res.status(404).send(e.message);
|
||||
}
|
||||
});
|
||||
|
||||
// GET items/:name
|
||||
|
||||
pricesRouter.get('/products/:id', async (req: Request, res: Response) => {
|
||||
const id: number = parseInt(req.params.id, 10);
|
||||
|
||||
if (!id) {
|
||||
res.status(400).send('Missing parameters.');
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
const prices: Prices = await PriceService.findByProduct(id);
|
||||
|
||||
res.status(200).send(prices);
|
||||
} catch (e) {
|
||||
res.status(404).send(e.message);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
// POST items/
|
||||
|
||||
// pricesRouter.post('/', async (req: Request, res: Response) => {
|
||||
// try {
|
||||
// const category: Category = req.body.category;
|
||||
//
|
||||
// await CategoryService.create(category);
|
||||
//
|
||||
// res.sendStatus(201);
|
||||
// } catch (e) {
|
||||
// res.status(404).send(e.message);
|
||||
// }
|
||||
// });
|
||||
//
|
||||
// // PUT items/
|
||||
//
|
||||
// pricesRouter.put('/', async (req: Request, res: Response) => {
|
||||
// try {
|
||||
// const category: Category = req.body.category;
|
||||
//
|
||||
// await CategoryService.update(category);
|
||||
//
|
||||
// res.sendStatus(200);
|
||||
// } catch (e) {
|
||||
// res.status(500).send(e.message);
|
||||
// }
|
||||
// });
|
||||
//
|
||||
// // DELETE items/:id
|
||||
//
|
||||
// pricesRouter.delete('/:id', async (req: Request, res: Response) => {
|
||||
// try {
|
||||
// const id: number = parseInt(req.params.id, 10);
|
||||
// await CategoryService.remove(id);
|
||||
//
|
||||
// res.sendStatus(200);
|
||||
// } catch (e) {
|
||||
// res.status(500).send(e.message);
|
||||
// }
|
||||
// });
|
140
Backend/src/models/prices/prices.service.ts
Normal file
140
Backend/src/models/prices/prices.service.ts
Normal file
|
@ -0,0 +1,140 @@
|
|||
import * as dotenv from 'dotenv';
|
||||
|
||||
dotenv.config();
|
||||
|
||||
const mariadb = require('mariadb');
|
||||
const pool = mariadb.createPool({
|
||||
host: process.env.DB_HOST,
|
||||
user: process.env.DB_USER,
|
||||
password: process.env.DB_PASSWORD,
|
||||
database: process.env.DB_DATABASE,
|
||||
connectionLimit: 5
|
||||
});
|
||||
|
||||
/**
|
||||
* Data Model Interfaces
|
||||
*/
|
||||
|
||||
import {Price} from './price.interface';
|
||||
import {Prices} from './prices.interface';
|
||||
|
||||
|
||||
/**
|
||||
* Service Methods
|
||||
*/
|
||||
|
||||
export const findAll = async (): Promise<Prices> => {
|
||||
let conn;
|
||||
let priceRows = [];
|
||||
try {
|
||||
conn = await pool.getConnection();
|
||||
const rows = await conn.query('SELECT price_id, product_id, vendor_id, price_in_cents, timestamp FROM prices');
|
||||
for (let row in rows) {
|
||||
if (row !== 'meta') {
|
||||
let price: Price = {
|
||||
price_id: 0,
|
||||
price_in_cents: 0,
|
||||
product_id: 0,
|
||||
timestamp: new Date(),
|
||||
vendor_id: 0
|
||||
};
|
||||
const sqlPrice = rows[row];
|
||||
|
||||
price.price_id = sqlPrice.price_id;
|
||||
price.product_id = sqlPrice.product_id;
|
||||
price.vendor_id = sqlPrice.vendor_id;
|
||||
price.price_in_cents = sqlPrice.price_in_cents;
|
||||
price.timestamp = sqlPrice.timestamp;
|
||||
priceRows.push(price);
|
||||
}
|
||||
}
|
||||
|
||||
} catch (err) {
|
||||
throw err;
|
||||
} finally {
|
||||
if (conn) {
|
||||
conn.end();
|
||||
}
|
||||
}
|
||||
|
||||
return priceRows;
|
||||
};
|
||||
|
||||
export const find = async (id: number): Promise<Price> => {
|
||||
let conn;
|
||||
let price: any;
|
||||
try {
|
||||
conn = await pool.getConnection();
|
||||
const rows = await conn.query('SELECT price_id, product_id, vendor_id, price_in_cents, timestamp FROM prices WHERE price_id = ?', id);
|
||||
for (let row in rows) {
|
||||
if (row !== 'meta') {
|
||||
price = rows[row];
|
||||
}
|
||||
}
|
||||
|
||||
} catch (err) {
|
||||
throw err;
|
||||
} finally {
|
||||
if (conn) {
|
||||
conn.end();
|
||||
}
|
||||
}
|
||||
|
||||
return price;
|
||||
};
|
||||
|
||||
export const findByProduct = async (product: number): Promise<Prices> => {
|
||||
let conn;
|
||||
let priceRows = [];
|
||||
try {
|
||||
conn = await pool.getConnection();
|
||||
const rows = await conn.query('SELECT price_id, product_id, vendor_id, price_in_cents, timestamp FROM prices WHERE product_id = ?', product);
|
||||
for (let row in rows) {
|
||||
if (row !== 'meta') {
|
||||
priceRows.push(rows[row]);
|
||||
}
|
||||
}
|
||||
|
||||
} catch (err) {
|
||||
throw err;
|
||||
} finally {
|
||||
if (conn) {
|
||||
conn.end();
|
||||
}
|
||||
}
|
||||
|
||||
return priceRows;
|
||||
};
|
||||
|
||||
// export const create = async (newItem: Product): Promise<void> => {
|
||||
// let conn;
|
||||
// try {
|
||||
// conn = await pool.getConnection();
|
||||
// await conn.query("");
|
||||
//
|
||||
// } catch (err) {
|
||||
// throw err;
|
||||
// } finally {
|
||||
// if (conn) conn.end();
|
||||
// }
|
||||
// };
|
||||
//
|
||||
// export const update = async (updatedItem: Product): Promise<void> => {
|
||||
// if (models.products[updatedItem.product_id]) {
|
||||
// models.products[updatedItem.product_id] = updatedItem;
|
||||
// return;
|
||||
// }
|
||||
//
|
||||
// throw new Error("No record found to update");
|
||||
// };
|
||||
//
|
||||
// export const remove = async (id: number): Promise<void> => {
|
||||
// const record: Product = models.products[id];
|
||||
//
|
||||
// if (record) {
|
||||
// delete models.products[id];
|
||||
// return;
|
||||
// }
|
||||
//
|
||||
// throw new Error("No record found to delete");
|
||||
// };
|
14
Backend/src/models/products/product.interface.ts
Normal file
14
Backend/src/models/products/product.interface.ts
Normal file
|
@ -0,0 +1,14 @@
|
|||
export interface Product {
|
||||
product_id: number;
|
||||
asin: string;
|
||||
is_active: boolean;
|
||||
name: string;
|
||||
short_description: string;
|
||||
long_description: string;
|
||||
image_guid: string;
|
||||
date_added: Date;
|
||||
last_modified: Date;
|
||||
manufacturer_id: number;
|
||||
selling_rank: string;
|
||||
category_id: number;
|
||||
}
|
5
Backend/src/models/products/products.interface.ts
Normal file
5
Backend/src/models/products/products.interface.ts
Normal file
|
@ -0,0 +1,5 @@
|
|||
import {Product} from './product.interface';
|
||||
|
||||
export interface Products {
|
||||
[key: number]: Product;
|
||||
}
|
112
Backend/src/models/products/products.router.ts
Normal file
112
Backend/src/models/products/products.router.ts
Normal file
|
@ -0,0 +1,112 @@
|
|||
/**
|
||||
* Required External Modules and Interfaces
|
||||
*/
|
||||
|
||||
import express, {Request, Response} from 'express';
|
||||
import * as ProductService from './products.service';
|
||||
import {Product} from './product.interface';
|
||||
import {Products} from './products.interface';
|
||||
|
||||
|
||||
/**
|
||||
* Router Definition
|
||||
*/
|
||||
|
||||
export const productsRouter = express.Router();
|
||||
|
||||
|
||||
/**
|
||||
* Controller Definitions
|
||||
*/
|
||||
|
||||
// GET items/
|
||||
|
||||
productsRouter.get('/', async (req: Request, res: Response) => {
|
||||
try {
|
||||
const products: Products = await ProductService.findAll();
|
||||
|
||||
res.status(200).send(products);
|
||||
} catch (e) {
|
||||
res.status(404).send(e.message);
|
||||
}
|
||||
});
|
||||
|
||||
// GET items/:id
|
||||
|
||||
productsRouter.get('/:id', async (req: Request, res: Response) => {
|
||||
const id: number = parseInt(req.params.id, 10);
|
||||
|
||||
if (!id) {
|
||||
res.status(400).send('Missing parameters.');
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
const product: Product = await ProductService.find(id);
|
||||
|
||||
res.status(200).send(product);
|
||||
} catch (e) {
|
||||
res.status(404).send(e.message);
|
||||
}
|
||||
});
|
||||
|
||||
// GET items/:name
|
||||
|
||||
productsRouter.get('/search/:term', async (req: Request, res: Response) => {
|
||||
const term: string = req.params.term;
|
||||
|
||||
if (!term) {
|
||||
res.status(400).send('Missing parameters.');
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
const products: Products = await ProductService.findBySearchTerm(term);
|
||||
|
||||
res.status(200).send(products);
|
||||
} catch (e) {
|
||||
res.status(404).send(e.message);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
// POST items/
|
||||
|
||||
// productsRouter.post('/', async (req: Request, res: Response) => {
|
||||
// try {
|
||||
// const product: Product = req.body.product;
|
||||
//
|
||||
// await ProductService.create(product);
|
||||
//
|
||||
// res.sendStatus(201);
|
||||
// } catch (e) {
|
||||
// res.status(404).send(e.message);
|
||||
// }
|
||||
// });
|
||||
//
|
||||
// // PUT items/
|
||||
//
|
||||
// productsRouter.put('/', async (req: Request, res: Response) => {
|
||||
// try {
|
||||
// const product: Product = req.body.product;
|
||||
//
|
||||
// await ProductService.update(product);
|
||||
//
|
||||
// res.sendStatus(200);
|
||||
// } catch (e) {
|
||||
// res.status(500).send(e.message);
|
||||
// }
|
||||
// });
|
||||
//
|
||||
// // DELETE items/:id
|
||||
//
|
||||
// productsRouter.delete('/:id', async (req: Request, res: Response) => {
|
||||
// try {
|
||||
// const id: number = parseInt(req.params.id, 10);
|
||||
// await ProductService.remove(id);
|
||||
//
|
||||
// res.sendStatus(200);
|
||||
// } catch (e) {
|
||||
// res.status(500).send(e.message);
|
||||
// }
|
||||
// });
|
156
Backend/src/models/products/products.service.ts
Normal file
156
Backend/src/models/products/products.service.ts
Normal file
|
@ -0,0 +1,156 @@
|
|||
import * as dotenv from 'dotenv';
|
||||
|
||||
dotenv.config();
|
||||
|
||||
const mariadb = require('mariadb');
|
||||
const pool = mariadb.createPool({
|
||||
host: process.env.DB_HOST,
|
||||
user: process.env.DB_USER,
|
||||
password: process.env.DB_PASSWORD,
|
||||
database: process.env.DB_DATABASE,
|
||||
connectionLimit: 5
|
||||
});
|
||||
|
||||
/**
|
||||
* Data Model Interfaces
|
||||
*/
|
||||
|
||||
import {Product} from './product.interface';
|
||||
import {Products} from './products.interface';
|
||||
|
||||
|
||||
/**
|
||||
* Service Methods
|
||||
*/
|
||||
|
||||
export const findAll = async (): Promise<Products> => {
|
||||
let conn;
|
||||
let prodRows = [];
|
||||
try {
|
||||
conn = await pool.getConnection();
|
||||
const rows = await conn.query('SELECT product_id, name, asin, is_active, short_description, long_description, image_guid, date_added, last_modified, manufacturer_id, selling_rank, category_id FROM products');
|
||||
for (let row in rows) {
|
||||
if (row !== 'meta') {
|
||||
let prod: Product = {
|
||||
asin: '',
|
||||
category_id: 0,
|
||||
date_added: new Date(),
|
||||
image_guid: '',
|
||||
is_active: false,
|
||||
last_modified: new Date(),
|
||||
long_description: '',
|
||||
manufacturer_id: 0,
|
||||
name: '',
|
||||
product_id: 0,
|
||||
selling_rank: '',
|
||||
short_description: ''
|
||||
};
|
||||
const sqlProd = rows[row];
|
||||
|
||||
prod.product_id = sqlProd.product_id;
|
||||
prod.name = sqlProd.name;
|
||||
prod.asin = sqlProd.asin;
|
||||
prod.is_active = sqlProd.is_active;
|
||||
prod.short_description = sqlProd.short_description;
|
||||
prod.long_description = sqlProd.long_description;
|
||||
prod.image_guid = sqlProd.image_guid;
|
||||
prod.date_added = sqlProd.date_added;
|
||||
prod.last_modified = sqlProd.last_modified;
|
||||
prod.manufacturer_id = sqlProd.manufacturer_id;
|
||||
prod.selling_rank = sqlProd.selling_rank;
|
||||
prod.category_id = sqlProd.category_id;
|
||||
prodRows.push(prod);
|
||||
}
|
||||
}
|
||||
|
||||
} catch (err) {
|
||||
throw err;
|
||||
} finally {
|
||||
if (conn) {
|
||||
conn.end();
|
||||
}
|
||||
}
|
||||
|
||||
return prodRows;
|
||||
};
|
||||
|
||||
export const find = async (id: number): Promise<Product> => {
|
||||
let conn;
|
||||
let prod: any;
|
||||
try {
|
||||
conn = await pool.getConnection();
|
||||
const rows = await conn.query('SELECT product_id, name, asin, is_active, short_description, long_description, image_guid, date_added, last_modified, manufacturer_id, selling_rank, category_id FROM products WHERE product_id = ?', id);
|
||||
for (let row in rows) {
|
||||
if (row !== 'meta') {
|
||||
prod = rows[row];
|
||||
}
|
||||
}
|
||||
|
||||
} catch (err) {
|
||||
throw err;
|
||||
} finally {
|
||||
if (conn) {
|
||||
conn.end();
|
||||
}
|
||||
}
|
||||
|
||||
return prod;
|
||||
};
|
||||
|
||||
export const findBySearchTerm = async (term: string): Promise<Products> => {
|
||||
let conn;
|
||||
let prodRows = [];
|
||||
try {
|
||||
conn = await pool.getConnection();
|
||||
term = '%' + term + '%';
|
||||
const rows = await conn.query('SELECT product_id, name, asin, is_active, short_description, long_description, image_guid, date_added, last_modified, manufacturer_id, selling_rank, category_id FROM products WHERE name LIKE ?', term);
|
||||
for (let row in rows) {
|
||||
if (row !== 'meta') {
|
||||
prodRows.push(rows[row]);
|
||||
}
|
||||
}
|
||||
|
||||
} catch (err) {
|
||||
console.log(err);
|
||||
throw err;
|
||||
} finally {
|
||||
if (conn) {
|
||||
conn.end();
|
||||
}
|
||||
}
|
||||
|
||||
return prodRows;
|
||||
};
|
||||
|
||||
// export const create = async (newItem: Product): Promise<void> => {
|
||||
// let conn;
|
||||
// try {
|
||||
// conn = await pool.getConnection();
|
||||
// await conn.query("");
|
||||
//
|
||||
// } catch (err) {
|
||||
// throw err;
|
||||
// } finally {
|
||||
// if (conn) conn.end();
|
||||
// }
|
||||
// };
|
||||
//
|
||||
// export const update = async (updatedItem: Product): Promise<void> => {
|
||||
// if (models.products[updatedItem.product_id]) {
|
||||
// models.products[updatedItem.product_id] = updatedItem;
|
||||
// return;
|
||||
// }
|
||||
//
|
||||
// throw new Error("No record found to update");
|
||||
// };
|
||||
//
|
||||
// export const remove = async (id: number): Promise<void> => {
|
||||
// const record: Product = models.products[id];
|
||||
//
|
||||
// if (record) {
|
||||
// delete models.products[id];
|
||||
// return;
|
||||
// }
|
||||
//
|
||||
// throw new Error("No record found to delete");
|
||||
// };
|
10
Backend/src/models/vendors/vendor.interface.ts
vendored
Normal file
10
Backend/src/models/vendors/vendor.interface.ts
vendored
Normal file
|
@ -0,0 +1,10 @@
|
|||
export interface Vendor {
|
||||
vendor_id: number;
|
||||
name: string;
|
||||
streetname: string;
|
||||
zip_code: string;
|
||||
city: string;
|
||||
country_code: string;
|
||||
phone: string;
|
||||
website: string;
|
||||
}
|
5
Backend/src/models/vendors/vendors.interface.ts
vendored
Normal file
5
Backend/src/models/vendors/vendors.interface.ts
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
import {Vendor} from './vendor.interface';
|
||||
|
||||
export interface Vendors {
|
||||
[key: number]: Vendor;
|
||||
}
|
112
Backend/src/models/vendors/vendors.router.ts
vendored
Normal file
112
Backend/src/models/vendors/vendors.router.ts
vendored
Normal file
|
@ -0,0 +1,112 @@
|
|||
/**
|
||||
* Required External Modules and Interfaces
|
||||
*/
|
||||
|
||||
import express, {Request, Response} from 'express';
|
||||
import * as VendorService from './vendors.service';
|
||||
import {Vendor} from './vendor.interface';
|
||||
import {Vendors} from './vendors.interface';
|
||||
|
||||
|
||||
/**
|
||||
* Router Definition
|
||||
*/
|
||||
|
||||
export const vendorsRouter = express.Router();
|
||||
|
||||
|
||||
/**
|
||||
* Controller Definitions
|
||||
*/
|
||||
|
||||
// GET items/
|
||||
|
||||
vendorsRouter.get('/', async (req: Request, res: Response) => {
|
||||
try {
|
||||
const vendors: Vendors = await VendorService.findAll();
|
||||
|
||||
res.status(200).send(vendors);
|
||||
} catch (e) {
|
||||
res.status(404).send(e.message);
|
||||
}
|
||||
});
|
||||
|
||||
// GET items/:id
|
||||
|
||||
vendorsRouter.get('/:id', async (req: Request, res: Response) => {
|
||||
const id: number = parseInt(req.params.id, 10);
|
||||
|
||||
if (!id) {
|
||||
res.status(400).send('Missing parameters.');
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
const vendor: Vendor = await VendorService.find(id);
|
||||
|
||||
res.status(200).send(vendor);
|
||||
} catch (e) {
|
||||
res.status(404).send(e.message);
|
||||
}
|
||||
});
|
||||
|
||||
// GET items/:name
|
||||
|
||||
vendorsRouter.get('/search/:term', async (req: Request, res: Response) => {
|
||||
const term: string = req.params.term;
|
||||
|
||||
if (!term) {
|
||||
res.status(400).send('Missing parameters.');
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
const vendors: Vendors = await VendorService.findBySearchTerm(term);
|
||||
|
||||
res.status(200).send(vendors);
|
||||
} catch (e) {
|
||||
res.status(404).send(e.message);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
// POST items/
|
||||
|
||||
// vendorsRouter.post('/', async (req: Request, res: Response) => {
|
||||
// try {
|
||||
// const category: Category = req.body.category;
|
||||
//
|
||||
// await CategoryService.create(category);
|
||||
//
|
||||
// res.sendStatus(201);
|
||||
// } catch (e) {
|
||||
// res.status(404).send(e.message);
|
||||
// }
|
||||
// });
|
||||
//
|
||||
// // PUT items/
|
||||
//
|
||||
// vendorsRouter.put('/', async (req: Request, res: Response) => {
|
||||
// try {
|
||||
// const category: Category = req.body.category;
|
||||
//
|
||||
// await CategoryService.update(category);
|
||||
//
|
||||
// res.sendStatus(200);
|
||||
// } catch (e) {
|
||||
// res.status(500).send(e.message);
|
||||
// }
|
||||
// });
|
||||
//
|
||||
// // DELETE items/:id
|
||||
//
|
||||
// vendorsRouter.delete('/:id', async (req: Request, res: Response) => {
|
||||
// try {
|
||||
// const id: number = parseInt(req.params.id, 10);
|
||||
// await CategoryService.remove(id);
|
||||
//
|
||||
// res.sendStatus(200);
|
||||
// } catch (e) {
|
||||
// res.status(500).send(e.message);
|
||||
// }
|
||||
// });
|
147
Backend/src/models/vendors/vendors.service.ts
vendored
Normal file
147
Backend/src/models/vendors/vendors.service.ts
vendored
Normal file
|
@ -0,0 +1,147 @@
|
|||
import * as dotenv from 'dotenv';
|
||||
|
||||
dotenv.config();
|
||||
|
||||
const mariadb = require('mariadb');
|
||||
const pool = mariadb.createPool({
|
||||
host: process.env.DB_HOST,
|
||||
user: process.env.DB_USER,
|
||||
password: process.env.DB_PASSWORD,
|
||||
database: process.env.DB_DATABASE,
|
||||
connectionLimit: 5
|
||||
});
|
||||
|
||||
/**
|
||||
* Data Model Interfaces
|
||||
*/
|
||||
|
||||
import {Vendor} from './vendor.interface';
|
||||
import {Vendors} from './vendors.interface';
|
||||
|
||||
|
||||
/**
|
||||
* Service Methods
|
||||
*/
|
||||
|
||||
export const findAll = async (): Promise<Vendors> => {
|
||||
let conn;
|
||||
let vendorRows = [];
|
||||
try {
|
||||
conn = await pool.getConnection();
|
||||
const rows = await conn.query('SELECT vendor_id, name, streetname, zip_code, city, country_code, phone, website FROM vendors');
|
||||
for (let row in rows) {
|
||||
if (row !== 'meta') {
|
||||
let vendor: Vendor = {
|
||||
city: '',
|
||||
country_code: '',
|
||||
name: '',
|
||||
phone: '',
|
||||
streetname: '',
|
||||
vendor_id: 0,
|
||||
website: '',
|
||||
zip_code: ''
|
||||
};
|
||||
const sqlVendor = rows[row];
|
||||
|
||||
vendor.vendor_id = sqlVendor.vendor_id;
|
||||
vendor.name = sqlVendor.name;
|
||||
vendor.streetname = sqlVendor.streetname;
|
||||
vendor.zip_code = sqlVendor.zip_code;
|
||||
vendor.city = sqlVendor.city;
|
||||
vendor.country_code = sqlVendor.country_code;
|
||||
vendor.phone = sqlVendor.phone;
|
||||
vendor.website = sqlVendor.website;
|
||||
vendorRows.push(vendor);
|
||||
}
|
||||
}
|
||||
|
||||
} catch (err) {
|
||||
throw err;
|
||||
} finally {
|
||||
if (conn) {
|
||||
conn.end();
|
||||
}
|
||||
}
|
||||
|
||||
return vendorRows;
|
||||
};
|
||||
|
||||
export const find = async (id: number): Promise<Vendor> => {
|
||||
let conn;
|
||||
let vendor: any;
|
||||
try {
|
||||
conn = await pool.getConnection();
|
||||
const rows = await conn.query('SELECT vendor_id, name, streetname, zip_code, city, country_code, phone, website FROM vendors WHERE vendor_id = ?', id);
|
||||
for (let row in rows) {
|
||||
if (row !== 'meta') {
|
||||
vendor = rows[row];
|
||||
}
|
||||
}
|
||||
|
||||
} catch (err) {
|
||||
throw err;
|
||||
} finally {
|
||||
if (conn) {
|
||||
conn.end();
|
||||
}
|
||||
}
|
||||
|
||||
return vendor;
|
||||
};
|
||||
|
||||
export const findBySearchTerm = async (term: string): Promise<Vendors> => {
|
||||
let conn;
|
||||
let vendorRows = [];
|
||||
try {
|
||||
conn = await pool.getConnection();
|
||||
term = '%' + term + '%';
|
||||
const rows = await conn.query('SELECT vendor_id, name, streetname, zip_code, city, country_code, phone, website FROM vendors WHERE name LIKE ?', term);
|
||||
for (let row in rows) {
|
||||
if (row !== 'meta') {
|
||||
vendorRows.push(rows[row]);
|
||||
}
|
||||
}
|
||||
|
||||
} catch (err) {
|
||||
throw err;
|
||||
} finally {
|
||||
if (conn) {
|
||||
conn.end();
|
||||
}
|
||||
}
|
||||
|
||||
return vendorRows;
|
||||
};
|
||||
|
||||
// export const create = async (newItem: Product): Promise<void> => {
|
||||
// let conn;
|
||||
// try {
|
||||
// conn = await pool.getConnection();
|
||||
// await conn.query("");
|
||||
//
|
||||
// } catch (err) {
|
||||
// throw err;
|
||||
// } finally {
|
||||
// if (conn) conn.end();
|
||||
// }
|
||||
// };
|
||||
//
|
||||
// export const update = async (updatedItem: Product): Promise<void> => {
|
||||
// if (models.products[updatedItem.product_id]) {
|
||||
// models.products[updatedItem.product_id] = updatedItem;
|
||||
// return;
|
||||
// }
|
||||
//
|
||||
// throw new Error("No record found to update");
|
||||
// };
|
||||
//
|
||||
// export const remove = async (id: number): Promise<void> => {
|
||||
// const record: Product = models.products[id];
|
||||
//
|
||||
// if (record) {
|
||||
// delete models.products[id];
|
||||
// return;
|
||||
// }
|
||||
//
|
||||
// throw new Error("No record found to delete");
|
||||
// };
|
70
Backend/tsconfig.json
Normal file
70
Backend/tsconfig.json
Normal file
|
@ -0,0 +1,70 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
/* Visit https://aka.ms/tsconfig.json to read more about this file */
|
||||
|
||||
/* Basic Options */
|
||||
// "incremental": true, /* Enable incremental compilation */
|
||||
"target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */
|
||||
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */
|
||||
// "lib": [], /* Specify library files to be included in the compilation. */
|
||||
// "allowJs": true, /* Allow javascript files to be compiled. */
|
||||
// "checkJs": true, /* Report errors in .js files. */
|
||||
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
|
||||
// "declaration": true, /* Generates corresponding '.d.ts' file. */
|
||||
// "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
|
||||
// "sourceMap": true, /* Generates corresponding '.map' file. */
|
||||
// "outFile": "./", /* Concatenate and emit output to single file. */
|
||||
// "outDir": "./", /* Redirect output structure to the directory. */
|
||||
// "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
|
||||
// "composite": true, /* Enable project compilation */
|
||||
// "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */
|
||||
// "removeComments": true, /* Do not emit comments to output. */
|
||||
// "noEmit": true, /* Do not emit outputs. */
|
||||
// "importHelpers": true, /* Import emit helpers from 'tslib'. */
|
||||
// "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
|
||||
// "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */
|
||||
|
||||
/* Strict Type-Checking Options */
|
||||
"strict": true, /* Enable all strict type-checking options. */
|
||||
// "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
|
||||
// "strictNullChecks": true, /* Enable strict null checks. */
|
||||
// "strictFunctionTypes": true, /* Enable strict checking of function types. */
|
||||
// "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */
|
||||
// "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */
|
||||
// "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */
|
||||
// "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
|
||||
|
||||
/* Additional Checks */
|
||||
// "noUnusedLocals": true, /* Report errors on unused locals. */
|
||||
// "noUnusedParameters": true, /* Report errors on unused parameters. */
|
||||
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
|
||||
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
|
||||
// "noUncheckedIndexedAccess": true, /* Include 'undefined' in index signature results */
|
||||
|
||||
/* Module Resolution Options */
|
||||
// "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
|
||||
// "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
|
||||
// "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
|
||||
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
|
||||
// "typeRoots": [], /* List of folders to include type definitions from. */
|
||||
// "types": [], /* Type declaration files to be included in compilation. */
|
||||
// "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
|
||||
"esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
|
||||
// "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
|
||||
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
|
||||
|
||||
/* Source Map Options */
|
||||
// "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
|
||||
// "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
|
||||
// "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */
|
||||
// "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */
|
||||
|
||||
/* Experimental Options */
|
||||
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
|
||||
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
|
||||
|
||||
/* Advanced Options */
|
||||
"skipLibCheck": true, /* Skip type checking of declaration files. */
|
||||
"forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */
|
||||
}
|
||||
}
|
|
@ -1,6 +0,0 @@
|
|||
extends layout
|
||||
|
||||
block content
|
||||
h1= message
|
||||
h2= error.status
|
||||
pre #{error.stack}
|
|
@ -1,5 +0,0 @@
|
|||
extends layout
|
||||
|
||||
block content
|
||||
h1= title
|
||||
p Welcome to #{title}, young Padawan!
|
|
@ -1,7 +0,0 @@
|
|||
doctype html
|
||||
html
|
||||
head
|
||||
title= title
|
||||
link(rel='stylesheet', href='/stylesheets/style.css')
|
||||
body
|
||||
block content
|
32
Backend/webpack.config.ts
Normal file
32
Backend/webpack.config.ts
Normal file
|
@ -0,0 +1,32 @@
|
|||
const webpack = require("webpack");
|
||||
const path = require("path");
|
||||
const nodeExternals = require("webpack-node-externals");
|
||||
|
||||
module.exports = {
|
||||
entry: ["webpack/hot/poll?100", "./src/index.ts"],
|
||||
watch: false,
|
||||
target: "node",
|
||||
externals: [
|
||||
nodeExternals({
|
||||
whitelist: ["webpack/hot/poll?100"]
|
||||
})
|
||||
],
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /.tsx?$/,
|
||||
use: "ts-loader",
|
||||
exclude: /node_modules/
|
||||
}
|
||||
]
|
||||
},
|
||||
mode: "development",
|
||||
resolve: {
|
||||
extensions: [".tsx", ".ts", ".js"]
|
||||
},
|
||||
plugins: [new webpack.HotModuleReplacementPlugin()],
|
||||
output: {
|
||||
path: path.join(__dirname, "dist"),
|
||||
filename: "index.js"
|
||||
}
|
||||
};
|
|
@ -3,8 +3,8 @@
|
|||
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
||||
<exclude-output />
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<sourceFolder url="file://$MODULE_DIR$/e2e" isTestSource="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/res" type="java-resource" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/e2e" isTestSource="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/dist" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/tmp" />
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# Betterzon
|
||||
Website: https://betterzon.xyz<br>
|
||||
Website: https://www.betterzon.xyz<br>
|
||||
Blog: https://blog.betterzon.xyz<br>
|
||||
Wiki: https://github.com/Mueller-Patrick/Betterzon/wiki
|
||||
|
||||
|
|
430
doku/ERM.drawio
Normal file
430
doku/ERM.drawio
Normal file
|
@ -0,0 +1,430 @@
|
|||
<mxfile host="app.diagrams.net" modified="2020-11-21T16:54:43.216Z" agent="5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36" etag="bjuXbTrZF32UeZzylRYo" version="13.10.0" type="github">
|
||||
<diagram id="FPyRA7wo-ujURyNpJayc" name="Page-1">
|
||||
<mxGraphModel dx="1941" dy="1120" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
|
||||
<root>
|
||||
<mxCell id="0" />
|
||||
<mxCell id="1" parent="0" />
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-158" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.25;exitY=0;exitDx=0;exitDy=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;fontSize=19;endArrow=none;endFill=0;" edge="1" parent="1" source="eapyg9Jbp8PL5M-LjnbU-1" target="eapyg9Jbp8PL5M-LjnbU-157">
|
||||
<mxGeometry relative="1" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-1" value="products" style="shape=table;startSize=30;container=1;collapsible=1;childLayout=tableLayout;fixedRows=1;rowLines=0;fontStyle=1;align=center;resizeLast=1;" vertex="1" parent="1">
|
||||
<mxGeometry x="120" y="160" width="180" height="400" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-2" value="" style="shape=partialRectangle;collapsible=0;dropTarget=0;pointerEvents=0;fillColor=none;top=0;left=0;bottom=1;right=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-1">
|
||||
<mxGeometry y="30" width="180" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-3" value="PK" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;fontStyle=1;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-2">
|
||||
<mxGeometry width="30" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-4" value="product_id" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;align=left;spacingLeft=6;fontStyle=5;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-2">
|
||||
<mxGeometry x="30" width="150" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-5" value="" style="shape=partialRectangle;collapsible=0;dropTarget=0;pointerEvents=0;fillColor=none;top=0;left=0;bottom=0;right=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-1">
|
||||
<mxGeometry y="60" width="180" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-6" value="" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;editable=1;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-5">
|
||||
<mxGeometry width="30" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-7" value="asin" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;align=left;spacingLeft=6;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-5">
|
||||
<mxGeometry x="30" width="150" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-8" value="" style="shape=partialRectangle;collapsible=0;dropTarget=0;pointerEvents=0;fillColor=none;top=0;left=0;bottom=0;right=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-1">
|
||||
<mxGeometry y="90" width="180" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-9" value="" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;editable=1;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-8">
|
||||
<mxGeometry width="30" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-10" value="is_active" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;align=left;spacingLeft=6;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-8">
|
||||
<mxGeometry x="30" width="150" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-11" value="" style="shape=partialRectangle;collapsible=0;dropTarget=0;pointerEvents=0;fillColor=none;top=0;left=0;bottom=0;right=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-1">
|
||||
<mxGeometry y="120" width="180" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-12" value="" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;editable=1;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-11">
|
||||
<mxGeometry width="30" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-13" value="name" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;align=left;spacingLeft=6;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-11">
|
||||
<mxGeometry x="30" width="150" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-116" style="shape=partialRectangle;collapsible=0;dropTarget=0;pointerEvents=0;fillColor=none;top=0;left=0;bottom=0;right=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-1">
|
||||
<mxGeometry y="150" width="180" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-117" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;editable=1;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-116">
|
||||
<mxGeometry width="30" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-118" value="short_description" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;align=left;spacingLeft=6;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-116">
|
||||
<mxGeometry x="30" width="150" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-113" style="shape=partialRectangle;collapsible=0;dropTarget=0;pointerEvents=0;fillColor=none;top=0;left=0;bottom=0;right=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-1">
|
||||
<mxGeometry y="180" width="180" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-114" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;editable=1;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-113">
|
||||
<mxGeometry width="30" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-115" value="long_desctiption" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;align=left;spacingLeft=6;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-113">
|
||||
<mxGeometry x="30" width="150" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-110" style="shape=partialRectangle;collapsible=0;dropTarget=0;pointerEvents=0;fillColor=none;top=0;left=0;bottom=0;right=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-1">
|
||||
<mxGeometry y="210" width="180" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-111" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;editable=1;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-110">
|
||||
<mxGeometry width="30" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-112" value="image_guid" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;align=left;spacingLeft=6;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-110">
|
||||
<mxGeometry x="30" width="150" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-107" style="shape=partialRectangle;collapsible=0;dropTarget=0;pointerEvents=0;fillColor=none;top=0;left=0;bottom=0;right=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-1">
|
||||
<mxGeometry y="240" width="180" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-108" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;editable=1;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-107">
|
||||
<mxGeometry width="30" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-109" value="date_added" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;align=left;spacingLeft=6;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-107">
|
||||
<mxGeometry x="30" width="150" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-104" style="shape=partialRectangle;collapsible=0;dropTarget=0;pointerEvents=0;fillColor=none;top=0;left=0;bottom=0;right=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-1">
|
||||
<mxGeometry y="270" width="180" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-105" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;editable=1;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-104">
|
||||
<mxGeometry width="30" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-106" value="last_modified" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;align=left;spacingLeft=6;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-104">
|
||||
<mxGeometry x="30" width="150" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-128" style="shape=partialRectangle;collapsible=0;dropTarget=0;pointerEvents=0;fillColor=none;top=0;left=0;bottom=0;right=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-1">
|
||||
<mxGeometry y="300" width="180" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-129" value="FK" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;editable=1;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-128">
|
||||
<mxGeometry width="30" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-130" value="manufacturer_id" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;align=left;spacingLeft=6;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-128">
|
||||
<mxGeometry x="30" width="150" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-125" style="shape=partialRectangle;collapsible=0;dropTarget=0;pointerEvents=0;fillColor=none;top=0;left=0;bottom=0;right=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-1">
|
||||
<mxGeometry y="330" width="180" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-126" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;editable=1;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-125">
|
||||
<mxGeometry width="30" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-127" value="selling_rank" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;align=left;spacingLeft=6;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-125">
|
||||
<mxGeometry x="30" width="150" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-122" style="shape=partialRectangle;collapsible=0;dropTarget=0;pointerEvents=0;fillColor=none;top=0;left=0;bottom=0;right=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-1">
|
||||
<mxGeometry y="360" width="180" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-123" value="FK" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;editable=1;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-122">
|
||||
<mxGeometry width="30" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-124" value="category_id" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;align=left;spacingLeft=6;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-122">
|
||||
<mxGeometry x="30" width="150" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-14" value="categories" style="shape=table;startSize=30;container=1;collapsible=1;childLayout=tableLayout;fixedRows=1;rowLines=0;fontStyle=1;align=center;resizeLast=1;" vertex="1" parent="1">
|
||||
<mxGeometry x="-280" y="160" width="180" height="100" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-15" value="" style="shape=partialRectangle;collapsible=0;dropTarget=0;pointerEvents=0;fillColor=none;top=0;left=0;bottom=1;right=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-14">
|
||||
<mxGeometry y="30" width="180" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-16" value="PK" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;fontStyle=1;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-15">
|
||||
<mxGeometry width="30" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-17" value="category_id" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;align=left;spacingLeft=6;fontStyle=5;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-15">
|
||||
<mxGeometry x="30" width="150" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-18" value="" style="shape=partialRectangle;collapsible=0;dropTarget=0;pointerEvents=0;fillColor=none;top=0;left=0;bottom=0;right=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-14">
|
||||
<mxGeometry y="60" width="180" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-19" value="" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;editable=1;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-18">
|
||||
<mxGeometry width="30" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-20" value="name" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;align=left;spacingLeft=6;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-18">
|
||||
<mxGeometry x="30" width="150" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-27" value="contact_persons" style="shape=table;startSize=30;container=1;collapsible=1;childLayout=tableLayout;fixedRows=1;rowLines=0;fontStyle=1;align=center;resizeLast=1;" vertex="1" parent="1">
|
||||
<mxGeometry x="1020" y="835" width="180" height="250" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-28" value="" style="shape=partialRectangle;collapsible=0;dropTarget=0;pointerEvents=0;fillColor=none;top=0;left=0;bottom=1;right=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-27">
|
||||
<mxGeometry y="30" width="180" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-29" value="PK" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;fontStyle=1;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-28">
|
||||
<mxGeometry width="30" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-30" value="contact_person_id" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;align=left;spacingLeft=6;fontStyle=5;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-28">
|
||||
<mxGeometry x="30" width="150" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-31" value="" style="shape=partialRectangle;collapsible=0;dropTarget=0;pointerEvents=0;fillColor=none;top=0;left=0;bottom=0;right=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-27">
|
||||
<mxGeometry y="60" width="180" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-32" value="" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;editable=1;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-31">
|
||||
<mxGeometry width="30" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-33" value="first_name" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;align=left;spacingLeft=6;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-31">
|
||||
<mxGeometry x="30" width="150" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-34" value="" style="shape=partialRectangle;collapsible=0;dropTarget=0;pointerEvents=0;fillColor=none;top=0;left=0;bottom=0;right=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-27">
|
||||
<mxGeometry y="90" width="180" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-35" value="" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;editable=1;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-34">
|
||||
<mxGeometry width="30" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-36" value="last_name" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;align=left;spacingLeft=6;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-34">
|
||||
<mxGeometry x="30" width="150" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-37" value="" style="shape=partialRectangle;collapsible=0;dropTarget=0;pointerEvents=0;fillColor=none;top=0;left=0;bottom=0;right=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-27">
|
||||
<mxGeometry y="120" width="180" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-38" value="" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;editable=1;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-37">
|
||||
<mxGeometry width="30" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-39" value="gender" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;align=left;spacingLeft=6;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-37">
|
||||
<mxGeometry x="30" width="150" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-101" style="shape=partialRectangle;collapsible=0;dropTarget=0;pointerEvents=0;fillColor=none;top=0;left=0;bottom=0;right=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-27">
|
||||
<mxGeometry y="150" width="180" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-102" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;editable=1;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-101">
|
||||
<mxGeometry width="30" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-103" value="e-mail" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;align=left;spacingLeft=6;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-101">
|
||||
<mxGeometry x="30" width="150" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-98" style="shape=partialRectangle;collapsible=0;dropTarget=0;pointerEvents=0;fillColor=none;top=0;left=0;bottom=0;right=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-27">
|
||||
<mxGeometry y="180" width="180" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-99" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;editable=1;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-98">
|
||||
<mxGeometry width="30" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-100" value="phone" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;align=left;spacingLeft=6;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-98">
|
||||
<mxGeometry x="30" width="150" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-95" style="shape=partialRectangle;collapsible=0;dropTarget=0;pointerEvents=0;fillColor=none;top=0;left=0;bottom=0;right=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-27">
|
||||
<mxGeometry y="210" width="180" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-96" value="FK" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;editable=1;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-95">
|
||||
<mxGeometry width="30" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-97" value="vendor_id" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;align=left;spacingLeft=6;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-95">
|
||||
<mxGeometry x="30" width="150" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-40" value="manufacturers" style="shape=table;startSize=30;container=1;collapsible=1;childLayout=tableLayout;fixedRows=1;rowLines=0;fontStyle=1;align=center;resizeLast=1;" vertex="1" parent="1">
|
||||
<mxGeometry x="110" y="910" width="180" height="100" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-41" value="" style="shape=partialRectangle;collapsible=0;dropTarget=0;pointerEvents=0;fillColor=none;top=0;left=0;bottom=1;right=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-40">
|
||||
<mxGeometry y="30" width="180" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-42" value="PK" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;fontStyle=1;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-41">
|
||||
<mxGeometry width="30" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-43" value="manufacturer_id" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;align=left;spacingLeft=6;fontStyle=5;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-41">
|
||||
<mxGeometry x="30" width="150" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-44" value="" style="shape=partialRectangle;collapsible=0;dropTarget=0;pointerEvents=0;fillColor=none;top=0;left=0;bottom=0;right=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-40">
|
||||
<mxGeometry y="60" width="180" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-45" value="" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;editable=1;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-44">
|
||||
<mxGeometry width="30" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-46" value="name" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;align=left;spacingLeft=6;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-44">
|
||||
<mxGeometry x="30" width="150" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-53" value="prices" style="shape=table;startSize=30;container=1;collapsible=1;childLayout=tableLayout;fixedRows=1;rowLines=0;fontStyle=1;align=center;resizeLast=1;" vertex="1" parent="1">
|
||||
<mxGeometry x="730" y="585" width="180" height="190" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-54" value="" style="shape=partialRectangle;collapsible=0;dropTarget=0;pointerEvents=0;fillColor=none;top=0;left=0;bottom=1;right=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-53">
|
||||
<mxGeometry y="30" width="180" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-55" value="PK" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;fontStyle=1;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-54">
|
||||
<mxGeometry width="30" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-56" value="price_id" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;align=left;spacingLeft=6;fontStyle=5;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-54">
|
||||
<mxGeometry x="30" width="150" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-57" value="" style="shape=partialRectangle;collapsible=0;dropTarget=0;pointerEvents=0;fillColor=none;top=0;left=0;bottom=0;right=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-53">
|
||||
<mxGeometry y="60" width="180" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-58" value="FK" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;editable=1;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-57">
|
||||
<mxGeometry width="30" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-59" value="product_id" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;align=left;spacingLeft=6;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-57">
|
||||
<mxGeometry x="30" width="150" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-60" value="" style="shape=partialRectangle;collapsible=0;dropTarget=0;pointerEvents=0;fillColor=none;top=0;left=0;bottom=0;right=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-53">
|
||||
<mxGeometry y="90" width="180" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-61" value="FK" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;editable=1;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-60">
|
||||
<mxGeometry width="30" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-62" value="vendor_id" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;align=left;spacingLeft=6;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-60">
|
||||
<mxGeometry x="30" width="150" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-63" value="" style="shape=partialRectangle;collapsible=0;dropTarget=0;pointerEvents=0;fillColor=none;top=0;left=0;bottom=0;right=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-53">
|
||||
<mxGeometry y="120" width="180" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-64" value="" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;editable=1;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-63">
|
||||
<mxGeometry width="30" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-65" value="price_in_cents" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;align=left;spacingLeft=6;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-63">
|
||||
<mxGeometry x="30" width="150" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-143" style="shape=partialRectangle;collapsible=0;dropTarget=0;pointerEvents=0;fillColor=none;top=0;left=0;bottom=0;right=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-53">
|
||||
<mxGeometry y="150" width="180" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-144" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;editable=1;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-143">
|
||||
<mxGeometry width="30" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-145" value="timestamp" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;align=left;spacingLeft=6;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-143">
|
||||
<mxGeometry x="30" width="150" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-66" value="product_links" style="shape=table;startSize=30;container=1;collapsible=1;childLayout=tableLayout;fixedRows=1;rowLines=0;fontStyle=1;align=center;resizeLast=1;" vertex="1" parent="1">
|
||||
<mxGeometry x="450" y="940" width="180" height="160" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-67" value="" style="shape=partialRectangle;collapsible=0;dropTarget=0;pointerEvents=0;fillColor=none;top=0;left=0;bottom=1;right=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-66">
|
||||
<mxGeometry y="30" width="180" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-68" value="PK" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;fontStyle=1;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-67">
|
||||
<mxGeometry width="30" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-69" value="product_link_id" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;align=left;spacingLeft=6;fontStyle=5;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-67">
|
||||
<mxGeometry x="30" width="150" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-70" value="" style="shape=partialRectangle;collapsible=0;dropTarget=0;pointerEvents=0;fillColor=none;top=0;left=0;bottom=0;right=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-66">
|
||||
<mxGeometry y="60" width="180" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-71" value="FK" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;editable=1;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-70">
|
||||
<mxGeometry width="30" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-72" value="product_id" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;align=left;spacingLeft=6;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-70">
|
||||
<mxGeometry x="30" width="150" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-73" value="" style="shape=partialRectangle;collapsible=0;dropTarget=0;pointerEvents=0;fillColor=none;top=0;left=0;bottom=0;right=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-66">
|
||||
<mxGeometry y="90" width="180" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-74" value="FK" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;editable=1;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-73">
|
||||
<mxGeometry width="30" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-75" value="vendor_id" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;align=left;spacingLeft=6;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-73">
|
||||
<mxGeometry x="30" width="150" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-76" value="" style="shape=partialRectangle;collapsible=0;dropTarget=0;pointerEvents=0;fillColor=none;top=0;left=0;bottom=0;right=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-66">
|
||||
<mxGeometry y="120" width="180" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-77" value="" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;editable=1;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-76">
|
||||
<mxGeometry width="30" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-78" value="url" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;align=left;spacingLeft=6;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-76">
|
||||
<mxGeometry x="30" width="150" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-79" value="vendors" style="shape=table;startSize=30;container=1;collapsible=1;childLayout=tableLayout;fixedRows=1;rowLines=0;fontStyle=1;align=center;resizeLast=1;" vertex="1" parent="1">
|
||||
<mxGeometry x="770" y="160" width="180" height="280" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-80" value="" style="shape=partialRectangle;collapsible=0;dropTarget=0;pointerEvents=0;fillColor=none;top=0;left=0;bottom=1;right=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-79">
|
||||
<mxGeometry y="30" width="180" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-81" value="PK" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;fontStyle=1;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-80">
|
||||
<mxGeometry width="30" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-82" value="vendor_id" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;align=left;spacingLeft=6;fontStyle=5;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-80">
|
||||
<mxGeometry x="30" width="150" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-83" value="" style="shape=partialRectangle;collapsible=0;dropTarget=0;pointerEvents=0;fillColor=none;top=0;left=0;bottom=0;right=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-79">
|
||||
<mxGeometry y="60" width="180" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-84" value="" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;editable=1;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-83">
|
||||
<mxGeometry width="30" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-85" value="name" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;align=left;spacingLeft=6;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-83">
|
||||
<mxGeometry x="30" width="150" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-86" value="" style="shape=partialRectangle;collapsible=0;dropTarget=0;pointerEvents=0;fillColor=none;top=0;left=0;bottom=0;right=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-79">
|
||||
<mxGeometry y="90" width="180" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-87" value="" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;editable=1;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-86">
|
||||
<mxGeometry width="30" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-88" value="streetname" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;align=left;spacingLeft=6;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-86">
|
||||
<mxGeometry x="30" width="150" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-89" value="" style="shape=partialRectangle;collapsible=0;dropTarget=0;pointerEvents=0;fillColor=none;top=0;left=0;bottom=0;right=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-79">
|
||||
<mxGeometry y="120" width="180" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-90" value="" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;editable=1;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-89">
|
||||
<mxGeometry width="30" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-91" value="zip_code" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;align=left;spacingLeft=6;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-89">
|
||||
<mxGeometry x="30" width="150" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-140" style="shape=partialRectangle;collapsible=0;dropTarget=0;pointerEvents=0;fillColor=none;top=0;left=0;bottom=0;right=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-79">
|
||||
<mxGeometry y="150" width="180" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-141" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;editable=1;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-140">
|
||||
<mxGeometry width="30" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-142" value="city" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;align=left;spacingLeft=6;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-140">
|
||||
<mxGeometry x="30" width="150" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-137" style="shape=partialRectangle;collapsible=0;dropTarget=0;pointerEvents=0;fillColor=none;top=0;left=0;bottom=0;right=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-79">
|
||||
<mxGeometry y="180" width="180" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-138" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;editable=1;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-137">
|
||||
<mxGeometry width="30" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-139" value="country_code" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;align=left;spacingLeft=6;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-137">
|
||||
<mxGeometry x="30" width="150" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-134" style="shape=partialRectangle;collapsible=0;dropTarget=0;pointerEvents=0;fillColor=none;top=0;left=0;bottom=0;right=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-79">
|
||||
<mxGeometry y="210" width="180" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-135" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;editable=1;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-134">
|
||||
<mxGeometry width="30" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-136" value="phone" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;align=left;spacingLeft=6;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-134">
|
||||
<mxGeometry x="30" width="150" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-131" style="shape=partialRectangle;collapsible=0;dropTarget=0;pointerEvents=0;fillColor=none;top=0;left=0;bottom=0;right=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-79">
|
||||
<mxGeometry y="240" width="180" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-132" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;editable=1;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-131">
|
||||
<mxGeometry width="30" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-133" value="website" style="shape=partialRectangle;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;align=left;spacingLeft=6;overflow=hidden;" vertex="1" parent="eapyg9Jbp8PL5M-LjnbU-131">
|
||||
<mxGeometry x="30" width="150" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-153" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;endArrow=none;endFill=0;" edge="1" parent="1" source="eapyg9Jbp8PL5M-LjnbU-146" target="eapyg9Jbp8PL5M-LjnbU-79">
|
||||
<mxGeometry relative="1" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-146" value="<font style="font-size: 15px">has price at <br>vendor</font>" style="shape=rhombus;perimeter=rhombusPerimeter;whiteSpace=wrap;html=1;align=center;" vertex="1" parent="1">
|
||||
<mxGeometry x="485" y="90" width="150" height="80" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-147" value="price_id" style="ellipse;whiteSpace=wrap;html=1;align=center;fontStyle=4;" vertex="1" parent="1">
|
||||
<mxGeometry x="510" y="170" width="100" height="40" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-148" value="<span style="border-bottom: 1px dotted">product_id</span>" style="ellipse;whiteSpace=wrap;html=1;align=center;" vertex="1" parent="1">
|
||||
<mxGeometry x="510" y="210" width="100" height="40" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-149" value="<span style="border-bottom: 1px dotted">vendor_id</span>" style="ellipse;whiteSpace=wrap;html=1;align=center;" vertex="1" parent="1">
|
||||
<mxGeometry x="510" y="250" width="100" height="40" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-150" value="price_in_cents" style="ellipse;whiteSpace=wrap;html=1;align=center;" vertex="1" parent="1">
|
||||
<mxGeometry x="510" y="290" width="100" height="40" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-151" value="timestamp" style="ellipse;whiteSpace=wrap;html=1;align=center;" vertex="1" parent="1">
|
||||
<mxGeometry x="510" y="330" width="100" height="40" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-152" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0;entryY=0.5;entryDx=0;entryDy=0;exitX=0.5;exitY=0;exitDx=0;exitDy=0;endArrow=none;endFill=0;" edge="1" parent="1" source="eapyg9Jbp8PL5M-LjnbU-1" target="eapyg9Jbp8PL5M-LjnbU-146">
|
||||
<mxGeometry relative="1" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-154" value="n" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;fontSize=19;fontStyle=1" vertex="1" parent="1">
|
||||
<mxGeometry x="220" y="105" width="30" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-155" value="m" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;fontSize=19;fontStyle=1" vertex="1" parent="1">
|
||||
<mxGeometry x="820" y="105" width="30" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-159" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.5;entryY=0;entryDx=0;entryDy=0;fontSize=19;endArrow=none;endFill=0;" edge="1" parent="1" source="eapyg9Jbp8PL5M-LjnbU-157" target="eapyg9Jbp8PL5M-LjnbU-14">
|
||||
<mxGeometry relative="1" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eapyg9Jbp8PL5M-LjnbU-157" value="<font style="font-size: 15px">belongs to <br>category</font>" style="shape=rhombus;perimeter=rhombusPerimeter;whiteSpace=wrap;html=1;align=center;fontSize=19;" vertex="1" parent="1">
|
||||
<mxGeometry x="-90" y="90" width="150" height="80" as="geometry" />
|
||||
</mxCell>
|
||||
</root>
|
||||
</mxGraphModel>
|
||||
</diagram>
|
||||
</mxfile>
|
139
doku/Frontend_Components_Diagram.drawio
Normal file
139
doku/Frontend_Components_Diagram.drawio
Normal file
|
@ -0,0 +1,139 @@
|
|||
<mxfile host="app.diagrams.net" modified="2020-11-21T14:29:34.626Z" agent="5.0 (Windows)" etag="ss7xjs7FesZQh2QN3Gut" version="13.8.6" type="github">
|
||||
<diagram id="FyC4D4z9-ciyvm6mCPSM" name="Page-1">
|
||||
<mxGraphModel dx="982" dy="554" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
|
||||
<root>
|
||||
<mxCell id="0" />
|
||||
<mxCell id="1" parent="0" />
|
||||
<mxCell id="4B3KDj_cxHq1nRbI7J67-1" value="Landing / Home - Page" style="swimlane;fontStyle=0;childLayout=stackLayout;horizontal=1;startSize=26;fillColor=none;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;" vertex="1" parent="1">
|
||||
<mxGeometry x="130" y="40" width="150" height="40" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="4B3KDj_cxHq1nRbI7J67-5" value="Search / PLP" style="swimlane;fontStyle=0;childLayout=stackLayout;horizontal=1;startSize=26;fillColor=none;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;" vertex="1" parent="1">
|
||||
<mxGeometry x="360" y="40" width="160" height="104" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="4B3KDj_cxHq1nRbI7J67-6" value="- searchTerm" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;" vertex="1" parent="4B3KDj_cxHq1nRbI7J67-5">
|
||||
<mxGeometry y="26" width="160" height="26" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="4B3KDj_cxHq1nRbI7J67-7" value="- numberOfProducts" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;" vertex="1" parent="4B3KDj_cxHq1nRbI7J67-5">
|
||||
<mxGeometry y="52" width="160" height="26" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="4B3KDj_cxHq1nRbI7J67-8" value="- sortBy" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;" vertex="1" parent="4B3KDj_cxHq1nRbI7J67-5">
|
||||
<mxGeometry y="78" width="160" height="26" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="4B3KDj_cxHq1nRbI7J67-9" value="PDP" style="swimlane;fontStyle=0;childLayout=stackLayout;horizontal=1;startSize=26;fillColor=none;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;" vertex="1" parent="1">
|
||||
<mxGeometry x="600" y="40" width="160" height="52" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="4B3KDj_cxHq1nRbI7J67-10" value="- product_id" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;" vertex="1" parent="4B3KDj_cxHq1nRbI7J67-9">
|
||||
<mxGeometry y="26" width="160" height="26" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="4B3KDj_cxHq1nRbI7J67-13" value="" style="endArrow=none;dashed=1;html=1;" edge="1" parent="1">
|
||||
<mxGeometry width="50" height="50" relative="1" as="geometry">
|
||||
<mxPoint y="200" as="sourcePoint" />
|
||||
<mxPoint x="820" y="200" as="targetPoint" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="4B3KDj_cxHq1nRbI7J67-23" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;fillColor=#d5e8d4;strokeColor=#82b366;" edge="1" parent="1" source="4B3KDj_cxHq1nRbI7J67-14">
|
||||
<mxGeometry relative="1" as="geometry">
|
||||
<mxPoint x="200" y="80" as="targetPoint" />
|
||||
<Array as="points">
|
||||
<mxPoint x="200" y="120" />
|
||||
<mxPoint x="200" y="120" />
|
||||
</Array>
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="4B3KDj_cxHq1nRbI7J67-24" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;fillColor=#d5e8d4;strokeColor=#82b366;" edge="1" parent="1" source="4B3KDj_cxHq1nRbI7J67-14">
|
||||
<mxGeometry relative="1" as="geometry">
|
||||
<mxPoint x="360" y="144" as="targetPoint" />
|
||||
<Array as="points">
|
||||
<mxPoint x="200" y="180" />
|
||||
<mxPoint x="360" y="180" />
|
||||
<mxPoint x="360" y="144" />
|
||||
</Array>
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="4B3KDj_cxHq1nRbI7J67-25" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;fillColor=#d5e8d4;strokeColor=#82b366;" edge="1" parent="1" source="4B3KDj_cxHq1nRbI7J67-14">
|
||||
<mxGeometry relative="1" as="geometry">
|
||||
<mxPoint x="600" y="92" as="targetPoint" />
|
||||
<Array as="points">
|
||||
<mxPoint x="200" y="180" />
|
||||
<mxPoint x="600" y="180" />
|
||||
<mxPoint x="600" y="92" />
|
||||
</Array>
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="4B3KDj_cxHq1nRbI7J67-14" value="<div>Navigation</div><div>Bar / Header<br></div>" style="html=1;fillColor=#d5e8d4;strokeColor=#82b366;" vertex="1" parent="1">
|
||||
<mxGeometry x="160" y="240" width="80" height="40" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="4B3KDj_cxHq1nRbI7J67-20" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.5;entryY=1;entryDx=0;entryDy=0;" edge="1" parent="1" source="4B3KDj_cxHq1nRbI7J67-15" target="4B3KDj_cxHq1nRbI7J67-14">
|
||||
<mxGeometry relative="1" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="4B3KDj_cxHq1nRbI7J67-15" value="<div>Profile</div><div>Popover<br></div>" style="html=1;" vertex="1" parent="1">
|
||||
<mxGeometry x="280" y="320" width="80" height="40" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="4B3KDj_cxHq1nRbI7J67-21" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=1;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="4B3KDj_cxHq1nRbI7J67-16" target="4B3KDj_cxHq1nRbI7J67-14">
|
||||
<mxGeometry relative="1" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="4B3KDj_cxHq1nRbI7J67-26" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;fillColor=#fff2cc;strokeColor=#d6b656;" edge="1" parent="1" source="4B3KDj_cxHq1nRbI7J67-16">
|
||||
<mxGeometry relative="1" as="geometry">
|
||||
<mxPoint x="220" y="80" as="targetPoint" />
|
||||
<Array as="points">
|
||||
<mxPoint x="440" y="190" />
|
||||
<mxPoint x="220" y="190" />
|
||||
</Array>
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="4B3KDj_cxHq1nRbI7J67-16" value="<div>Search</div><div>Field<br></div>" style="html=1;fillColor=#fff2cc;strokeColor=#d6b656;" vertex="1" parent="1">
|
||||
<mxGeometry x="400" y="240" width="80" height="40" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="4B3KDj_cxHq1nRbI7J67-27" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.75;entryY=1;entryDx=0;entryDy=0;fillColor=#f8cecc;strokeColor=#b85450;" edge="1" parent="1" source="4B3KDj_cxHq1nRbI7J67-18" target="4B3KDj_cxHq1nRbI7J67-1">
|
||||
<mxGeometry relative="1" as="geometry">
|
||||
<Array as="points">
|
||||
<mxPoint x="560" y="170" />
|
||||
<mxPoint x="243" y="170" />
|
||||
</Array>
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="4B3KDj_cxHq1nRbI7J67-28" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.5;entryY=1;entryDx=0;entryDy=0;fillColor=#f8cecc;strokeColor=#b85450;" edge="1" parent="1" source="4B3KDj_cxHq1nRbI7J67-18" target="4B3KDj_cxHq1nRbI7J67-5">
|
||||
<mxGeometry relative="1" as="geometry">
|
||||
<Array as="points">
|
||||
<mxPoint x="560" y="170" />
|
||||
<mxPoint x="440" y="170" />
|
||||
</Array>
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="4B3KDj_cxHq1nRbI7J67-18" value="<div>Product</div><div>List<br></div>" style="html=1;fillColor=#f8cecc;strokeColor=#b85450;" vertex="1" parent="1">
|
||||
<mxGeometry x="520" y="240" width="80" height="40" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="4B3KDj_cxHq1nRbI7J67-29" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.5;entryY=1;entryDx=0;entryDy=0;fillColor=#dae8fc;strokeColor=#6c8ebf;" edge="1" parent="1" source="4B3KDj_cxHq1nRbI7J67-19" target="4B3KDj_cxHq1nRbI7J67-9">
|
||||
<mxGeometry relative="1" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="4B3KDj_cxHq1nRbI7J67-30" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.839;entryY=1.004;entryDx=0;entryDy=0;entryPerimeter=0;fillColor=#dae8fc;strokeColor=#6c8ebf;" edge="1" parent="1" source="4B3KDj_cxHq1nRbI7J67-19" target="4B3KDj_cxHq1nRbI7J67-8">
|
||||
<mxGeometry relative="1" as="geometry">
|
||||
<Array as="points">
|
||||
<mxPoint x="680" y="160" />
|
||||
<mxPoint x="494" y="160" />
|
||||
</Array>
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="4B3KDj_cxHq1nRbI7J67-31" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" edge="1" parent="1" source="4B3KDj_cxHq1nRbI7J67-19">
|
||||
<mxGeometry relative="1" as="geometry">
|
||||
<mxPoint x="260" y="80" as="targetPoint" />
|
||||
<Array as="points">
|
||||
<mxPoint x="680" y="160" />
|
||||
<mxPoint x="260" y="160" />
|
||||
<mxPoint x="260" y="80" />
|
||||
</Array>
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="4B3KDj_cxHq1nRbI7J67-19" value="<div>Page</div><div>Footer</div>" style="html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">
|
||||
<mxGeometry x="640" y="240" width="80" height="40" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="4B3KDj_cxHq1nRbI7J67-32" value="Pages" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
|
||||
<mxGeometry x="10" y="72" width="40" height="20" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="4B3KDj_cxHq1nRbI7J67-33" value="Components" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
|
||||
<mxGeometry x="20" y="250" width="40" height="20" as="geometry" />
|
||||
</mxCell>
|
||||
</root>
|
||||
</mxGraphModel>
|
||||
</diagram>
|
||||
</mxfile>
|
BIN
doku/Frontend_Components_Diagram.png
Normal file
BIN
doku/Frontend_Components_Diagram.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
|
@ -1 +0,0 @@
|
|||
Test
|
Loading…
Reference in New Issue
Block a user