Skip to content

Commit 87d9100

Browse files
authored
Merge pull request #17 from fullstack-devops/bugfix/docs-init
Bugfix/docs init
2 parents f069808 + 916d859 commit 87d9100

36 files changed

+194
-310
lines changed

.github/workflows/pull-request.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515
steps:
1616
- name: Checkout code
1717
uses: actions/checkout@v3
18+
1819
- name: Setup node
1920
uses: actions/setup-node@v3
2021
with:

.github/workflows/release.yml

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,8 @@ jobs:
2222
steps:
2323
- name: Checkout code
2424
uses: actions/checkout@v3
25-
- name: Setup awesome-ci
26-
uses: fullstack-devops/awesome-ci-action@main
27-
- name: Setup node
25+
26+
- name: Setup node for GitHub
2827
uses: actions/setup-node@v3
2928
with:
3029
node-version: "16.x"
@@ -36,18 +35,29 @@ jobs:
3635
- name: build applikation
3736
run: yarn run build
3837

39-
# - name: set publish config
40-
# shell: bash
41-
# run: npm config set //registry.npmjs.org/:_authToken ${{ secrets.GITHUB_TOKEN }}
42-
43-
- name: npm publish
38+
- name: npm publish to GitHub
4439
working-directory: dist/ng-mat-components
4540
run: |
4641
npm version ${{ needs.create_release.outputs.version }}
4742
npm publish
4843
env:
4944
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5045

46+
- name: Setup node for npmjs
47+
uses: actions/setup-node@v3
48+
with:
49+
node-version: "16.x"
50+
registry-url: "https://registry.npmjs.org"
51+
scope: "@fullstack-devops"
52+
53+
54+
- name: npm publish to npmjs
55+
working-directory: dist/ng-mat-components
56+
run: |
57+
npm publish
58+
env:
59+
NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}
60+
5161
- name: Publish release
5262
run: awesome-ci release publish -releaseid "${{ needs.create_release.outputs.releaseid }}"
5363
env:

.vscode/settings.json

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,14 @@
1313
},
1414
"javascript.updateImportsOnFileMove.enabled": "always",
1515
"typescript.updateImportsOnFileMove.enabled": "always",
16-
"[typescript]": {
17-
"editor.defaultFormatter": "esbenp.prettier-vscode",
18-
"editor.codeActionsOnSave": {
19-
"source.organizeImports": true
20-
}
21-
},
2216
"angular.enable-strict-mode-prompt": false,
2317
"files.associations": {
2418
".env*": "shell"
2519
},
26-
"[html]": {
27-
"editor.defaultFormatter": "esbenp.prettier-vscode"
28-
}
20+
"[yaml]": {
21+
"editor.defaultFormatter": "redhat.vscode-yaml"
22+
},
23+
"[typescript]": {
24+
"editor.defaultFormatter": "vscode.typescript-language-features"
25+
},
2926
}

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Components for @angular/material
33

44

5-
## Usage
5+
## Installation
66

