Skip to content

Commit

Permalink
Merge pull request #35 from sourcefuse/GH-20
Browse files Browse the repository at this point in the history
Arc-Docs  Introduction Part
  • Loading branch information
yeshamavani authored Jun 21, 2024
2 parents f1abd7c + 3c5ef05 commit f67abed
Show file tree
Hide file tree
Showing 40 changed files with 1,816 additions and 155 deletions.
37 changes: 25 additions & 12 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@
"budgets": [
{
"type": "initial",
"maximumWarning": "5mb",
"maximumError": "5mb"
"maximumWarning": "10mb",
"maximumError": "10mb"
},
{
"type": "anyComponentStyle",
Expand Down Expand Up @@ -92,8 +92,8 @@
},
{
"type": "anyComponentStyle",
"maximumWarning": "5mb",
"maximumError": "5mb"
"maximumWarning": "10mb",
"maximumError": "10mb"
}
]
}
Expand Down Expand Up @@ -194,26 +194,39 @@
"polyfills": ["zone.js"],
"tsConfig": "projects/arc-docs/tsconfig.app.json",
"inlineStyleLanguage": "scss",
"optimization": false,
"assets": [
"projects/arc-docs/src/favicon.ico",
"projects/arc-docs/src/assets"
{ "glob": "**/*", "input": "node_modules/monaco-editor", "output": "/assets/monaco/" },
{
"glob": "**/*",
"input": "projects/arc-lib/src/lib/assets/",
"output": "/assets/"
}
],


