diff --git a/@salix/core/src/core.js b/@salix/core/src/core.js index 2dccf075f..7706fe446 100644 --- a/@salix/core/src/core.js +++ b/@salix/core/src/core.js @@ -2,6 +2,8 @@ * export public module */ +import style from './style/layout.css' + export * from './module' export * from './util' diff --git a/@salix/core/src/style/layout.css b/@salix/core/src/style/layout.css new file mode 100644 index 000000000..e93d58b8e --- /dev/null +++ b/@salix/core/src/style/layout.css @@ -0,0 +1,110 @@ + +html, body { + height: 100%; + margin: 0px; + padding: 0px; +} + +html [full-height], .full-height { + height: 100%; +} +html [self-scroll], .self-scroll { + overflow: auto; +} + +/* Horizontal & vertical */ + +html [vn-horizontal], vn-horizontal, .vn-horizontal, +html [vn-vertical], vn-vertical, .vn-vertical { + display: flex; +} +html [vn-horizontal], vn-horizontal, .vn-horizontal { + flex-direction: row; +} +vn-horizontal [reverse] { + flex-direction: row-reverse; +} +html [vn-vertical], vn-vertical, .vn-vertical { + flex-direction: column; +} +vn-vertical [reverse] { + flex-direction: column-reverse; +} +html [wrap] { + flex-wrap: wrap; +} +html [wrap-reverse] { + flex-wrap: wrap-reverse; +} +html [scrollable] { + min-height: 1px; + flex: 1; + flex-basis: 0.000000001px; +} + +/* Horizontal & vertical childs */ + +html [vn-auto], +html [vn-none], +html [vn-one], +html [vn-two], +html [vn-three], +html [vn-four], +html [vn-five], +html [vn-six], +html [vn-seven], +html [vn-eight], +html [vn-nine], +html [vn-ten], +html [vn-eleven], +html [vn-twelve]{ + flex-basis: 0.000000001px; +} +html [vn-auto], vn-auto, .vn-auto { + flex: 1; + flex-basis: auto; +} +html [vn-empty], vn-empty, .vn-empty { + display: block; +} +html [vn-none], vn-none, .vn-none { + flex: 1; + flex: none; +} +html [vn-one], vn-one, .vn-one { + flex: 1; +} +html [vn-two], vn-two, .vn-two { + flex: 2; +} +html [vn-three], vn-three, .vn-three { + flex: 3; +} +html [vn-four], vn-four, .vn-four { + flex: 4; +} +html [vn-five], vn-five, .vn-five { + flex: 5; +} +html [vn-six], vn-six, .vn-six { + flex: 6; +} +html [vn-seven], vn-seven, .vn-seven { + flex: 7; +} +html [vn-eight], vn-eight, .vn-eight { + flex: 8; +} +html [vn-nine], vn-nine, .vn-nine { + flex: 9; +} +html [vn-ten], vn-ten, .vn-ten { + flex: 10; +} +html [vn-eleven], vn-eleven, .vn-eleven { + flex: 11; +} +html [vn-twelve], vn-twelve, .vn-twelve { + flex: 12; +} + diff --git a/myToken.json b/myToken.json deleted file mode 100644 index a8ee11042..000000000 --- a/myToken.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "ids": { - "User": 2, - "AccessToken": 1 - }, - "models": { - "User": { - "1": "{\"password\":\"$2a$10$ktoGSPHvrhUPSEytSIRoQuQbq9HRGXEYhrIjP7f4Xx9LXwxeU7vHG\",\"email\":\"admin@admin.com\",\"id\":1}" - }, - "AccessToken": {} - } -} \ No newline at end of file diff --git a/nginx/nginx.conf b/nginx/nginx.conf deleted file mode 100644 index ff25d3e73..000000000 --- a/nginx/nginx.conf +++ /dev/null @@ -1,45 +0,0 @@ - -worker_processes 1; - -error_log build/nginx/error.log; -pid build/nginx/nginx.pid; - -events { - worker_connections 1024; -} - -http { - sendfile on; - default_type application/octet-stream; - - access_log build/nginx/access.log; - client_body_temp_path build/nginx/client-body; - proxy_temp_path build/nginx/proxy; - fastcgi_temp_path build/nginx/fastcgi; - uwsgi_temp_path build/nginx/uwsgi; - scgi_temp_path build/nginx/scgi; - - server { - listen 8080; - server_name localhost; - autoindex off; - - location /static { - alias build/public/; - autoindex on; - } - - location ~ ^/account(?:/(.*))?$ { - proxy_pass http://127.0.0.1:3000/$1$is_args$args; - } - - location ~ ^/salix(?:/(.*))?$ { - proxy_pass http://127.0.0.1:3001/$1$is_args$args; - } - - location ~ ^/customer(?:/(.*))?$ { - proxy_pass http://127.0.0.1:3002/$1$is_args$args; - } - } -} -