77
add to your local `.npmrc` the following line to be able to use this package:
88
```javascript
@@ -23,7 +23,7 @@ And install it:
2323

2424
Live Demo with all current modules at https://fullstack-devops.github.io/ng-mat-components (still in dev)
2525

26-
Documentation will be done later when the api is fixed.
26+
Api Documentation: https://fullstack-devops.github.io/libraries/ng-mat-components.
2727

2828
## Development server
2929

angular.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,7 @@
6666
"projects/lib-workspace/src/assets"
6767
],
6868
"styles": [
69-
"./node_modules/@angular/material/prebuilt-themes/indigo-pink.css",
70-
"projects/lib-workspace/src/styles.scss"
69+
"./node_modules/@angular/material/prebuilt-themes/indigo-pink.css"
7170
],
7271
"scripts": []
7372
},

projects/lib-workspace/src/app/app-routing.module.ts

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
import { NgModule } from '@angular/core';
22
import { PreloadAllModules, RouterModule } from '@angular/router';
33
import { FrameRoutes } from 'projects/ng-mat-components/src/public-api';
4-
import { CalendarTableComponent } from './content/calendar-table/calendar-table.component';
5-
import { CalenderShowcaseComponent } from './content/calender-showcase/calender-showcase.component';
64
import { HomeComponent } from './content/home/home.component';
7-
import { SubComponent } from './content/home/sub/sub.component';
8-
import { TestComponent } from './content/test/test.component';
5+
import { ShowcaseCalendarPanelsComponent } from './content/showcase-calendar-panels/showcase-calendar-panels.component';
6+
import { ShowcaseCalendarTableComponent } from './content/showcase-calendar-table/showcase-calendar-table.component';
7+
import { ShowcaseUiFrameComponent } from './content/showcase-ui-frame/showcase-ui-frame.component';
98

109
export const routes: FrameRoutes = [
1110
{
@@ -16,25 +15,19 @@ export const routes: FrameRoutes = [
1615
sidenavIcon: 'home',
1716
sidenavText: 'Home',
1817
},
19-
children: [
20-
{
21-
path: 'sub',
22-
component: SubComponent,
23-
},
24-
],
2518
},
2619
{
27-
path: 'test',
28-
component: TestComponent,
20+
path: 'ui-frame',
21+
component: ShowcaseUiFrameComponent,
2922
data: {
3023
displaySidemenu: true,
31-
sidenavIcon: 'dashboard',
32-
sidenavText: 'Dashboard',
24+
sidenavIcon: 'pivot_table_chart',
25+
sidenavText: 'Ui Frame',
3326
},
3427
},
3528
{
3629
path: 'calendar-panels',
37-
component: CalenderShowcaseComponent,
30+
component: ShowcaseCalendarPanelsComponent,
3831
data: {
3932
displaySidemenu: true,
4033
sidenavIcon: 'calendar_month',
@@ -43,7 +36,7 @@ export const routes: FrameRoutes = [
4336
},
4437
{
4538
path: 'calendar-table',
46-
component: CalendarTableComponent,
39+
component: ShowcaseCalendarTableComponent,
4740
data: {
4841
displaySidemenu: true,
4942
sidenavIcon: 'event_note',

projects/lib-workspace/src/app/app.component.html

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
<fs-ui-frame
2-
[frameConfig]="frameConfig"
3-
[navUser]="navUser"
4-
[appRoutes]="appRoutes"
5-
(event)="onEvent($event)"
6-
>
1+
<fs-ui-frame [frameConfig]="frameConfig" [navUser]="navUser" [appRoutes]="appRoutes" (event)="onEvent($event)">
72
<fs-ui-frame-toolbar>
83
<fs-ui-frame-toolbar-title>Current App Title</fs-ui-frame-toolbar-title>
94

projects/lib-workspace/src/app/app.module.ts

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { LOCALE_ID, NgModule } from '@angular/core';
22
import { BrowserModule } from '@angular/platform-browser';
3-
import { CalenderShowcaseComponent } from './content/calender-showcase/calender-showcase.component';
43

54
import { APP_BASE_HREF } from '@angular/common';
65
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
@@ -16,19 +15,18 @@ import {
1615
FsMaterialFullModule,
1716
FsUiFrameModule,
1817
} from 'projects/ng-mat-components/src/public-api';
19-
import { CalendarTableComponent } from './content/calendar-table/calendar-table.component';
2018
import { HomeComponent } from './content/home/home.component';
21-
import { SubComponent } from './content/home/sub/sub.component';
22-
import { TestComponent } from './content/test/test.component';
19+
import { ShowcaseCalendarPanelsComponent } from './content/showcase-calendar-panels/showcase-calendar-panels.component';
20+
import { ShowcaseCalendarTableComponent } from './content/showcase-calendar-table/showcase-calendar-table.component';
21+
import { ShowcaseUiFrameComponent } from './content/showcase-ui-frame/showcase-ui-frame.component';
2322

2423
@NgModule({
2524
declarations: [
2625
AppComponent,
2726
HomeComponent,
28-
TestComponent,
29-
SubComponent,
30-
CalenderShowcaseComponent,
31-
CalendarTableComponent,
27+
ShowcaseCalendarPanelsComponent,
28+
ShowcaseCalendarTableComponent,
29+
ShowcaseUiFrameComponent,
3230
],
3331
imports: [
3432
FormsModule,
@@ -56,4 +54,4 @@ import { TestComponent } from './content/test/test.component';
5654
],
5755
bootstrap: [AppComponent],
5856
})
59-
export class AppModule {}
57+
export class AppModule { }

projects/lib-workspace/src/app/content/calendar-table/calendar-table.component.css

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
.docs-components {
2+
display: flex;
3+
flex-wrap: wrap;
4+
height: 100%;
5+
padding: 20px;
6+
justify-content: center;
7+
}
8+
9+
.docs-components .mat-card {
10+
height: 300px;
11+
width: 250px;
12+
margin: 8px;
13+
cursor: pointer;
14+
}
15+
16+
.docs-components .mat-card img {
17+
height: 200px;
18+
}

0 commit comments

Comments
 (0)