"styles": [
"./node_modules/@angular/material/prebuilt-themes/indigo-pink.css",
"node_modules/eva-icons/style/scss/eva-icons.scss",
"node_modules/@nebular/theme/styles/prebuilt/dark.css",
"projects/arc-docs/src/styles.scss"
],
"scripts": [],
"allowedCommonJsDependencies": ["lodash", "eva-icons", "CommonJS"]
"allowedCommonJsDependencies": ["lodash", "eva-icons", "CommonJS"],
"stylePreprocessorOptions": {
"includePaths": [
"projects/arc-lib/src/lib/theme/styles"
]
}
},
"configurations": {
"production": {
"budgets": [
{
"type": "initial",
"maximumWarning": "5mb",
"maximumError": "4mb"
"maximumWarning": "10mb",
"maximumError": "10mb"
},
{
"type": "anyComponentStyle",
Expand Down Expand Up @@ -311,13 +324,13 @@
"budgets": [
{
"type": "initial",
"maximumWarning": "5mb",
"maximumError": "5mb"
"maximumWarning": "10mb",
"maximumError": "10mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "5mb",
"maximumError": "5mb"
"maximumWarning": "10mb",
"maximumError": "10mb"
}
],
"outputHashing": "all"
Expand Down
10 changes: 9 additions & 1 deletion projects/arc-docs/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,18 @@ import {BrowserModule} from '@angular/platform-browser';
import {AppRoutingModule} from './app-routing.module';
import {AppComponent} from './app.component';
import {ThemeModule} from '@project-lib/theme/theme.module';
import {HeaderComponent} from '@project-lib/components/header/header.component';
import {SidebarComponent} from '@project-lib/components/sidebar/sidebar.component';

@NgModule({
declarations: [AppComponent],
imports: [BrowserModule, AppRoutingModule, ThemeModule.forRoot('default')],
imports: [
BrowserModule,
AppRoutingModule,
ThemeModule.forRoot('default'),
HeaderComponent,
SidebarComponent,
],
providers: [],
bootstrap: [AppComponent],
})
Expand Down
25 changes: 25 additions & 0 deletions projects/arc-docs/src/app/constants/docs-menu.contant.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
export const DOCUMENTATION_MENU_ITEMS = [
{
title: 'Getting Started',
icon: 'book-outline',
children: [
{
title: 'Introduction',
link: '/docs/getting-started',
},
],
},
{
title: 'Guide',
icon: 'book-outline',
children: [
{
title: 'Cloning Boilerplate',
link: '/docs/guide/clone',
},
{
title: 'Backend Integration',
},
],
},
];
30 changes: 13 additions & 17 deletions projects/arc-docs/src/app/docs/docs.component.html
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
<!-- <nb-layout>
<nb-layout-header fixed style="background-color: antiquewhite">
<a href="#"><i class="nb-menu"></i></a
></nb-layout-header>

<nb-sidebar></nb-sidebar>
<nb-layout>
<nb-layout-header fixed class="border-basic-bottom">
<div class="header-wrapper">
<lib-header></lib-header>
</div>
</nb-layout-header>

<nb-sidebar>
<nb-menu [items]="menu"> </nb-menu>
<lib-sidebar></lib-sidebar>
</nb-sidebar>

<nb-layout-column class="colored-column-basic"
>Layout Content
<router-outlet></router-outlet>
<nb-layout-column>
<router-outlet class="main-router"></router-outlet>
</nb-layout-column>
</nb-layout> -->
<nb-layout>
<nb-layout-header>Awesome Company</nb-layout-header>
<nb-layout-column class="colored-column-warning"
>Left column</nb-layout-column
>
<nb-layout-column class="colored-column-danger"
>Right column</nb-layout-column
>
</nb-layout>
68 changes: 68 additions & 0 deletions projects/arc-docs/src/app/docs/docs.component.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,71 @@
// Ensure the comments are properly placed if you're using them for debugging or development
@use 'sass:map';
@use '../../../../arc-lib/src/lib/theme/styles/variables' as *;
@use '@nebular/theme/styles/theming' as *;
@use '../../styles.scss' as *;

.colored-column-warning {
background-color: aqua;
}

@include nb-install-component() {
.nav-container {
display: flex;
justify-content: space-between;
width: 100%;
}

.logo-container {
display: flex;
align-items: center;
width: calc(#{nb-theme(sidebar-width)} - #{nb-theme(header-padding)});
user-select: none;
}

nb-action {
height: auto;
display: flex;
align-content: center;
}

nb-user {
cursor: pointer;
}

nb-sidebar {
z-index: 1038;
border-right: 0.063rem solid map.get($color, 'border-basic');
border-top: 0.063rem solid map.get($color, 'border-basic');

nb-sidebar-footer {
border-top: 0.063rem solid map.get($color, 'border-basic');
}

nb-menu {
margin: 0 !important;
}
}

.header-container {
display: flex;
align-items: center;
width: auto;

.menu-icon {
margin-left: 0.625rem;
}

.logo {
padding: 0 1.25rem;
padding-left: 0.625rem;
font-size: 1.75rem;
white-space: nowrap;
text-decoration: none;
}
}
}


.header-wrapper {
width: 100%;
}
24 changes: 22 additions & 2 deletions projects/arc-docs/src/app/docs/docs.component.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,28 @@
import {Component} from '@angular/core';
import {Component, OnInit} from '@angular/core';
import {ActivatedRoute, Router} from '@angular/router';
import {NbMenuItem, NbMenuService, NbSidebarService} from '@nebular/theme';
import {AuthService} from '@project-lib/core/auth';
import {RouteComponentBaseDirective} from '@project-lib/core/route-component-base';
import {IconPacksManagerService} from '@project-lib/theme/services';
import {takeUntil} from 'rxjs';
import {Location} from '@angular/common';
import {DOCUMENTATION_MENU_ITEMS} from '../constants/docs-menu.contant';

@Component({
selector: 'app-docs',
templateUrl: './docs.component.html',
styleUrls: ['./docs.component.scss'],
})
export class DocsComponent {}
export class DocsComponent extends RouteComponentBaseDirective {
constructor(
override readonly route: ActivatedRoute,
override readonly location: Location,
private readonly iconMgr: IconPacksManagerService,
private router: Router,
) {
super(route, location);
this.iconMgr.registerSvgs();
}

menu: NbMenuItem[] = DOCUMENTATION_MENU_ITEMS;
}
23 changes: 22 additions & 1 deletion projects/arc-docs/src/app/docs/docs.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,30 @@ import {CommonModule} from '@angular/common';
import {DocsComponent} from './docs.component';
import {DocsRoutingModule} from './docs-routing.module';
import {ThemeModule} from '@project-lib/theme/theme.module';
import {HeaderComponent} from '@project-lib/components/header/header.component';
import {SidebarComponent} from '@project-lib/components/sidebar/sidebar.component';
import {AuthService, CoreAuthModule} from '@project-lib/core/auth';
import {HttpClientModule} from '@angular/common/http';
import {NgxPermissionsService, NgxPermissionsStore} from 'ngx-permissions';
import {AuthModule} from '@project-lib/components/index';
import {environment} from '@main-project/boiler/env/environment';
import {APP_CONFIG} from '@project-lib/app-config';

@NgModule({
declarations: [DocsComponent],
imports: [CommonModule, DocsRoutingModule, ThemeModule],
imports: [
DocsRoutingModule,
ThemeModule,
HeaderComponent,
SidebarComponent,
CoreAuthModule,
],
providers: [
NgxPermissionsStore,
{
provide: APP_CONFIG,
useValue: environment,
},
],
})
export class DocsModule {}
Loading

0 comments on commit f67abed

Please sign in to comment.