Skip to content

Commit eee9502

Browse files
committed
feat: demo version additions
1 parent 0eec546 commit eee9502

File tree

322 files changed

+29491
-6223
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

322 files changed

+29491
-6223
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Deploy to demo (azure storage)
2+
3+
on:
4+
push:
5+
branches:
6+
- demo
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Use Node.js 10.x
14+
uses: actions/setup-node@v1
15+
with:
16+
node-version: '10.x'
17+
- uses: actions/checkout@v2
18+
with:
19+
ref: demo
20+
- name: npm install, build
21+
run: |
22+
npm install
23+
npm run build:demo:prod
24+
25+
# Azure CLI Upload to storage
26+
- uses: azure/login@v1
27+
with:
28+
creds: ${{ secrets.AZURE_RBAC_CREDENTIALS }}
29+
- name: Upload to blob storage
30+
uses: azure/CLI@v1
31+
with:
32+
azcliversion: 2.0.72
33+
inlineScript: |
34+
az storage blob upload-batch -d '$web' -s dist --account-name ngxadmin --debug
35+
36+
# Azure logout
37+
- name: logout
38+
run: |
39+
az logout
40+
if: always()

.github/workflows/demoDeploy.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# compiled output
22
/dist
3+
/docs/dist
34
/tmp
45
/out-tsc
56

@@ -30,7 +31,6 @@
3031
npm-debug.log
3132
testem.log
3233
/typings
33-
/docs
3434

3535
# e2e
3636
/e2e/*.js

angular.json

Lines changed: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"src/assets",
2222
"src/favicon.ico",
2323
"src/favicon.png",
24+
"src/google46533d2e7a851062.html",
2425
{
2526
"glob": "**/*",
2627
"input": "node_modules/leaflet/dist/images",
@@ -139,6 +140,7 @@
139140
"src/assets",
140141
"src/favicon.ico",
141142
"src/favicon.png",
143+
"src/google46533d2e7a851062.html",
142144
{
143145
"glob": "**/*",
144146
"input": "node_modules/leaflet/dist/images",
@@ -182,6 +184,134 @@
182184
}
183185
}
184186
}
187+
},
188+
"docs": {
189+
"root": "",
190+
"sourceRoot": "docs",
191+
"projectType": "application",
192+
"architect": {
193+
"build": {
194+
"builder": "@angular-devkit/build-angular:browser",
195+
"options": {
196+
"outputPath": "docs/dist",
197+
"index": "docs/index.html",
198+
"main": "docs/main.ts",
199+
"tsConfig": "docs/tsconfig.app.json",
200+
"polyfills": "docs/polyfills.ts",
201+
"assets": [
202+
"docs/assets",
203+
"docs/404.html",
204+
"docs/favicon.png",
205+
"docs/google85b6c09017edfbcb.html"
206+
],
207+
"styles": [
208+
"node_modules/bootstrap/dist/css/bootstrap.css",
209+
"node_modules/nebular-icons/scss/nebular-icons.scss",
210+
"node_modules/swiper/css/swiper.min.css",
211+
"node_modules/highlight.js/styles/dracula.css",
212+
"docs/app/@theme/styles/styles.scss"
213+
],
214+
"allowedCommonJsDependencies": [
215+
"highlight.js"
216+
],
217+
"vendorChunk": true,
218+
"extractLicenses": false,
219+
"buildOptimizer": false,
220+
"sourceMap": true,
221+
"optimization": false,
222+
"namedChunks": true
223+
},
224+
"configurations": {
225+
"production": {
226+
"optimization": true,
227+
"outputHashing": "all",
228+
"sourceMap": false,
229+
"extractCss": true,
230+
"namedChunks": false,
231+
"extractLicenses": true,
232+
"vendorChunk": false,
233+
"buildOptimizer": true,
234+
"fileReplacements": [
235+
{
236+
"replace": "docs/environments/environment.ts",
237+
"with": "docs/environments/environment.prod.ts"
238+
}
239+
]
240+
}
241+
},
242+
"defaultConfiguration": ""
243+
},
244+
"serve": {
245+
"builder": "@angular-devkit/build-angular:dev-server",
246+
"options": {
247+
"browserTarget": "docs:build"
248+
},
249+
"configurations": {
250+
"production": {
251+
"browserTarget": "docs:build:production"
252+
}
253+
}
254+
},
255+
"extract-i18n": {
256+
"builder": "@angular-devkit/build-angular:extract-i18n",
257+
"options": {
258+
"browserTarget": "docs:build"
259+
}
260+
},
261+
"test": {
262+
"builder": "@angular-devkit/build-angular:karma",
263+
"options": {
264+
"main": "docs/test.ts",
265+
"karmaConfig": "./karma.conf.js",
266+
"polyfills": "docs/polyfills.ts",
267+
"tsConfig": "docs/tsconfig.spec.json",
268+
"scripts": [
269+
],
270+
"styles": [
271+
"node_modules/nebular-icons/scss/nebular-icons.scss",
272+
"docs/app/@theme/styles/styles.scss"
273+
],
274+
"assets": [
275+
"docs/assets",
276+
"docs/favicon.ico",
277+
"docs/favicon.png",
278+
"docs/google85b6c09017edfbcb.html"
279+
]
280+
}
281+
},
282+
"lint": {
283+
"builder": "@angular-devkit/build-angular:tslint",
284+
"options": {
285+
"tsConfig": [
286+
"docs/tsconfig.spec.json",
287+
"docs/tsconfig.app.json"
288+
],
289+
"exclude": []
290+
}
291+
}
292+
}
293+
},
294+
"docs-e2e": {
295+
"root": "",
296+
"sourceRoot": "",
297+
"projectType": "application",
298+
"architect": {
299+
"e2e": {
300+
"builder": "@angular-devkit/build-angular:protractor",
301+
"options": {
302+
"protractorConfig": "./protractor.conf.js",
303+
"devServerTarget": "docs:serve"
304+
}
305+
},
306+
"lint": {
307+
"builder": "@angular-devkit/build-angular:tslint",
308+
"options": {
309+
"tsConfig": [
310+
"e2e/tsconfig.e2e.json"],
311+
"exclude": []
312+
}
313+
}
314+
}
185315
}
186316
},
187317
"defaultProject": "ngx-admin-demo",

docs/404.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<!DOCTYPE html>
2+
<html>
3+
4+
<head>
5+
<meta charset="utf-8" />
6+
<title>404</title>
7+
8+
<base href="/ngx-admin/">
9+
10+
<script type="text/javascript" src="assets/ghspa.js"></script>
11+
</head>
12+
13+
<body>
14+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
15+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
16+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
17+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
18+
</body>
19+
20+
</html>

docs/app/@core/core.module.ts

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
/**
2+
* @license
3+
* Copyright Akveo. All Rights Reserved.
4+
* Licensed under the MIT License. See License.txt in the project root for license information.
5+
*/
6+
7+
import { ModuleWithProviders, NgModule, Optional, SkipSelf } from '@angular/core';
8+
import { CommonModule } from '@angular/common';
9+
10+
import { throwIfAlreadyLoaded } from './module-import-guard';
11+
import { DataModule } from './data/data.module';
12+
13+
const PIPES = [
14+
];
15+
16+
const NB_CORE_PROVIDERS = [
17+
...DataModule.forRoot().providers,
18+
];
19+
20+
@NgModule({
21+
imports: [
22+
CommonModule,
23+
],
24+
exports: [...PIPES],
25+
declarations: [...PIPES],
26+
})
27+
export class CoreModule {
28+
constructor(@Optional() @SkipSelf() parentModule: CoreModule) {
29+
throwIfAlreadyLoaded(parentModule, 'CoreModule');
30+
}
31+
32+
static forRoot(): ModuleWithProviders<CoreModule> {
33+
return {
34+
ngModule: CoreModule,
35+
providers: [
36+
...NB_CORE_PROVIDERS,
37+
],
38+
};
39+
}
40+
}

docs/app/@core/data/data.module.ts

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
/**
2+
* @license
3+
* Copyright Akveo. All Rights Reserved.
4+
* Licensed under the MIT License. See License.txt in the project root for license information.
5+
*/
6+
7+
import { NgModule, ModuleWithProviders } from '@angular/core';
8+
import { CommonModule } from '@angular/common';
9+
10+
import { HeaderMenuService } from './service/header-menu.service';
11+
import { ReviewsService } from './service/reviews.service';
12+
import { DescriptionsService } from './service/descriptions.service';
13+
import { BundlesService } from './service/bundles.service';
14+
15+
const SERVICES = [
16+
HeaderMenuService,
17+
ReviewsService,
18+
DescriptionsService,
19+
BundlesService,
20+
];
21+
22+
@NgModule({
23+
imports: [
24+
CommonModule,
25+
],
26+
providers: [
27+
...SERVICES,
28+
],
29+
})
30+
export class DataModule {
31+
static forRoot(): ModuleWithProviders<DataModule> {
32+
return {
33+
ngModule: DataModule,
34+
providers: [
35+
...SERVICES,
36+
],
37+
};
38+
}
39+
}

0 commit comments

Comments
 (0)