first commit
This commit is contained in:
64
.gitignore
vendored
Normal file
64
.gitignore
vendored
Normal file
@@ -0,0 +1,64 @@
|
|||||||
|
# Logs
|
||||||
|
logs
|
||||||
|
*.log
|
||||||
|
npm-debug.log*
|
||||||
|
yarn-debug.log*
|
||||||
|
yarn-error.log*
|
||||||
|
|
||||||
|
# Runtime data
|
||||||
|
pids
|
||||||
|
*.pid
|
||||||
|
*.seed
|
||||||
|
*.pid.lock
|
||||||
|
|
||||||
|
# Directory for instrumented libs generated by jscoverage/JSCover
|
||||||
|
lib-cov
|
||||||
|
|
||||||
|
# Coverage directory used by tools like istanbul
|
||||||
|
coverage
|
||||||
|
|
||||||
|
# nyc test coverage
|
||||||
|
.nyc_output
|
||||||
|
|
||||||
|
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
|
||||||
|
.grunt
|
||||||
|
|
||||||
|
# Bower dependency directory (https://bower.io/)
|
||||||
|
bower_components
|
||||||
|
|
||||||
|
# node-waf configuration
|
||||||
|
.lock-wscript
|
||||||
|
|
||||||
|
# Compiled binary addons (https://nodejs.org/api/addons.html)
|
||||||
|
build/Release
|
||||||
|
|
||||||
|
# Dependency directories
|
||||||
|
node_modules/
|
||||||
|
jspm_packages/
|
||||||
|
|
||||||
|
# TypeScript v1 declaration files
|
||||||
|
typings/
|
||||||
|
|
||||||
|
# Optional npm cache directory
|
||||||
|
.npm
|
||||||
|
|
||||||
|
# Optional eslint cache
|
||||||
|
.eslintcache
|
||||||
|
|
||||||
|
# Optional REPL history
|
||||||
|
.node_repl_history
|
||||||
|
|
||||||
|
# Output of 'npm pack'
|
||||||
|
*.tgz
|
||||||
|
|
||||||
|
# Yarn Integrity file
|
||||||
|
.yarn-integrity
|
||||||
|
|
||||||
|
# dotenv environment variables file
|
||||||
|
.env
|
||||||
|
|
||||||
|
# next.js build output
|
||||||
|
.next
|
||||||
|
|
||||||
|
.editorconfig
|
||||||
|
package-lock.json
|
||||||
21
LICENSE
Normal file
21
LICENSE
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2018 mohiit1502
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
27
README.md
Normal file
27
README.md
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
# PictureStory
|
||||||
|
|
||||||
|
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 6.0.8.
|
||||||
|
|
||||||
|
## Development server
|
||||||
|
|
||||||
|
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
|
||||||
|
|
||||||
|
## Code scaffolding
|
||||||
|
|
||||||
|
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.
|
||||||
|
|
||||||
|
## Build
|
||||||
|
|
||||||
|
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.
|
||||||
|
|
||||||
|
## Running unit tests
|
||||||
|
|
||||||
|
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
|
||||||
|
|
||||||
|
## Running end-to-end tests
|
||||||
|
|
||||||
|
Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
|
||||||
|
|
||||||
|
## Further help
|
||||||
|
|
||||||
|
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).
|
||||||
147
angular.json
Normal file
147
angular.json
Normal file
@@ -0,0 +1,147 @@
|
|||||||
|
{
|
||||||
|
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
||||||
|
"version": 1,
|
||||||
|
"newProjectRoot": "projects",
|
||||||
|
"projects": {
|
||||||
|
"PictureStory": {
|
||||||
|
"root": "",
|
||||||
|
"sourceRoot": "src",
|
||||||
|
"projectType": "application",
|
||||||
|
"prefix": "app",
|
||||||
|
"schematics": {
|
||||||
|
"@schematics/angular:component": {
|
||||||
|
"styleext": "scss"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"architect": {
|
||||||
|
"build": {
|
||||||
|
"builder": "@angular-devkit/build-angular:browser",
|
||||||
|
"options": {
|
||||||
|
"outputPath": "dist/PictureStory",
|
||||||
|
"index": "src/index.html",
|
||||||
|
"main": "src/main.ts",
|
||||||
|
"polyfills": "src/polyfills.ts",
|
||||||
|
"tsConfig": "src/tsconfig.app.json",
|
||||||
|
"assets": [
|
||||||
|
"src/favicon.ico",
|
||||||
|
"src/assets"
|
||||||
|
],
|
||||||
|
"styles": [
|
||||||
|
"src/styles.css",
|
||||||
|
"node_modules/bootstrap/dist/css/bootstrap.min.css",
|
||||||
|
"node_modules/font-awesome/scss/font-awesome.scss"
|
||||||
|
],
|
||||||
|
"stylePreprocessorOptions": {
|
||||||
|
"includePaths": [
|
||||||
|
"../node_modules/bootstrap/scss",
|
||||||
|
"../node_modules/font-awesome/scss"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"scripts": [
|
||||||
|
"node_modules/jquery/dist/jquery.min.js",
|
||||||
|
"node_modules/bootstrap/dist/js/bootstrap.min.js"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"configurations": {
|
||||||
|
"production": {
|
||||||
|
"fileReplacements": [
|
||||||
|
{
|
||||||
|
"replace": "src/environments/environment.ts",
|
||||||
|
"with": "src/environments/environment.prod.ts"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"optimization": true,
|
||||||
|
"outputHashing": "all",
|
||||||
|
"sourceMap": false,
|
||||||
|
"extractCss": true,
|
||||||
|
"namedChunks": false,
|
||||||
|
"aot": true,
|
||||||
|
"extractLicenses": true,
|
||||||
|
"vendorChunk": false,
|
||||||
|
"buildOptimizer": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"serve": {
|
||||||
|
"builder": "@angular-devkit/build-angular:dev-server",
|
||||||
|
"options": {
|
||||||
|
"browserTarget": "PictureStory:build"
|
||||||
|
},
|
||||||
|
"configurations": {
|
||||||
|
"production": {
|
||||||
|
"browserTarget": "PictureStory:build:production"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"extract-i18n": {
|
||||||
|
"builder": "@angular-devkit/build-angular:extract-i18n",
|
||||||
|
"options": {
|
||||||
|
"browserTarget": "PictureStory:build"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"test": {
|
||||||
|
"builder": "@angular-devkit/build-angular:karma",
|
||||||
|
"options": {
|
||||||
|
"main": "src/test.ts",
|
||||||
|
"polyfills": "src/polyfills.ts",
|
||||||
|
"tsConfig": "src/tsconfig.spec.json",
|
||||||
|
"karmaConfig": "src/karma.conf.js",
|
||||||
|
"styles": [
|
||||||
|
"src/styles.css"
|
||||||
|
],
|
||||||
|
"scripts": [],
|
||||||
|
"assets": [
|
||||||
|
"src/favicon.ico",
|
||||||
|
"src/assets"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"lint": {
|
||||||
|
"builder": "@angular-devkit/build-angular:tslint",
|
||||||
|
"options": {
|
||||||
|
"tsConfig": [
|
||||||
|
"src/tsconfig.app.json",
|
||||||
|
"src/tsconfig.spec.json"
|
||||||
|
],
|
||||||
|
"exclude": [
|
||||||
|
"**/node_modules/**"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"PictureStory-e2e": {
|
||||||
|
"root": "e2e/",
|
||||||
|
"projectType": "application",
|
||||||
|
"architect": {
|
||||||
|
"e2e": {
|
||||||
|
"builder": "@angular-devkit/build-angular:protractor",
|
||||||
|
"options": {
|
||||||
|
"protractorConfig": "e2e/protractor.conf.js",
|
||||||
|
"devServerTarget": "PictureStory:serve"
|
||||||
|
},
|
||||||
|
"configurations": {
|
||||||
|
"production": {
|
||||||
|
"devServerTarget": "PictureStory:serve:production"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"lint": {
|
||||||
|
"builder": "@angular-devkit/build-angular:tslint",
|
||||||
|
"options": {
|
||||||
|
"tsConfig": "e2e/tsconfig.e2e.json",
|
||||||
|
"exclude": [
|
||||||
|
"**/node_modules/**"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"defaultProject": "PictureStory",
|
||||||
|
"schematics": {
|
||||||
|
"@schematics/angular:component": {
|
||||||
|
"styleext": "scss"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
28
e2e/protractor.conf.js
Normal file
28
e2e/protractor.conf.js
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
// Protractor configuration file, see link for more information
|
||||||
|
// https://github.com/angular/protractor/blob/master/lib/config.ts
|
||||||
|
|
||||||
|
const { SpecReporter } = require('jasmine-spec-reporter');
|
||||||
|
|
||||||
|
exports.config = {
|
||||||
|
allScriptsTimeout: 11000,
|
||||||
|
specs: [
|
||||||
|
'./src/**/*.e2e-spec.ts'
|
||||||
|
],
|
||||||
|
capabilities: {
|
||||||
|
'browserName': 'chrome'
|
||||||
|
},
|
||||||
|
directConnect: true,
|
||||||
|
baseUrl: 'http://localhost:4200/',
|
||||||
|
framework: 'jasmine',
|
||||||
|
jasmineNodeOpts: {
|
||||||
|
showColors: true,
|
||||||
|
defaultTimeoutInterval: 30000,
|
||||||
|
print: function() {}
|
||||||
|
},
|
||||||
|
onPrepare() {
|
||||||
|
require('ts-node').register({
|
||||||
|
project: require('path').join(__dirname, './tsconfig.e2e.json')
|
||||||
|
});
|
||||||
|
jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } }));
|
||||||
|
}
|
||||||
|
};
|
||||||
14
e2e/src/app.e2e-spec.ts
Normal file
14
e2e/src/app.e2e-spec.ts
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
import { AppPage } from './app.po';
|
||||||
|
|
||||||
|
describe('workspace-project App', () => {
|
||||||
|
let page: AppPage;
|
||||||
|
|
||||||
|
beforeEach(() => {
|
||||||
|
page = new AppPage();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should display welcome message', () => {
|
||||||
|
page.navigateTo();
|
||||||
|
expect(page.getParagraphText()).toEqual('Welcome to PictureStory!');
|
||||||
|
});
|
||||||
|
});
|
||||||
11
e2e/src/app.po.ts
Normal file
11
e2e/src/app.po.ts
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
import { browser, by, element } from 'protractor';
|
||||||
|
|
||||||
|
export class AppPage {
|
||||||
|
navigateTo() {
|
||||||
|
return browser.get('/');
|
||||||
|
}
|
||||||
|
|
||||||
|
getParagraphText() {
|
||||||
|
return element(by.css('app-root h1')).getText();
|
||||||
|
}
|
||||||
|
}
|
||||||
13
e2e/tsconfig.e2e.json
Normal file
13
e2e/tsconfig.e2e.json
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
{
|
||||||
|
"extends": "../tsconfig.json",
|
||||||
|
"compilerOptions": {
|
||||||
|
"outDir": "../out-tsc/app",
|
||||||
|
"module": "commonjs",
|
||||||
|
"target": "es5",
|
||||||
|
"types": [
|
||||||
|
"jasmine",
|
||||||
|
"jasminewd2",
|
||||||
|
"node"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
51
package.json
Normal file
51
package.json
Normal file
@@ -0,0 +1,51 @@
|
|||||||
|
{
|
||||||
|
"name": "picture-story",
|
||||||
|
"version": "0.0.0",
|
||||||
|
"scripts": {
|
||||||
|
"ng": "ng",
|
||||||
|
"start": "ng serve",
|
||||||
|
"build": "ng build",
|
||||||
|
"test": "ng test",
|
||||||
|
"lint": "ng lint",
|
||||||
|
"e2e": "ng e2e"
|
||||||
|
},
|
||||||
|
"private": true,
|
||||||
|
"dependencies": {
|
||||||
|
"@angular/animations": "^6.0.3",
|
||||||
|
"@angular/common": "^6.0.3",
|
||||||
|
"@angular/compiler": "^6.0.3",
|
||||||
|
"@angular/core": "^6.0.3",
|
||||||
|
"@angular/forms": "^6.0.3",
|
||||||
|
"@angular/http": "^6.0.3",
|
||||||
|
"@angular/platform-browser": "^6.0.3",
|
||||||
|
"@angular/platform-browser-dynamic": "^6.0.3",
|
||||||
|
"@angular/router": "^6.0.3",
|
||||||
|
"bootstrap": "^4.1.3",
|
||||||
|
"core-js": "^2.5.4",
|
||||||
|
"font-awesome": "^4.7.0",
|
||||||
|
"jquery": "^3.3.1",
|
||||||
|
"rxjs": "^6.0.0",
|
||||||
|
"zone.js": "^0.8.26"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@angular/compiler-cli": "^6.0.3",
|
||||||
|
"@angular-devkit/build-angular": "~0.6.8",
|
||||||
|
"typescript": "~2.7.2",
|
||||||
|
"@angular/cli": "~6.0.8",
|
||||||
|
"@angular/language-service": "^6.0.3",
|
||||||
|
"@types/jasmine": "~2.8.6",
|
||||||
|
"@types/jasminewd2": "~2.0.3",
|
||||||
|
"@types/node": "~8.9.4",
|
||||||
|
"codelyzer": "~4.2.1",
|
||||||
|
"jasmine-core": "~2.99.1",
|
||||||
|
"jasmine-spec-reporter": "~4.2.1",
|
||||||
|
"karma": "~1.7.1",
|
||||||
|
"karma-chrome-launcher": "~2.2.0",
|
||||||
|
"karma-coverage-istanbul-reporter": "~2.0.0",
|
||||||
|
"karma-jasmine": "~1.1.1",
|
||||||
|
"karma-jasmine-html-reporter": "^0.2.2",
|
||||||
|
"protractor": "~5.3.0",
|
||||||
|
"ts-node": "~5.0.1",
|
||||||
|
"tslint": "~5.9.1"
|
||||||
|
}
|
||||||
|
}
|
||||||
27
src/app/app-routing/app-routing.module.ts
Normal file
27
src/app/app-routing/app-routing.module.ts
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
import { NgModule } from '@angular/core';
|
||||||
|
import { CommonModule } from '@angular/common';
|
||||||
|
import { Routes, RouterModule } from '@angular/router'
|
||||||
|
|
||||||
|
import { HomeComponent } from '../content/image-container/home/home.component';
|
||||||
|
import { PageNotFoundComponent } from '../page-not-found/page-not-found.component';
|
||||||
|
|
||||||
|
const appRoutes: Routes = [
|
||||||
|
{
|
||||||
|
path: '',
|
||||||
|
component: HomeComponent
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '**',
|
||||||
|
component: PageNotFoundComponent
|
||||||
|
}
|
||||||
|
]
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
CommonModule,
|
||||||
|
RouterModule.forRoot(appRoutes)
|
||||||
|
],
|
||||||
|
exports: [RouterModule],
|
||||||
|
declarations: []
|
||||||
|
})
|
||||||
|
export class AppRoutingModule { }
|
||||||
4
src/app/app.component.html
Normal file
4
src/app/app.component.html
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<div class="wrapper">
|
||||||
|
<app-side-bar></app-side-bar>
|
||||||
|
<app-header></app-header>
|
||||||
|
</div>
|
||||||
458
src/app/app.component.scss
Normal file
458
src/app/app.component.scss
Normal file
@@ -0,0 +1,458 @@
|
|||||||
|
$themeColor-Light: #EEE2DC;
|
||||||
|
// $themeColor-Dark:#252525;
|
||||||
|
$themeColor-Dark:#E3E2DF;
|
||||||
|
$theme-font: verdana, sans-serif;
|
||||||
|
// $theme-supplementer: #f39c12;
|
||||||
|
$theme-supplementer: #5D001E;
|
||||||
|
|
||||||
|
// app-root {
|
||||||
|
// font-family: 'Poppins', sans-serif;
|
||||||
|
// background-color: $themeColor-Dark;
|
||||||
|
// }
|
||||||
|
|
||||||
|
p {
|
||||||
|
font-family: 'Poppins', sans-serif;
|
||||||
|
font-size: 1.1em;
|
||||||
|
font-weight: 300;
|
||||||
|
line-height: 1.7em;
|
||||||
|
// color: #999;
|
||||||
|
}
|
||||||
|
|
||||||
|
a,
|
||||||
|
a:hover,
|
||||||
|
a:focus {
|
||||||
|
color: inherit;
|
||||||
|
text-decoration: none;
|
||||||
|
transition: all 0.3s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar {
|
||||||
|
padding: 15px 10px;
|
||||||
|
background: #fff;
|
||||||
|
border: none;
|
||||||
|
border-radius: 0 5px 5px 0;
|
||||||
|
margin-bottom: 40px;
|
||||||
|
box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar-btn {
|
||||||
|
box-shadow: none;
|
||||||
|
outline: none !important;
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.line {
|
||||||
|
width: 100%;
|
||||||
|
height: 1px;
|
||||||
|
border-bottom: 1px dashed #ddd;
|
||||||
|
margin: 20px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
i,
|
||||||
|
span {
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---------------------------------------------------
|
||||||
|
SIDEBAR STYLE
|
||||||
|
----------------------------------------------------- */
|
||||||
|
|
||||||
|
.wrapper {
|
||||||
|
display: flex;
|
||||||
|
align-items: stretch;
|
||||||
|
font-family: 'Poppins', sans-serif;
|
||||||
|
background-color: $themeColor-Dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar {
|
||||||
|
min-width: 250px;
|
||||||
|
max-width: 250px;
|
||||||
|
background: $theme-supplementer;
|
||||||
|
color: $themeColor-Dark;
|
||||||
|
transition: all 0.3s;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar.active {
|
||||||
|
min-width: 80px;
|
||||||
|
max-width: 80px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar.active .sidebar-header h3,
|
||||||
|
#sidebar.active .CTAs {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar-header h3 {
|
||||||
|
display: inline;
|
||||||
|
padding-left: 0.6em;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar.active .sidebar-header strong {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar ul li a {
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar.active ul li a {
|
||||||
|
padding: 20px 10px;
|
||||||
|
text-align: center;
|
||||||
|
font-size: 0.85em;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar.active ul li a i {
|
||||||
|
margin-right: 0;
|
||||||
|
display: block;
|
||||||
|
font-size: 1.8em;
|
||||||
|
margin-bottom: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar.active ul ul a {
|
||||||
|
padding: 10px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar.active .dropdown-toggle::after {
|
||||||
|
top: auto;
|
||||||
|
bottom: 10px;
|
||||||
|
right: 50%;
|
||||||
|
-webkit-transform: translateX(50%);
|
||||||
|
-ms-transform: translateX(50%);
|
||||||
|
transform: translateX(50%);
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar .sidebar-header {
|
||||||
|
padding: 20px;
|
||||||
|
background:$themeColor-Dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar .sidebar-header strong {
|
||||||
|
display: none;
|
||||||
|
font-size: 1.8em;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar ul.components {
|
||||||
|
padding: 20px 0;
|
||||||
|
border-bottom: 3px solid $themeColor-Dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar ul li a {
|
||||||
|
padding: 10px;
|
||||||
|
font-size: 1.1em;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar ul li a:hover {
|
||||||
|
color: $theme-supplementer;
|
||||||
|
background: $themeColor-Light;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar ul li a i {
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar ul li.active>a,
|
||||||
|
a[aria-expanded="true"] {
|
||||||
|
color: $theme-supplementer;
|
||||||
|
background:$themeColor-Dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
a[data-toggle="collapse"] {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dropdown-toggle::after {
|
||||||
|
display: block;
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
right: 20px;
|
||||||
|
transform: translateY(-50%);
|
||||||
|
}
|
||||||
|
|
||||||
|
ul ul a {
|
||||||
|
font-size: 0.9em !important;
|
||||||
|
padding-left: 30px !important;
|
||||||
|
background: white;
|
||||||
|
font-weight: bolder;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul.CTAs {
|
||||||
|
padding: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul.CTAs a {
|
||||||
|
text-align: center;
|
||||||
|
font-size: 0.9em !important;
|
||||||
|
display: block;
|
||||||
|
border-radius: 5px;
|
||||||
|
margin-bottom: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
a.download {
|
||||||
|
background: #fff;
|
||||||
|
color: #7386D5;
|
||||||
|
}
|
||||||
|
|
||||||
|
a.article,
|
||||||
|
a.article:hover {
|
||||||
|
background: #6d7fcc !important;
|
||||||
|
color: #fff !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---------------------------------------------------
|
||||||
|
CONTENT STYLE
|
||||||
|
----------------------------------------------------- */
|
||||||
|
|
||||||
|
#content {
|
||||||
|
width: 100%;
|
||||||
|
padding: 20px;
|
||||||
|
min-height: 100vh;
|
||||||
|
transition: all 0.3s;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---------------------------------------------------
|
||||||
|
MEDIAQUERIES
|
||||||
|
----------------------------------------------------- */
|
||||||
|
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
#sidebar {
|
||||||
|
min-width: 80px;
|
||||||
|
max-width: 80px;
|
||||||
|
text-align: center;
|
||||||
|
margin-left: -80px !important;
|
||||||
|
}
|
||||||
|
.dropdown-toggle::after {
|
||||||
|
top: auto;
|
||||||
|
bottom: 10px;
|
||||||
|
right: 50%;
|
||||||
|
-webkit-transform: translateX(50%);
|
||||||
|
-ms-transform: translateX(50%);
|
||||||
|
transform: translateX(50%);
|
||||||
|
}
|
||||||
|
#sidebar.active {
|
||||||
|
margin-left: 0 !important;
|
||||||
|
}
|
||||||
|
#sidebar .sidebar-header h3,
|
||||||
|
#sidebar .CTAs {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
#sidebar .sidebar-header strong {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
#sidebar ul li a {
|
||||||
|
padding: 20px 10px;
|
||||||
|
}
|
||||||
|
#sidebar ul li a span {
|
||||||
|
font-size: 0.85em;
|
||||||
|
}
|
||||||
|
#sidebar ul li a i {
|
||||||
|
margin-right: 0;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
#sidebar ul ul a {
|
||||||
|
padding: 10px !important;
|
||||||
|
}
|
||||||
|
#sidebar ul li a i {
|
||||||
|
font-size: 1.3em;
|
||||||
|
}
|
||||||
|
#sidebar {
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
#sidebarCollapse span {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.text-muted {
|
||||||
|
color: #bcb !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media(min-width: 576px) {
|
||||||
|
.card-group>.card:first-child {
|
||||||
|
border-top-right-radius: .25rem;
|
||||||
|
border-bottom-right-radius: .25rem;
|
||||||
|
}
|
||||||
|
.card-group>.card:not(:first-child):not(:last-child):not(:only-child) {
|
||||||
|
border-radius: .25rem;
|
||||||
|
}
|
||||||
|
.card-group>.card:last-child {
|
||||||
|
border-top-left-radius: .25rem;
|
||||||
|
border-bottom-left-radius: .25rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/* -------------------------------------------------
|
||||||
|
ADDITIONS
|
||||||
|
--------------------------------------------------*/
|
||||||
|
.hide {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.prompt {
|
||||||
|
display: flex;
|
||||||
|
width: 2em;
|
||||||
|
border-right: 1px solid #c99034;
|
||||||
|
// background-color: #f5d38b;
|
||||||
|
background-color: $theme-supplementer;
|
||||||
|
width: 4%;
|
||||||
|
margin-bottom: 40px;
|
||||||
|
border-radius: 4px 0 0 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.promptext {
|
||||||
|
animation:blinkingText 0.8s infinite;
|
||||||
|
// color: #975f04;
|
||||||
|
// color: $themeColor-Light;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 2em;
|
||||||
|
font: 1.5em bolder;
|
||||||
|
margin: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.good {
|
||||||
|
animation: anim .3s ease-in-out;
|
||||||
|
}
|
||||||
|
|
||||||
|
.repoLink {
|
||||||
|
color: #000;
|
||||||
|
font-weight: bolder;
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
.headerprompt {
|
||||||
|
display: flex;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.logotext {
|
||||||
|
color: $theme-supplementer;
|
||||||
|
}
|
||||||
|
|
||||||
|
#content nav div.collapse li a.nav-link i.far {
|
||||||
|
color: $theme-supplementer;
|
||||||
|
font-size: 1.8em;
|
||||||
|
padding: 0.2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
#loading-img {
|
||||||
|
background: url(http://preloaders.net/preloaders/360/Velocity.gif) center center no-repeat;
|
||||||
|
height: 100%;
|
||||||
|
z-index: 20;
|
||||||
|
}
|
||||||
|
|
||||||
|
.overlay {
|
||||||
|
background: #e9e9e9;
|
||||||
|
display: none;
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
opacity: 0.5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.loader {
|
||||||
|
border: 0px solid #f3f3f3;
|
||||||
|
border-radius: 50%;
|
||||||
|
border-top: 2px solid #3498db;
|
||||||
|
border-right: 2px solid #3498db;
|
||||||
|
width: 20px;
|
||||||
|
height: 20px;
|
||||||
|
-webkit-animation: spin 2s linear infinite; /* Safari */
|
||||||
|
animation: spin 2s linear infinite;
|
||||||
|
}
|
||||||
|
.card:not(.widget) {
|
||||||
|
background: linear-gradient(to right, white, lightblue)
|
||||||
|
}
|
||||||
|
.light-red {
|
||||||
|
// background:linear-gradient(white, lightblue);
|
||||||
|
background: linear-gradient(to right, white, #dfc99a)
|
||||||
|
}
|
||||||
|
|
||||||
|
// f3d98c
|
||||||
|
.featureRequest {
|
||||||
|
background-color : #007bff;
|
||||||
|
color: white;
|
||||||
|
font-size: 1.5em;
|
||||||
|
padding: 10px 20px;
|
||||||
|
border-radius: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#featureRequest {
|
||||||
|
position: fixed;
|
||||||
|
bottom: 2em;
|
||||||
|
right: 2.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes spin {
|
||||||
|
0% { transform: rotate(0deg); }
|
||||||
|
100% { transform: rotate(360deg); }
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes anim {
|
||||||
|
0% {
|
||||||
|
display: none;
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
1% {
|
||||||
|
display: block;
|
||||||
|
opacity: 0;
|
||||||
|
transform: scale(0);
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
opacity: 1;
|
||||||
|
transform: scale(1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@keyframes blinkingText {
|
||||||
|
0%{ color: $themeColor-Light; }
|
||||||
|
49%{ color: transparent; }
|
||||||
|
50%{ color: transparent; }
|
||||||
|
99%{ color:transparent; }
|
||||||
|
100%{ color: $themeColor-Light; }
|
||||||
|
}
|
||||||
|
|
||||||
|
/* --------------------------------------------------
|
||||||
|
OVERRIDES
|
||||||
|
--------------------------------------------------*/
|
||||||
|
.btn:not(.featureRequest) {
|
||||||
|
background-color: $theme-supplementer;
|
||||||
|
color: $themeColor-Dark
|
||||||
|
}
|
||||||
|
|
||||||
|
#content #header .navbar {
|
||||||
|
width: 96%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar-form {
|
||||||
|
width: 88%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-control {
|
||||||
|
padding: .6rem 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.container-fluid {
|
||||||
|
padding-left: 0.3em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-group {
|
||||||
|
flex-direction:column;
|
||||||
|
}
|
||||||
|
|
||||||
|
#command.form-control {
|
||||||
|
width: 92%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ml-auto {
|
||||||
|
margin-left: 0!important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-info {
|
||||||
|
border-color: orange;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-info:hover {
|
||||||
|
border-color: orange;
|
||||||
|
opacity: 1
|
||||||
|
}
|
||||||
10
src/app/app.component.ts
Normal file
10
src/app/app.component.ts
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
import { Component } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-root',
|
||||||
|
templateUrl: './app.component.html',
|
||||||
|
styleUrls: ['./app.component.scss']
|
||||||
|
})
|
||||||
|
export class AppComponent {
|
||||||
|
title = 'app';
|
||||||
|
}
|
||||||
65
src/app/app.module.ts
Normal file
65
src/app/app.module.ts
Normal file
@@ -0,0 +1,65 @@
|
|||||||
|
import { BrowserModule } from '@angular/platform-browser';
|
||||||
|
import { NgModule } from '@angular/core';
|
||||||
|
import { FormsModule } from '@angular/forms';
|
||||||
|
import { HttpModule } from '@angular/http';
|
||||||
|
|
||||||
|
import { AppRoutingModule } from './app-routing/app-routing.module';
|
||||||
|
|
||||||
|
import { AppComponent } from './app.component';
|
||||||
|
import { SideBarComponent } from './side-bar/side-bar.component';
|
||||||
|
import { FooterComponent } from './footer/footer.component';
|
||||||
|
import { SideBarTabComponent } from './side-bar/side-bar-tab/side-bar-tab.component';
|
||||||
|
import { ContentComponent } from './content/content.component';
|
||||||
|
import { ContactComponent } from './contact/contact.component';
|
||||||
|
import { HeaderComponent } from './content/header/header.component';
|
||||||
|
import { SearchComponent } from './content/header/search/search.component';
|
||||||
|
import { ToolsComponent } from './content/header/tools/tools.component';
|
||||||
|
import { UploadComponent } from './content/header/tools/upload/upload.component';
|
||||||
|
import { ImageContainerComponent } from './content/image-container/image-container.component';
|
||||||
|
import { ImageComponent } from './content/image-container/image/image.component';
|
||||||
|
import { VerticalImageComponent } from './content/image-container/image/vertical-image/vertical-image.component';
|
||||||
|
import { HorizontalImageComponent } from './content/image-container/image/horizontal-image/horizontal-image.component';
|
||||||
|
import { PictureComponent } from './content/image-container/image/picture/picture.component';
|
||||||
|
import { DescriptionComponent } from './content/image-container/image/description/description.component';
|
||||||
|
import { PaginationComponent } from './content/pagination/pagination.component';
|
||||||
|
import { ImageViewerComponent } from './content/image-viewer/image-viewer.component';
|
||||||
|
import { ImageSliderComponent } from './content/image-viewer/image-slider/image-slider.component';
|
||||||
|
import { PageNotFoundComponent } from './page-not-found/page-not-found.component';
|
||||||
|
import { LoginComponent } from './login/login.component';
|
||||||
|
import { HomeComponent } from './content/image-container/home/home.component';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
declarations: [
|
||||||
|
AppComponent,
|
||||||
|
SideBarComponent,
|
||||||
|
HeaderComponent,
|
||||||
|
FooterComponent,
|
||||||
|
SideBarTabComponent,
|
||||||
|
SearchComponent,
|
||||||
|
ToolsComponent,
|
||||||
|
ContentComponent,
|
||||||
|
ContactComponent,
|
||||||
|
UploadComponent,
|
||||||
|
ImageContainerComponent,
|
||||||
|
ImageComponent,
|
||||||
|
PictureComponent,
|
||||||
|
DescriptionComponent,
|
||||||
|
VerticalImageComponent,
|
||||||
|
HorizontalImageComponent,
|
||||||
|
PaginationComponent,
|
||||||
|
ImageViewerComponent,
|
||||||
|
ImageSliderComponent,
|
||||||
|
PageNotFoundComponent,
|
||||||
|
LoginComponent,
|
||||||
|
HomeComponent
|
||||||
|
],
|
||||||
|
imports: [
|
||||||
|
BrowserModule,
|
||||||
|
HttpModule,
|
||||||
|
FormsModule,
|
||||||
|
AppRoutingModule
|
||||||
|
],
|
||||||
|
providers: [],
|
||||||
|
bootstrap: [AppComponent]
|
||||||
|
})
|
||||||
|
export class AppModule { }
|
||||||
3
src/app/contact/contact.component.html
Normal file
3
src/app/contact/contact.component.html
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<p>
|
||||||
|
contact works!
|
||||||
|
</p>
|
||||||
0
src/app/contact/contact.component.scss
Normal file
0
src/app/contact/contact.component.scss
Normal file
15
src/app/contact/contact.component.ts
Normal file
15
src/app/contact/contact.component.ts
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
import { Component, OnInit } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-contact',
|
||||||
|
templateUrl: './contact.component.html',
|
||||||
|
styleUrls: ['./contact.component.scss']
|
||||||
|
})
|
||||||
|
export class ContactComponent implements OnInit {
|
||||||
|
|
||||||
|
constructor() { }
|
||||||
|
|
||||||
|
ngOnInit() {
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
0
src/app/content/content.component.css
Normal file
0
src/app/content/content.component.css
Normal file
3
src/app/content/content.component.html
Normal file
3
src/app/content/content.component.html
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<p>
|
||||||
|
content works!
|
||||||
|
</p>
|
||||||
15
src/app/content/content.component.ts
Normal file
15
src/app/content/content.component.ts
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
import { Component, OnInit } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-content',
|
||||||
|
templateUrl: './content.component.html',
|
||||||
|
styleUrls: ['./content.component.css']
|
||||||
|
})
|
||||||
|
export class ContentComponent implements OnInit {
|
||||||
|
|
||||||
|
constructor() { }
|
||||||
|
|
||||||
|
ngOnInit() {
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
1
src/app/content/header/header.component.html
Normal file
1
src/app/content/header/header.component.html
Normal file
@@ -0,0 +1 @@
|
|||||||
|
<app-search></app-search>
|
||||||
462
src/app/content/header/header.component.scss
Normal file
462
src/app/content/header/header.component.scss
Normal file
@@ -0,0 +1,462 @@
|
|||||||
|
$themeColor-Light: #EEE2DC;
|
||||||
|
// $themeColor-Dark:#252525;
|
||||||
|
$themeColor-Dark:#E3E2DF;
|
||||||
|
$theme-font: verdana, sans-serif;
|
||||||
|
// $theme-supplementer: #f39c12;
|
||||||
|
$theme-supplementer: #5D001E;
|
||||||
|
|
||||||
|
// app-root {
|
||||||
|
// font-family: 'Poppins', sans-serif;
|
||||||
|
// background-color: $themeColor-Dark;
|
||||||
|
// }
|
||||||
|
|
||||||
|
:host {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
font-family: 'Poppins', sans-serif;
|
||||||
|
font-size: 1.1em;
|
||||||
|
font-weight: 300;
|
||||||
|
line-height: 1.7em;
|
||||||
|
// color: #999;
|
||||||
|
}
|
||||||
|
|
||||||
|
a,
|
||||||
|
a:hover,
|
||||||
|
a:focus {
|
||||||
|
color: inherit;
|
||||||
|
text-decoration: none;
|
||||||
|
transition: all 0.3s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar {
|
||||||
|
padding: 15px 10px;
|
||||||
|
background: #fff;
|
||||||
|
border: none;
|
||||||
|
border-radius: 0 5px 5px 0;
|
||||||
|
margin-bottom: 40px;
|
||||||
|
box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar-btn {
|
||||||
|
box-shadow: none;
|
||||||
|
outline: none !important;
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.line {
|
||||||
|
width: 100%;
|
||||||
|
height: 1px;
|
||||||
|
border-bottom: 1px dashed #ddd;
|
||||||
|
margin: 20px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
i,
|
||||||
|
span {
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---------------------------------------------------
|
||||||
|
SIDEBAR STYLE
|
||||||
|
----------------------------------------------------- */
|
||||||
|
|
||||||
|
.wrapper {
|
||||||
|
display: flex;
|
||||||
|
align-items: stretch;
|
||||||
|
font-family: 'Poppins', sans-serif;
|
||||||
|
background-color: $themeColor-Dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar {
|
||||||
|
min-width: 250px;
|
||||||
|
max-width: 250px;
|
||||||
|
background: $theme-supplementer;
|
||||||
|
color: $themeColor-Dark;
|
||||||
|
transition: all 0.3s;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar.active {
|
||||||
|
min-width: 80px;
|
||||||
|
max-width: 80px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar.active .sidebar-header h3,
|
||||||
|
#sidebar.active .CTAs {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar-header h3 {
|
||||||
|
display: inline;
|
||||||
|
padding-left: 0.6em;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar.active .sidebar-header strong {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar ul li a {
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar.active ul li a {
|
||||||
|
padding: 20px 10px;
|
||||||
|
text-align: center;
|
||||||
|
font-size: 0.85em;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar.active ul li a i {
|
||||||
|
margin-right: 0;
|
||||||
|
display: block;
|
||||||
|
font-size: 1.8em;
|
||||||
|
margin-bottom: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar.active ul ul a {
|
||||||
|
padding: 10px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar.active .dropdown-toggle::after {
|
||||||
|
top: auto;
|
||||||
|
bottom: 10px;
|
||||||
|
right: 50%;
|
||||||
|
-webkit-transform: translateX(50%);
|
||||||
|
-ms-transform: translateX(50%);
|
||||||
|
transform: translateX(50%);
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar .sidebar-header {
|
||||||
|
padding: 20px;
|
||||||
|
background:$themeColor-Dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar .sidebar-header strong {
|
||||||
|
display: none;
|
||||||
|
font-size: 1.8em;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar ul.components {
|
||||||
|
padding: 20px 0;
|
||||||
|
border-bottom: 3px solid $themeColor-Dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar ul li a {
|
||||||
|
padding: 10px;
|
||||||
|
font-size: 1.1em;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar ul li a:hover {
|
||||||
|
color: $theme-supplementer;
|
||||||
|
background: $themeColor-Light;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar ul li a i {
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar ul li.active>a,
|
||||||
|
a[aria-expanded="true"] {
|
||||||
|
color: $theme-supplementer;
|
||||||
|
background:$themeColor-Dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
a[data-toggle="collapse"] {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dropdown-toggle::after {
|
||||||
|
display: block;
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
right: 20px;
|
||||||
|
transform: translateY(-50%);
|
||||||
|
}
|
||||||
|
|
||||||
|
ul ul a {
|
||||||
|
font-size: 0.9em !important;
|
||||||
|
padding-left: 30px !important;
|
||||||
|
background: white;
|
||||||
|
font-weight: bolder;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul.CTAs {
|
||||||
|
padding: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul.CTAs a {
|
||||||
|
text-align: center;
|
||||||
|
font-size: 0.9em !important;
|
||||||
|
display: block;
|
||||||
|
border-radius: 5px;
|
||||||
|
margin-bottom: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
a.download {
|
||||||
|
background: #fff;
|
||||||
|
color: #7386D5;
|
||||||
|
}
|
||||||
|
|
||||||
|
a.article,
|
||||||
|
a.article:hover {
|
||||||
|
background: #6d7fcc !important;
|
||||||
|
color: #fff !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---------------------------------------------------
|
||||||
|
CONTENT STYLE
|
||||||
|
----------------------------------------------------- */
|
||||||
|
|
||||||
|
#content {
|
||||||
|
width: 100%;
|
||||||
|
padding: 20px;
|
||||||
|
min-height: 100vh;
|
||||||
|
transition: all 0.3s;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---------------------------------------------------
|
||||||
|
MEDIAQUERIES
|
||||||
|
----------------------------------------------------- */
|
||||||
|
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
#sidebar {
|
||||||
|
min-width: 80px;
|
||||||
|
max-width: 80px;
|
||||||
|
text-align: center;
|
||||||
|
margin-left: -80px !important;
|
||||||
|
}
|
||||||
|
.dropdown-toggle::after {
|
||||||
|
top: auto;
|
||||||
|
bottom: 10px;
|
||||||
|
right: 50%;
|
||||||
|
-webkit-transform: translateX(50%);
|
||||||
|
-ms-transform: translateX(50%);
|
||||||
|
transform: translateX(50%);
|
||||||
|
}
|
||||||
|
#sidebar.active {
|
||||||
|
margin-left: 0 !important;
|
||||||
|
}
|
||||||
|
#sidebar .sidebar-header h3,
|
||||||
|
#sidebar .CTAs {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
#sidebar .sidebar-header strong {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
#sidebar ul li a {
|
||||||
|
padding: 20px 10px;
|
||||||
|
}
|
||||||
|
#sidebar ul li a span {
|
||||||
|
font-size: 0.85em;
|
||||||
|
}
|
||||||
|
#sidebar ul li a i {
|
||||||
|
margin-right: 0;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
#sidebar ul ul a {
|
||||||
|
padding: 10px !important;
|
||||||
|
}
|
||||||
|
#sidebar ul li a i {
|
||||||
|
font-size: 1.3em;
|
||||||
|
}
|
||||||
|
#sidebar {
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
#sidebarCollapse span {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.text-muted {
|
||||||
|
color: #bcb !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media(min-width: 576px) {
|
||||||
|
.card-group>.card:first-child {
|
||||||
|
border-top-right-radius: .25rem;
|
||||||
|
border-bottom-right-radius: .25rem;
|
||||||
|
}
|
||||||
|
.card-group>.card:not(:first-child):not(:last-child):not(:only-child) {
|
||||||
|
border-radius: .25rem;
|
||||||
|
}
|
||||||
|
.card-group>.card:last-child {
|
||||||
|
border-top-left-radius: .25rem;
|
||||||
|
border-bottom-left-radius: .25rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/* -------------------------------------------------
|
||||||
|
ADDITIONS
|
||||||
|
--------------------------------------------------*/
|
||||||
|
.hide {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.prompt {
|
||||||
|
display: flex;
|
||||||
|
width: 2em;
|
||||||
|
border-right: 1px solid #c99034;
|
||||||
|
// background-color: #f5d38b;
|
||||||
|
background-color: $theme-supplementer;
|
||||||
|
width: 4%;
|
||||||
|
margin-bottom: 40px;
|
||||||
|
border-radius: 4px 0 0 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.promptext {
|
||||||
|
animation:blinkingText 0.8s infinite;
|
||||||
|
// color: #975f04;
|
||||||
|
// color: $themeColor-Light;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 2em;
|
||||||
|
font: 1.5em bolder;
|
||||||
|
margin: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.good {
|
||||||
|
animation: anim .3s ease-in-out;
|
||||||
|
}
|
||||||
|
|
||||||
|
.repoLink {
|
||||||
|
color: #000;
|
||||||
|
font-weight: bolder;
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
.headerprompt {
|
||||||
|
display: flex;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.logotext {
|
||||||
|
color: $theme-supplementer;
|
||||||
|
}
|
||||||
|
|
||||||
|
#content nav div.collapse li a.nav-link i.far {
|
||||||
|
color: $theme-supplementer;
|
||||||
|
font-size: 1.8em;
|
||||||
|
padding: 0.2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
#loading-img {
|
||||||
|
background: url(http://preloaders.net/preloaders/360/Velocity.gif) center center no-repeat;
|
||||||
|
height: 100%;
|
||||||
|
z-index: 20;
|
||||||
|
}
|
||||||
|
|
||||||
|
.overlay {
|
||||||
|
background: #e9e9e9;
|
||||||
|
display: none;
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
opacity: 0.5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.loader {
|
||||||
|
border: 0px solid #f3f3f3;
|
||||||
|
border-radius: 50%;
|
||||||
|
border-top: 2px solid #3498db;
|
||||||
|
border-right: 2px solid #3498db;
|
||||||
|
width: 20px;
|
||||||
|
height: 20px;
|
||||||
|
-webkit-animation: spin 2s linear infinite; /* Safari */
|
||||||
|
animation: spin 2s linear infinite;
|
||||||
|
}
|
||||||
|
.card:not(.widget) {
|
||||||
|
background: linear-gradient(to right, white, lightblue)
|
||||||
|
}
|
||||||
|
.light-red {
|
||||||
|
// background:linear-gradient(white, lightblue);
|
||||||
|
background: linear-gradient(to right, white, #dfc99a)
|
||||||
|
}
|
||||||
|
|
||||||
|
// f3d98c
|
||||||
|
.featureRequest {
|
||||||
|
background-color : #007bff;
|
||||||
|
color: white;
|
||||||
|
font-size: 1.5em;
|
||||||
|
padding: 10px 20px;
|
||||||
|
border-radius: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#featureRequest {
|
||||||
|
position: fixed;
|
||||||
|
bottom: 2em;
|
||||||
|
right: 2.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes spin {
|
||||||
|
0% { transform: rotate(0deg); }
|
||||||
|
100% { transform: rotate(360deg); }
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes anim {
|
||||||
|
0% {
|
||||||
|
display: none;
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
1% {
|
||||||
|
display: block;
|
||||||
|
opacity: 0;
|
||||||
|
transform: scale(0);
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
opacity: 1;
|
||||||
|
transform: scale(1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@keyframes blinkingText {
|
||||||
|
0%{ color: $themeColor-Light; }
|
||||||
|
49%{ color: transparent; }
|
||||||
|
50%{ color: transparent; }
|
||||||
|
99%{ color:transparent; }
|
||||||
|
100%{ color: $themeColor-Light; }
|
||||||
|
}
|
||||||
|
|
||||||
|
/* --------------------------------------------------
|
||||||
|
OVERRIDES
|
||||||
|
--------------------------------------------------*/
|
||||||
|
.btn:not(.featureRequest) {
|
||||||
|
background-color: $theme-supplementer;
|
||||||
|
color: $themeColor-Dark
|
||||||
|
}
|
||||||
|
|
||||||
|
#content #header .navbar {
|
||||||
|
width: 96%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar-form {
|
||||||
|
width: 88%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-control {
|
||||||
|
padding: .6rem 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.container-fluid {
|
||||||
|
padding-left: 0.3em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-group {
|
||||||
|
flex-direction:column;
|
||||||
|
}
|
||||||
|
|
||||||
|
#command.form-control {
|
||||||
|
width: 92%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ml-auto {
|
||||||
|
margin-left: 0!important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-info {
|
||||||
|
border-color: orange;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-info:hover {
|
||||||
|
border-color: orange;
|
||||||
|
opacity: 1
|
||||||
|
}
|
||||||
15
src/app/content/header/header.component.ts
Normal file
15
src/app/content/header/header.component.ts
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
import { Component, OnInit } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-header',
|
||||||
|
templateUrl: './header.component.html',
|
||||||
|
styleUrls: ['./header.component.scss']
|
||||||
|
})
|
||||||
|
export class HeaderComponent implements OnInit {
|
||||||
|
|
||||||
|
constructor() { }
|
||||||
|
|
||||||
|
ngOnInit() {
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
31
src/app/content/header/search/search.component.html
Normal file
31
src/app/content/header/search/search.component.html
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
<div id="content">
|
||||||
|
<div id="header" class="headerprompt">
|
||||||
|
<div class="prompt">
|
||||||
|
<p class="promptext">$_</p>
|
||||||
|
</div>
|
||||||
|
<nav class="navbar navbar-expand-lg navbar-light bg-light">
|
||||||
|
<div class="container-fluid">
|
||||||
|
<input type="text" class="form-control" placeholder="What you need..." name="command" id="command">
|
||||||
|
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||||||
|
<ul class="nav navbar-nav ml-auto">
|
||||||
|
<li id="btnFavorites" class="nav-item">
|
||||||
|
<a class="nav-link" href="#">
|
||||||
|
<i class="far fa-star"></i>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li id="btnClearCommand" class="nav-item">
|
||||||
|
<a class="nav-link" href="#">
|
||||||
|
<i class="far fa-trash-alt"></i>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li id="btnFireCommand" class="nav-item">
|
||||||
|
<a class="nav-link" href="#">
|
||||||
|
<i class="far fa-paper-plane"></i>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
458
src/app/content/header/search/search.component.scss
Normal file
458
src/app/content/header/search/search.component.scss
Normal file
@@ -0,0 +1,458 @@
|
|||||||
|
$themeColor-Light: #EEE2DC;
|
||||||
|
// $themeColor-Dark:#252525;
|
||||||
|
$themeColor-Dark:#E3E2DF;
|
||||||
|
$theme-font: verdana, sans-serif;
|
||||||
|
// $theme-supplementer: #f39c12;
|
||||||
|
$theme-supplementer: #5D001E;
|
||||||
|
|
||||||
|
// app-root {
|
||||||
|
// font-family: 'Poppins', sans-serif;
|
||||||
|
// background-color: $themeColor-Dark;
|
||||||
|
// }
|
||||||
|
|
||||||
|
p {
|
||||||
|
font-family: 'Poppins', sans-serif;
|
||||||
|
font-size: 1.1em;
|
||||||
|
font-weight: 300;
|
||||||
|
line-height: 1.7em;
|
||||||
|
// color: #999;
|
||||||
|
}
|
||||||
|
|
||||||
|
a,
|
||||||
|
a:hover,
|
||||||
|
a:focus {
|
||||||
|
color: inherit;
|
||||||
|
text-decoration: none;
|
||||||
|
transition: all 0.3s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar {
|
||||||
|
padding: 15px 10px;
|
||||||
|
background: #fff;
|
||||||
|
border: none;
|
||||||
|
border-radius: 0 5px 5px 0;
|
||||||
|
margin-bottom: 40px;
|
||||||
|
box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar-btn {
|
||||||
|
box-shadow: none;
|
||||||
|
outline: none !important;
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.line {
|
||||||
|
width: 100%;
|
||||||
|
height: 1px;
|
||||||
|
border-bottom: 1px dashed #ddd;
|
||||||
|
margin: 20px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
i,
|
||||||
|
span {
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---------------------------------------------------
|
||||||
|
SIDEBAR STYLE
|
||||||
|
----------------------------------------------------- */
|
||||||
|
|
||||||
|
.wrapper {
|
||||||
|
display: flex;
|
||||||
|
align-items: stretch;
|
||||||
|
font-family: 'Poppins', sans-serif;
|
||||||
|
background-color: $themeColor-Dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar {
|
||||||
|
min-width: 250px;
|
||||||
|
max-width: 250px;
|
||||||
|
background: $theme-supplementer;
|
||||||
|
color: $themeColor-Dark;
|
||||||
|
transition: all 0.3s;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar.active {
|
||||||
|
min-width: 80px;
|
||||||
|
max-width: 80px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar.active .sidebar-header h3,
|
||||||
|
#sidebar.active .CTAs {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar-header h3 {
|
||||||
|
display: inline;
|
||||||
|
padding-left: 0.6em;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar.active .sidebar-header strong {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar ul li a {
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar.active ul li a {
|
||||||
|
padding: 20px 10px;
|
||||||
|
text-align: center;
|
||||||
|
font-size: 0.85em;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar.active ul li a i {
|
||||||
|
margin-right: 0;
|
||||||
|
display: block;
|
||||||
|
font-size: 1.8em;
|
||||||
|
margin-bottom: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar.active ul ul a {
|
||||||
|
padding: 10px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar.active .dropdown-toggle::after {
|
||||||
|
top: auto;
|
||||||
|
bottom: 10px;
|
||||||
|
right: 50%;
|
||||||
|
-webkit-transform: translateX(50%);
|
||||||
|
-ms-transform: translateX(50%);
|
||||||
|
transform: translateX(50%);
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar .sidebar-header {
|
||||||
|
padding: 20px;
|
||||||
|
background:$themeColor-Dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar .sidebar-header strong {
|
||||||
|
display: none;
|
||||||
|
font-size: 1.8em;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar ul.components {
|
||||||
|
padding: 20px 0;
|
||||||
|
border-bottom: 3px solid $themeColor-Dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar ul li a {
|
||||||
|
padding: 10px;
|
||||||
|
font-size: 1.1em;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar ul li a:hover {
|
||||||
|
color: $theme-supplementer;
|
||||||
|
background: $themeColor-Light;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar ul li a i {
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar ul li.active>a,
|
||||||
|
a[aria-expanded="true"] {
|
||||||
|
color: $theme-supplementer;
|
||||||
|
background:$themeColor-Dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
a[data-toggle="collapse"] {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dropdown-toggle::after {
|
||||||
|
display: block;
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
right: 20px;
|
||||||
|
transform: translateY(-50%);
|
||||||
|
}
|
||||||
|
|
||||||
|
ul ul a {
|
||||||
|
font-size: 0.9em !important;
|
||||||
|
padding-left: 30px !important;
|
||||||
|
background: white;
|
||||||
|
font-weight: bolder;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul.CTAs {
|
||||||
|
padding: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul.CTAs a {
|
||||||
|
text-align: center;
|
||||||
|
font-size: 0.9em !important;
|
||||||
|
display: block;
|
||||||
|
border-radius: 5px;
|
||||||
|
margin-bottom: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
a.download {
|
||||||
|
background: #fff;
|
||||||
|
color: #7386D5;
|
||||||
|
}
|
||||||
|
|
||||||
|
a.article,
|
||||||
|
a.article:hover {
|
||||||
|
background: #6d7fcc !important;
|
||||||
|
color: #fff !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---------------------------------------------------
|
||||||
|
CONTENT STYLE
|
||||||
|
----------------------------------------------------- */
|
||||||
|
|
||||||
|
#content {
|
||||||
|
width: 100%;
|
||||||
|
padding: 20px;
|
||||||
|
min-height: 100vh;
|
||||||
|
transition: all 0.3s;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---------------------------------------------------
|
||||||
|
MEDIAQUERIES
|
||||||
|
----------------------------------------------------- */
|
||||||
|
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
#sidebar {
|
||||||
|
min-width: 80px;
|
||||||
|
max-width: 80px;
|
||||||
|
text-align: center;
|
||||||
|
margin-left: -80px !important;
|
||||||
|
}
|
||||||
|
.dropdown-toggle::after {
|
||||||
|
top: auto;
|
||||||
|
bottom: 10px;
|
||||||
|
right: 50%;
|
||||||
|
-webkit-transform: translateX(50%);
|
||||||
|
-ms-transform: translateX(50%);
|
||||||
|
transform: translateX(50%);
|
||||||
|
}
|
||||||
|
#sidebar.active {
|
||||||
|
margin-left: 0 !important;
|
||||||
|
}
|
||||||
|
#sidebar .sidebar-header h3,
|
||||||
|
#sidebar .CTAs {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
#sidebar .sidebar-header strong {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
#sidebar ul li a {
|
||||||
|
padding: 20px 10px;
|
||||||
|
}
|
||||||
|
#sidebar ul li a span {
|
||||||
|
font-size: 0.85em;
|
||||||
|
}
|
||||||
|
#sidebar ul li a i {
|
||||||
|
margin-right: 0;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
#sidebar ul ul a {
|
||||||
|
padding: 10px !important;
|
||||||
|
}
|
||||||
|
#sidebar ul li a i {
|
||||||
|
font-size: 1.3em;
|
||||||
|
}
|
||||||
|
#sidebar {
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
#sidebarCollapse span {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.text-muted {
|
||||||
|
color: #bcb !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media(min-width: 576px) {
|
||||||
|
.card-group>.card:first-child {
|
||||||
|
border-top-right-radius: .25rem;
|
||||||
|
border-bottom-right-radius: .25rem;
|
||||||
|
}
|
||||||
|
.card-group>.card:not(:first-child):not(:last-child):not(:only-child) {
|
||||||
|
border-radius: .25rem;
|
||||||
|
}
|
||||||
|
.card-group>.card:last-child {
|
||||||
|
border-top-left-radius: .25rem;
|
||||||
|
border-bottom-left-radius: .25rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/* -------------------------------------------------
|
||||||
|
ADDITIONS
|
||||||
|
--------------------------------------------------*/
|
||||||
|
.hide {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.prompt {
|
||||||
|
display: flex;
|
||||||
|
width: 2em;
|
||||||
|
border-right: 1px solid #c99034;
|
||||||
|
// background-color: #f5d38b;
|
||||||
|
background-color: $theme-supplementer;
|
||||||
|
width: 4%;
|
||||||
|
margin-bottom: 40px;
|
||||||
|
border-radius: 4px 0 0 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.promptext {
|
||||||
|
animation:blinkingText 0.8s infinite;
|
||||||
|
// color: #975f04;
|
||||||
|
// color: $themeColor-Light;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 2em;
|
||||||
|
font: 1.5em bolder;
|
||||||
|
margin: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.good {
|
||||||
|
animation: anim .3s ease-in-out;
|
||||||
|
}
|
||||||
|
|
||||||
|
.repoLink {
|
||||||
|
color: #000;
|
||||||
|
font-weight: bolder;
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
.headerprompt {
|
||||||
|
display: flex;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.logotext {
|
||||||
|
color: $theme-supplementer;
|
||||||
|
}
|
||||||
|
|
||||||
|
#content nav div.collapse li a.nav-link i.far {
|
||||||
|
color: $theme-supplementer;
|
||||||
|
font-size: 1.8em;
|
||||||
|
padding: 0.2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
#loading-img {
|
||||||
|
background: url(http://preloaders.net/preloaders/360/Velocity.gif) center center no-repeat;
|
||||||
|
height: 100%;
|
||||||
|
z-index: 20;
|
||||||
|
}
|
||||||
|
|
||||||
|
.overlay {
|
||||||
|
background: #e9e9e9;
|
||||||
|
display: none;
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
opacity: 0.5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.loader {
|
||||||
|
border: 0px solid #f3f3f3;
|
||||||
|
border-radius: 50%;
|
||||||
|
border-top: 2px solid #3498db;
|
||||||
|
border-right: 2px solid #3498db;
|
||||||
|
width: 20px;
|
||||||
|
height: 20px;
|
||||||
|
-webkit-animation: spin 2s linear infinite; /* Safari */
|
||||||
|
animation: spin 2s linear infinite;
|
||||||
|
}
|
||||||
|
.card:not(.widget) {
|
||||||
|
background: linear-gradient(to right, white, lightblue)
|
||||||
|
}
|
||||||
|
.light-red {
|
||||||
|
// background:linear-gradient(white, lightblue);
|
||||||
|
background: linear-gradient(to right, white, #dfc99a)
|
||||||
|
}
|
||||||
|
|
||||||
|
// f3d98c
|
||||||
|
.featureRequest {
|
||||||
|
background-color : #007bff;
|
||||||
|
color: white;
|
||||||
|
font-size: 1.5em;
|
||||||
|
padding: 10px 20px;
|
||||||
|
border-radius: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#featureRequest {
|
||||||
|
position: fixed;
|
||||||
|
bottom: 2em;
|
||||||
|
right: 2.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes spin {
|
||||||
|
0% { transform: rotate(0deg); }
|
||||||
|
100% { transform: rotate(360deg); }
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes anim {
|
||||||
|
0% {
|
||||||
|
display: none;
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
1% {
|
||||||
|
display: block;
|
||||||
|
opacity: 0;
|
||||||
|
transform: scale(0);
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
opacity: 1;
|
||||||
|
transform: scale(1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@keyframes blinkingText {
|
||||||
|
0%{ color: $themeColor-Light; }
|
||||||
|
49%{ color: transparent; }
|
||||||
|
50%{ color: transparent; }
|
||||||
|
99%{ color:transparent; }
|
||||||
|
100%{ color: $themeColor-Light; }
|
||||||
|
}
|
||||||
|
|
||||||
|
/* --------------------------------------------------
|
||||||
|
OVERRIDES
|
||||||
|
--------------------------------------------------*/
|
||||||
|
.btn:not(.featureRequest) {
|
||||||
|
background-color: $theme-supplementer;
|
||||||
|
color: $themeColor-Dark
|
||||||
|
}
|
||||||
|
|
||||||
|
#content #header .navbar {
|
||||||
|
width: 96%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar-form {
|
||||||
|
width: 88%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-control {
|
||||||
|
padding: .6rem 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.container-fluid {
|
||||||
|
padding-left: 0.3em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-group {
|
||||||
|
flex-direction:column;
|
||||||
|
}
|
||||||
|
|
||||||
|
#command.form-control {
|
||||||
|
width: 92%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ml-auto {
|
||||||
|
margin-left: 0!important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-info {
|
||||||
|
border-color: orange;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-info:hover {
|
||||||
|
border-color: orange;
|
||||||
|
opacity: 1
|
||||||
|
}
|
||||||
15
src/app/content/header/search/search.component.ts
Normal file
15
src/app/content/header/search/search.component.ts
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
import { Component, OnInit } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-search',
|
||||||
|
templateUrl: './search.component.html',
|
||||||
|
styleUrls: ['./search.component.scss']
|
||||||
|
})
|
||||||
|
export class SearchComponent implements OnInit {
|
||||||
|
|
||||||
|
constructor() { }
|
||||||
|
|
||||||
|
ngOnInit() {
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
0
src/app/content/header/tools/tools.component.css
Normal file
0
src/app/content/header/tools/tools.component.css
Normal file
3
src/app/content/header/tools/tools.component.html
Normal file
3
src/app/content/header/tools/tools.component.html
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<p>
|
||||||
|
tools works!
|
||||||
|
</p>
|
||||||
15
src/app/content/header/tools/tools.component.ts
Normal file
15
src/app/content/header/tools/tools.component.ts
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
import { Component, OnInit } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-tools',
|
||||||
|
templateUrl: './tools.component.html',
|
||||||
|
styleUrls: ['./tools.component.css']
|
||||||
|
})
|
||||||
|
export class ToolsComponent implements OnInit {
|
||||||
|
|
||||||
|
constructor() { }
|
||||||
|
|
||||||
|
ngOnInit() {
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
import { Injectable } from '@angular/core';
|
||||||
|
|
||||||
|
@Injectable({
|
||||||
|
providedIn: 'root'
|
||||||
|
})
|
||||||
|
export class UploadService {
|
||||||
|
|
||||||
|
constructor() { }
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
<p>
|
||||||
|
upload works!
|
||||||
|
</p>
|
||||||
15
src/app/content/header/tools/upload/upload.component.ts
Normal file
15
src/app/content/header/tools/upload/upload.component.ts
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
import { Component, OnInit } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-upload',
|
||||||
|
templateUrl: './upload.component.html',
|
||||||
|
styleUrls: ['./upload.component.css']
|
||||||
|
})
|
||||||
|
export class UploadComponent implements OnInit {
|
||||||
|
|
||||||
|
constructor() { }
|
||||||
|
|
||||||
|
ngOnInit() {
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
3
src/app/content/image-container/home/home.component.html
Normal file
3
src/app/content/image-container/home/home.component.html
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<p>
|
||||||
|
home works!
|
||||||
|
</p>
|
||||||
15
src/app/content/image-container/home/home.component.ts
Normal file
15
src/app/content/image-container/home/home.component.ts
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
import { Component, OnInit } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-home',
|
||||||
|
templateUrl: './home.component.html',
|
||||||
|
styleUrls: ['./home.component.scss']
|
||||||
|
})
|
||||||
|
export class HomeComponent implements OnInit {
|
||||||
|
|
||||||
|
constructor() { }
|
||||||
|
|
||||||
|
ngOnInit() {
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
<p>
|
||||||
|
image-container works!
|
||||||
|
</p>
|
||||||
15
src/app/content/image-container/image-container.component.ts
Normal file
15
src/app/content/image-container/image-container.component.ts
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
import { Component, OnInit } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-image-container',
|
||||||
|
templateUrl: './image-container.component.html',
|
||||||
|
styleUrls: ['./image-container.component.css']
|
||||||
|
})
|
||||||
|
export class ImageContainerComponent implements OnInit {
|
||||||
|
|
||||||
|
constructor() { }
|
||||||
|
|
||||||
|
ngOnInit() {
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
<p>
|
||||||
|
description works!
|
||||||
|
</p>
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
import { Component, OnInit } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-description',
|
||||||
|
templateUrl: './description.component.html',
|
||||||
|
styleUrls: ['./description.component.css']
|
||||||
|
})
|
||||||
|
export class DescriptionComponent implements OnInit {
|
||||||
|
|
||||||
|
constructor() { }
|
||||||
|
|
||||||
|
ngOnInit() {
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
<p>
|
||||||
|
horizontal-image works!
|
||||||
|
</p>
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
import { Component, OnInit } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-horizontal-image',
|
||||||
|
templateUrl: './horizontal-image.component.html',
|
||||||
|
styleUrls: ['./horizontal-image.component.css']
|
||||||
|
})
|
||||||
|
export class HorizontalImageComponent implements OnInit {
|
||||||
|
|
||||||
|
constructor() { }
|
||||||
|
|
||||||
|
ngOnInit() {
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
<p>
|
||||||
|
image works!
|
||||||
|
</p>
|
||||||
15
src/app/content/image-container/image/image.component.ts
Normal file
15
src/app/content/image-container/image/image.component.ts
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
import { Component, OnInit } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-image',
|
||||||
|
templateUrl: './image.component.html',
|
||||||
|
styleUrls: ['./image.component.css']
|
||||||
|
})
|
||||||
|
export class ImageComponent implements OnInit {
|
||||||
|
|
||||||
|
constructor() { }
|
||||||
|
|
||||||
|
ngOnInit() {
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
<p>
|
||||||
|
picture works!
|
||||||
|
</p>
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
import { Component, OnInit } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-picture',
|
||||||
|
templateUrl: './picture.component.html',
|
||||||
|
styleUrls: ['./picture.component.css']
|
||||||
|
})
|
||||||
|
export class PictureComponent implements OnInit {
|
||||||
|
|
||||||
|
constructor() { }
|
||||||
|
|
||||||
|
ngOnInit() {
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
<p>
|
||||||
|
vertical-image works!
|
||||||
|
</p>
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
import { Component, OnInit } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-vertical-image',
|
||||||
|
templateUrl: './vertical-image.component.html',
|
||||||
|
styleUrls: ['./vertical-image.component.css']
|
||||||
|
})
|
||||||
|
export class VerticalImageComponent implements OnInit {
|
||||||
|
|
||||||
|
constructor() { }
|
||||||
|
|
||||||
|
ngOnInit() {
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
<p>
|
||||||
|
image-slider works!
|
||||||
|
</p>
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
import { Component, OnInit } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-image-slider',
|
||||||
|
templateUrl: './image-slider.component.html',
|
||||||
|
styleUrls: ['./image-slider.component.css']
|
||||||
|
})
|
||||||
|
export class ImageSliderComponent implements OnInit {
|
||||||
|
|
||||||
|
constructor() { }
|
||||||
|
|
||||||
|
ngOnInit() {
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
3
src/app/content/image-viewer/image-viewer.component.html
Normal file
3
src/app/content/image-viewer/image-viewer.component.html
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<p>
|
||||||
|
image-viewer works!
|
||||||
|
</p>
|
||||||
15
src/app/content/image-viewer/image-viewer.component.ts
Normal file
15
src/app/content/image-viewer/image-viewer.component.ts
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
import { Component, OnInit } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-image-viewer',
|
||||||
|
templateUrl: './image-viewer.component.html',
|
||||||
|
styleUrls: ['./image-viewer.component.css']
|
||||||
|
})
|
||||||
|
export class ImageViewerComponent implements OnInit {
|
||||||
|
|
||||||
|
constructor() { }
|
||||||
|
|
||||||
|
ngOnInit() {
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
3
src/app/content/image-viewer/image/image.component.html
Normal file
3
src/app/content/image-viewer/image/image.component.html
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<p>
|
||||||
|
image works!
|
||||||
|
</p>
|
||||||
15
src/app/content/image-viewer/image/image.component.ts
Normal file
15
src/app/content/image-viewer/image/image.component.ts
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
import { Component, OnInit } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-image',
|
||||||
|
templateUrl: './image.component.html',
|
||||||
|
styleUrls: ['./image.component.css']
|
||||||
|
})
|
||||||
|
export class ImageComponent implements OnInit {
|
||||||
|
|
||||||
|
constructor() { }
|
||||||
|
|
||||||
|
ngOnInit() {
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
0
src/app/content/pagination/pagination.component.css
Normal file
0
src/app/content/pagination/pagination.component.css
Normal file
3
src/app/content/pagination/pagination.component.html
Normal file
3
src/app/content/pagination/pagination.component.html
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<p>
|
||||||
|
pagination works!
|
||||||
|
</p>
|
||||||
15
src/app/content/pagination/pagination.component.ts
Normal file
15
src/app/content/pagination/pagination.component.ts
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
import { Component, OnInit } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-pagination',
|
||||||
|
templateUrl: './pagination.component.html',
|
||||||
|
styleUrls: ['./pagination.component.css']
|
||||||
|
})
|
||||||
|
export class PaginationComponent implements OnInit {
|
||||||
|
|
||||||
|
constructor() { }
|
||||||
|
|
||||||
|
ngOnInit() {
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
0
src/app/footer/footer.component.css
Normal file
0
src/app/footer/footer.component.css
Normal file
3
src/app/footer/footer.component.html
Normal file
3
src/app/footer/footer.component.html
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<p>
|
||||||
|
footer works!
|
||||||
|
</p>
|
||||||
15
src/app/footer/footer.component.ts
Normal file
15
src/app/footer/footer.component.ts
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
import { Component, OnInit } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-footer',
|
||||||
|
templateUrl: './footer.component.html',
|
||||||
|
styleUrls: ['./footer.component.css']
|
||||||
|
})
|
||||||
|
export class FooterComponent implements OnInit {
|
||||||
|
|
||||||
|
constructor() { }
|
||||||
|
|
||||||
|
ngOnInit() {
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
3
src/app/login/login.component.html
Normal file
3
src/app/login/login.component.html
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<p>
|
||||||
|
login works!
|
||||||
|
</p>
|
||||||
0
src/app/login/login.component.scss
Normal file
0
src/app/login/login.component.scss
Normal file
15
src/app/login/login.component.ts
Normal file
15
src/app/login/login.component.ts
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
import { Component, OnInit } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-login',
|
||||||
|
templateUrl: './login.component.html',
|
||||||
|
styleUrls: ['./login.component.scss']
|
||||||
|
})
|
||||||
|
export class LoginComponent implements OnInit {
|
||||||
|
|
||||||
|
constructor() { }
|
||||||
|
|
||||||
|
ngOnInit() {
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
3
src/app/page-not-found/page-not-found.component.html
Normal file
3
src/app/page-not-found/page-not-found.component.html
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<p>
|
||||||
|
page-not-found works!
|
||||||
|
</p>
|
||||||
15
src/app/page-not-found/page-not-found.component.ts
Normal file
15
src/app/page-not-found/page-not-found.component.ts
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
import { Component, OnInit } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-page-not-found',
|
||||||
|
templateUrl: './page-not-found.component.html',
|
||||||
|
styleUrls: ['./page-not-found.component.scss']
|
||||||
|
})
|
||||||
|
export class PageNotFoundComponent implements OnInit {
|
||||||
|
|
||||||
|
constructor() { }
|
||||||
|
|
||||||
|
ngOnInit() {
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
9
src/app/services/auth-guard.service.ts
Normal file
9
src/app/services/auth-guard.service.ts
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
import { Injectable } from '@angular/core';
|
||||||
|
|
||||||
|
@Injectable({
|
||||||
|
providedIn: 'root'
|
||||||
|
})
|
||||||
|
export class AuthGuardService {
|
||||||
|
|
||||||
|
constructor() { }
|
||||||
|
}
|
||||||
9
src/app/services/authentication.service.ts
Normal file
9
src/app/services/authentication.service.ts
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
import { Injectable } from '@angular/core';
|
||||||
|
|
||||||
|
@Injectable({
|
||||||
|
providedIn: 'root'
|
||||||
|
})
|
||||||
|
export class AuthenticationService {
|
||||||
|
|
||||||
|
constructor() { }
|
||||||
|
}
|
||||||
9
src/app/services/data.service.ts
Normal file
9
src/app/services/data.service.ts
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
import { Injectable } from '@angular/core';
|
||||||
|
|
||||||
|
@Injectable({
|
||||||
|
providedIn: 'root'
|
||||||
|
})
|
||||||
|
export class DataService {
|
||||||
|
|
||||||
|
constructor() { }
|
||||||
|
}
|
||||||
9
src/app/services/events.service.ts
Normal file
9
src/app/services/events.service.ts
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
import { Injectable } from '@angular/core';
|
||||||
|
|
||||||
|
@Injectable({
|
||||||
|
providedIn: 'root'
|
||||||
|
})
|
||||||
|
export class EventsService {
|
||||||
|
|
||||||
|
constructor() { }
|
||||||
|
}
|
||||||
9
src/app/services/image.service.ts
Normal file
9
src/app/services/image.service.ts
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
import { Injectable } from '@angular/core';
|
||||||
|
|
||||||
|
@Injectable({
|
||||||
|
providedIn: 'root'
|
||||||
|
})
|
||||||
|
export class ImageService {
|
||||||
|
|
||||||
|
constructor() { }
|
||||||
|
}
|
||||||
9
src/app/services/logging.service.ts
Normal file
9
src/app/services/logging.service.ts
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
import { Injectable } from '@angular/core';
|
||||||
|
|
||||||
|
@Injectable({
|
||||||
|
providedIn: 'root'
|
||||||
|
})
|
||||||
|
export class LoggingService {
|
||||||
|
|
||||||
|
constructor() { }
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
<li [ngClass]="{active: tab.activeClass != undefined}">
|
||||||
|
<a [routerLink]="tab.href">
|
||||||
|
<i [ngClass]="['fas', tab.tabImage]"></i>
|
||||||
|
<span class="hideable hide">{{tab.tabText}}</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
462
src/app/side-bar/side-bar-tab/side-bar-tab.component.scss
Normal file
462
src/app/side-bar/side-bar-tab/side-bar-tab.component.scss
Normal file
@@ -0,0 +1,462 @@
|
|||||||
|
$themeColor-Light: #EEE2DC;
|
||||||
|
// $themeColor-Dark:#252525;
|
||||||
|
$themeColor-Dark:#E3E2DF;
|
||||||
|
$theme-font: verdana, sans-serif;
|
||||||
|
// $theme-supplementer: #f39c12;
|
||||||
|
$theme-supplementer: #5D001E;
|
||||||
|
|
||||||
|
// app-root {
|
||||||
|
// font-family: 'Poppins', sans-serif;
|
||||||
|
// background-color: $themeColor-Dark;
|
||||||
|
// }
|
||||||
|
|
||||||
|
:host {
|
||||||
|
background: $theme-supplementer;
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
font-family: 'Poppins', sans-serif;
|
||||||
|
font-size: 1.1em;
|
||||||
|
font-weight: 300;
|
||||||
|
line-height: 1.7em;
|
||||||
|
// color: #999;
|
||||||
|
}
|
||||||
|
|
||||||
|
a,
|
||||||
|
a:hover,
|
||||||
|
a:focus {
|
||||||
|
color: inherit;
|
||||||
|
text-decoration: none;
|
||||||
|
transition: all 0.3s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar {
|
||||||
|
padding: 15px 10px;
|
||||||
|
background: #fff;
|
||||||
|
border: none;
|
||||||
|
border-radius: 0 5px 5px 0;
|
||||||
|
margin-bottom: 40px;
|
||||||
|
box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar-btn {
|
||||||
|
box-shadow: none;
|
||||||
|
outline: none !important;
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.line {
|
||||||
|
width: 100%;
|
||||||
|
height: 1px;
|
||||||
|
border-bottom: 1px dashed #ddd;
|
||||||
|
margin: 20px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
i,
|
||||||
|
span {
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---------------------------------------------------
|
||||||
|
SIDEBAR STYLE
|
||||||
|
----------------------------------------------------- */
|
||||||
|
|
||||||
|
.wrapper {
|
||||||
|
display: flex;
|
||||||
|
align-items: stretch;
|
||||||
|
font-family: 'Poppins', sans-serif;
|
||||||
|
background-color: $themeColor-Dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar {
|
||||||
|
min-width: 250px;
|
||||||
|
max-width: 250px;
|
||||||
|
background: $theme-supplementer;
|
||||||
|
color: $themeColor-Dark;
|
||||||
|
transition: all 0.3s;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar.active {
|
||||||
|
min-width: 80px;
|
||||||
|
max-width: 80px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar.active .sidebar-header h3,
|
||||||
|
#sidebar.active .CTAs {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar-header h3 {
|
||||||
|
display: inline;
|
||||||
|
padding-left: 0.6em;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar.active .sidebar-header strong {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar ul li a {
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar.active ul li a {
|
||||||
|
padding: 20px 10px;
|
||||||
|
text-align: center;
|
||||||
|
font-size: 0.85em;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar.active ul li a i {
|
||||||
|
margin-right: 0;
|
||||||
|
display: block;
|
||||||
|
font-size: 1.8em;
|
||||||
|
margin-bottom: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar.active ul ul a {
|
||||||
|
padding: 10px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar.active .dropdown-toggle::after {
|
||||||
|
top: auto;
|
||||||
|
bottom: 10px;
|
||||||
|
right: 50%;
|
||||||
|
-webkit-transform: translateX(50%);
|
||||||
|
-ms-transform: translateX(50%);
|
||||||
|
transform: translateX(50%);
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar .sidebar-header {
|
||||||
|
padding: 20px;
|
||||||
|
background:$themeColor-Dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar .sidebar-header strong {
|
||||||
|
display: none;
|
||||||
|
font-size: 1.8em;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar ul.components {
|
||||||
|
padding: 20px 0;
|
||||||
|
border-bottom: 3px solid $themeColor-Dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar ul li a {
|
||||||
|
padding: 10px;
|
||||||
|
font-size: 1.1em;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar ul li a:hover {
|
||||||
|
color: $theme-supplementer;
|
||||||
|
background: $themeColor-Light;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar ul li a i {
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar ul li.active>a,
|
||||||
|
a[aria-expanded="true"] {
|
||||||
|
color: $theme-supplementer;
|
||||||
|
background:$themeColor-Dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
a[data-toggle="collapse"] {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dropdown-toggle::after {
|
||||||
|
display: block;
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
right: 20px;
|
||||||
|
transform: translateY(-50%);
|
||||||
|
}
|
||||||
|
|
||||||
|
ul ul a {
|
||||||
|
font-size: 0.9em !important;
|
||||||
|
padding-left: 30px !important;
|
||||||
|
background: white;
|
||||||
|
font-weight: bolder;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul.CTAs {
|
||||||
|
padding: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul.CTAs a {
|
||||||
|
text-align: center;
|
||||||
|
font-size: 0.9em !important;
|
||||||
|
display: block;
|
||||||
|
border-radius: 5px;
|
||||||
|
margin-bottom: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
a.download {
|
||||||
|
background: #fff;
|
||||||
|
color: #7386D5;
|
||||||
|
}
|
||||||
|
|
||||||
|
a.article,
|
||||||
|
a.article:hover {
|
||||||
|
background: #6d7fcc !important;
|
||||||
|
color: #fff !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---------------------------------------------------
|
||||||
|
CONTENT STYLE
|
||||||
|
----------------------------------------------------- */
|
||||||
|
|
||||||
|
#content {
|
||||||
|
width: 100%;
|
||||||
|
padding: 20px;
|
||||||
|
min-height: 100vh;
|
||||||
|
transition: all 0.3s;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---------------------------------------------------
|
||||||
|
MEDIAQUERIES
|
||||||
|
----------------------------------------------------- */
|
||||||
|
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
#sidebar {
|
||||||
|
min-width: 80px;
|
||||||
|
max-width: 80px;
|
||||||
|
text-align: center;
|
||||||
|
margin-left: -80px !important;
|
||||||
|
}
|
||||||
|
.dropdown-toggle::after {
|
||||||
|
top: auto;
|
||||||
|
bottom: 10px;
|
||||||
|
right: 50%;
|
||||||
|
-webkit-transform: translateX(50%);
|
||||||
|
-ms-transform: translateX(50%);
|
||||||
|
transform: translateX(50%);
|
||||||
|
}
|
||||||
|
#sidebar.active {
|
||||||
|
margin-left: 0 !important;
|
||||||
|
}
|
||||||
|
#sidebar .sidebar-header h3,
|
||||||
|
#sidebar .CTAs {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
#sidebar .sidebar-header strong {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
#sidebar ul li a {
|
||||||
|
padding: 20px 10px;
|
||||||
|
}
|
||||||
|
#sidebar ul li a span {
|
||||||
|
font-size: 0.85em;
|
||||||
|
}
|
||||||
|
#sidebar ul li a i {
|
||||||
|
margin-right: 0;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
#sidebar ul ul a {
|
||||||
|
padding: 10px !important;
|
||||||
|
}
|
||||||
|
#sidebar ul li a i {
|
||||||
|
font-size: 1.3em;
|
||||||
|
}
|
||||||
|
#sidebar {
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
#sidebarCollapse span {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.text-muted {
|
||||||
|
color: #bcb !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media(min-width: 576px) {
|
||||||
|
.card-group>.card:first-child {
|
||||||
|
border-top-right-radius: .25rem;
|
||||||
|
border-bottom-right-radius: .25rem;
|
||||||
|
}
|
||||||
|
.card-group>.card:not(:first-child):not(:last-child):not(:only-child) {
|
||||||
|
border-radius: .25rem;
|
||||||
|
}
|
||||||
|
.card-group>.card:last-child {
|
||||||
|
border-top-left-radius: .25rem;
|
||||||
|
border-bottom-left-radius: .25rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/* -------------------------------------------------
|
||||||
|
ADDITIONS
|
||||||
|
--------------------------------------------------*/
|
||||||
|
.hide {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.prompt {
|
||||||
|
display: flex;
|
||||||
|
width: 2em;
|
||||||
|
border-right: 1px solid #c99034;
|
||||||
|
// background-color: #f5d38b;
|
||||||
|
background-color: $theme-supplementer;
|
||||||
|
width: 4%;
|
||||||
|
margin-bottom: 40px;
|
||||||
|
border-radius: 4px 0 0 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.promptext {
|
||||||
|
animation:blinkingText 0.8s infinite;
|
||||||
|
// color: #975f04;
|
||||||
|
// color: $themeColor-Light;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 2em;
|
||||||
|
font: 1.5em bolder;
|
||||||
|
margin: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.good {
|
||||||
|
animation: anim .3s ease-in-out;
|
||||||
|
}
|
||||||
|
|
||||||
|
.repoLink {
|
||||||
|
color: #000;
|
||||||
|
font-weight: bolder;
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
.headerprompt {
|
||||||
|
display: flex;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.logotext {
|
||||||
|
color: $theme-supplementer;
|
||||||
|
}
|
||||||
|
|
||||||
|
#content nav div.collapse li a.nav-link i.far {
|
||||||
|
color: $theme-supplementer;
|
||||||
|
font-size: 1.8em;
|
||||||
|
padding: 0.2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
#loading-img {
|
||||||
|
background: url(http://preloaders.net/preloaders/360/Velocity.gif) center center no-repeat;
|
||||||
|
height: 100%;
|
||||||
|
z-index: 20;
|
||||||
|
}
|
||||||
|
|
||||||
|
.overlay {
|
||||||
|
background: #e9e9e9;
|
||||||
|
display: none;
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
opacity: 0.5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.loader {
|
||||||
|
border: 0px solid #f3f3f3;
|
||||||
|
border-radius: 50%;
|
||||||
|
border-top: 2px solid #3498db;
|
||||||
|
border-right: 2px solid #3498db;
|
||||||
|
width: 20px;
|
||||||
|
height: 20px;
|
||||||
|
-webkit-animation: spin 2s linear infinite; /* Safari */
|
||||||
|
animation: spin 2s linear infinite;
|
||||||
|
}
|
||||||
|
.card:not(.widget) {
|
||||||
|
background: linear-gradient(to right, white, lightblue)
|
||||||
|
}
|
||||||
|
.light-red {
|
||||||
|
// background:linear-gradient(white, lightblue);
|
||||||
|
background: linear-gradient(to right, white, #dfc99a)
|
||||||
|
}
|
||||||
|
|
||||||
|
// f3d98c
|
||||||
|
.featureRequest {
|
||||||
|
background-color : #007bff;
|
||||||
|
color: white;
|
||||||
|
font-size: 1.5em;
|
||||||
|
padding: 10px 20px;
|
||||||
|
border-radius: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#featureRequest {
|
||||||
|
position: fixed;
|
||||||
|
bottom: 2em;
|
||||||
|
right: 2.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes spin {
|
||||||
|
0% { transform: rotate(0deg); }
|
||||||
|
100% { transform: rotate(360deg); }
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes anim {
|
||||||
|
0% {
|
||||||
|
display: none;
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
1% {
|
||||||
|
display: block;
|
||||||
|
opacity: 0;
|
||||||
|
transform: scale(0);
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
opacity: 1;
|
||||||
|
transform: scale(1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@keyframes blinkingText {
|
||||||
|
0%{ color: $themeColor-Light; }
|
||||||
|
49%{ color: transparent; }
|
||||||
|
50%{ color: transparent; }
|
||||||
|
99%{ color:transparent; }
|
||||||
|
100%{ color: $themeColor-Light; }
|
||||||
|
}
|
||||||
|
|
||||||
|
/* --------------------------------------------------
|
||||||
|
OVERRIDES
|
||||||
|
--------------------------------------------------*/
|
||||||
|
.btn:not(.featureRequest) {
|
||||||
|
background-color: $theme-supplementer;
|
||||||
|
color: $themeColor-Dark
|
||||||
|
}
|
||||||
|
|
||||||
|
#content #header .navbar {
|
||||||
|
width: 96%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar-form {
|
||||||
|
width: 88%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-control {
|
||||||
|
padding: .6rem 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.container-fluid {
|
||||||
|
padding-left: 0.3em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-group {
|
||||||
|
flex-direction:column;
|
||||||
|
}
|
||||||
|
|
||||||
|
#command.form-control {
|
||||||
|
width: 92%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ml-auto {
|
||||||
|
margin-left: 0!important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-info {
|
||||||
|
border-color: orange;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-info:hover {
|
||||||
|
border-color: orange;
|
||||||
|
opacity: 1
|
||||||
|
}
|
||||||
17
src/app/side-bar/side-bar-tab/side-bar-tab.component.ts
Normal file
17
src/app/side-bar/side-bar-tab/side-bar-tab.component.ts
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
import { Component, OnInit, Input } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-side-bar-tab',
|
||||||
|
templateUrl: './side-bar-tab.component.html',
|
||||||
|
styleUrls: ['./side-bar-tab.component.scss']
|
||||||
|
})
|
||||||
|
export class SideBarTabComponent implements OnInit {
|
||||||
|
|
||||||
|
@Input() tab: {'href': string, 'tabImage': string, 'tabText': string, 'activeClass': string};
|
||||||
|
|
||||||
|
constructor() { }
|
||||||
|
|
||||||
|
ngOnInit() {
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
86
src/app/side-bar/side-bar.component.html
Normal file
86
src/app/side-bar/side-bar.component.html
Normal file
@@ -0,0 +1,86 @@
|
|||||||
|
<div class="wrapper">
|
||||||
|
<nav id="sidebar" class="active">
|
||||||
|
<div class="sidebar-header">
|
||||||
|
<button type="button" id="sidebarCollapse" class="btn btn-info">
|
||||||
|
<i class="fas fa-align-justify"></i>
|
||||||
|
</button>
|
||||||
|
<h3 class="logotext">Microbot</h3>
|
||||||
|
<!-- <strong>MB</strong> -->
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<ul class="list-unstyled components">
|
||||||
|
<li *ngFor="let tab of tabsData"
|
||||||
|
[ngClass]="{active: tab.activeClass}">
|
||||||
|
<a [routerLink]="tab.href">
|
||||||
|
<i [ngClass]="['fas', tab.tabImage]"></i>
|
||||||
|
<span class="hideable hide">{{tab.tabText}}</span>
|
||||||
|
</a>
|
||||||
|
<ul
|
||||||
|
class="collapse list-unstyled"
|
||||||
|
id="pageSubmenu"
|
||||||
|
*ngIf="tab.subList">
|
||||||
|
<li>
|
||||||
|
<a href="#">Repo</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="#">Issues</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="#">Admin</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<!-- <app-side-bar-tab
|
||||||
|
*ngFor="let tab of tabsData"
|
||||||
|
[tab]="tab">
|
||||||
|
</app-side-bar-tab> -->
|
||||||
|
<!-- <li class="active">
|
||||||
|
<a href="#homeSubmenu">
|
||||||
|
<i class="fas fa-home"></i>
|
||||||
|
<span class="hideable hide">Home</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="#">
|
||||||
|
<i class="fas fa-briefcase"></i>
|
||||||
|
<span class="hideable hide">About</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="#pageSubmenu" data-toggle="collapse" aria-expanded="false" class="dropdown-toggle">
|
||||||
|
<i class="fas fa-copy"></i>
|
||||||
|
<span class="hideable hide">Tasks</span>
|
||||||
|
</a>
|
||||||
|
<ul class="collapse list-unstyled" id="pageSubmenu">
|
||||||
|
<li>
|
||||||
|
<a href="#">Repo</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="#">Issues</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="#">Admin</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="#">
|
||||||
|
<i class="fas fa-image"></i>
|
||||||
|
<span class="hideable hide">Favorites</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="#">
|
||||||
|
<i class="fas fa-question"></i>
|
||||||
|
<span class="hideable hide">FAQ</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="#">
|
||||||
|
<i class="fas fa-paper-plane"></i>
|
||||||
|
<span class="hideable hide">Contact</span>
|
||||||
|
</a>
|
||||||
|
</li> -->
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
</div>
|
||||||
462
src/app/side-bar/side-bar.component.scss
Normal file
462
src/app/side-bar/side-bar.component.scss
Normal file
@@ -0,0 +1,462 @@
|
|||||||
|
$themeColor-Light: #EEE2DC;
|
||||||
|
// $themeColor-Dark:#252525;
|
||||||
|
$themeColor-Dark:#E3E2DF;
|
||||||
|
$theme-font: verdana, sans-serif;
|
||||||
|
// $theme-supplementer: #f39c12;
|
||||||
|
$theme-supplementer: #5D001E;
|
||||||
|
|
||||||
|
// app-root {
|
||||||
|
// font-family: 'Poppins', sans-serif;
|
||||||
|
// background-color: $themeColor-Dark;
|
||||||
|
// }
|
||||||
|
|
||||||
|
:host {
|
||||||
|
background: $theme-supplementer;
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
font-family: 'Poppins', sans-serif;
|
||||||
|
font-size: 1.1em;
|
||||||
|
font-weight: 300;
|
||||||
|
line-height: 1.7em;
|
||||||
|
// color: #999;
|
||||||
|
}
|
||||||
|
|
||||||
|
a,
|
||||||
|
a:hover,
|
||||||
|
a:focus {
|
||||||
|
color: inherit;
|
||||||
|
text-decoration: none;
|
||||||
|
transition: all 0.3s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar {
|
||||||
|
padding: 15px 10px;
|
||||||
|
background: #fff;
|
||||||
|
border: none;
|
||||||
|
border-radius: 0 5px 5px 0;
|
||||||
|
margin-bottom: 40px;
|
||||||
|
box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar-btn {
|
||||||
|
box-shadow: none;
|
||||||
|
outline: none !important;
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.line {
|
||||||
|
width: 100%;
|
||||||
|
height: 1px;
|
||||||
|
border-bottom: 1px dashed #ddd;
|
||||||
|
margin: 20px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
i,
|
||||||
|
span {
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---------------------------------------------------
|
||||||
|
SIDEBAR STYLE
|
||||||
|
----------------------------------------------------- */
|
||||||
|
|
||||||
|
.wrapper {
|
||||||
|
display: flex;
|
||||||
|
align-items: stretch;
|
||||||
|
font-family: 'Poppins', sans-serif;
|
||||||
|
background-color: $themeColor-Dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar {
|
||||||
|
min-width: 250px;
|
||||||
|
max-width: 250px;
|
||||||
|
background: $theme-supplementer;
|
||||||
|
color: $themeColor-Dark;
|
||||||
|
transition: all 0.3s;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar.active {
|
||||||
|
min-width: 80px;
|
||||||
|
max-width: 80px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar.active .sidebar-header h3,
|
||||||
|
#sidebar.active .CTAs {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar-header h3 {
|
||||||
|
display: inline;
|
||||||
|
padding-left: 0.6em;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar.active .sidebar-header strong {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar ul li a {
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar.active ul li a {
|
||||||
|
padding: 20px 10px;
|
||||||
|
text-align: center;
|
||||||
|
font-size: 0.85em;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar.active ul li a i {
|
||||||
|
margin-right: 0;
|
||||||
|
display: block;
|
||||||
|
font-size: 1.8em;
|
||||||
|
margin-bottom: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar.active ul ul a {
|
||||||
|
padding: 10px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar.active .dropdown-toggle::after {
|
||||||
|
top: auto;
|
||||||
|
bottom: 10px;
|
||||||
|
right: 50%;
|
||||||
|
-webkit-transform: translateX(50%);
|
||||||
|
-ms-transform: translateX(50%);
|
||||||
|
transform: translateX(50%);
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar .sidebar-header {
|
||||||
|
padding: 20px;
|
||||||
|
background:$themeColor-Dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar .sidebar-header strong {
|
||||||
|
display: none;
|
||||||
|
font-size: 1.8em;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar ul.components {
|
||||||
|
padding: 20px 0;
|
||||||
|
border-bottom: 3px solid $themeColor-Dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar ul li a {
|
||||||
|
padding: 10px;
|
||||||
|
font-size: 1.1em;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar ul li a:hover {
|
||||||
|
color: $theme-supplementer;
|
||||||
|
background: $themeColor-Light;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar ul li a i {
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar ul li.active>a,
|
||||||
|
a[aria-expanded="true"] {
|
||||||
|
color: $theme-supplementer;
|
||||||
|
background:$themeColor-Dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
a[data-toggle="collapse"] {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dropdown-toggle::after {
|
||||||
|
display: block;
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
right: 20px;
|
||||||
|
transform: translateY(-50%);
|
||||||
|
}
|
||||||
|
|
||||||
|
ul ul a {
|
||||||
|
font-size: 0.9em !important;
|
||||||
|
padding-left: 30px !important;
|
||||||
|
background: white;
|
||||||
|
font-weight: bolder;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul.CTAs {
|
||||||
|
padding: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul.CTAs a {
|
||||||
|
text-align: center;
|
||||||
|
font-size: 0.9em !important;
|
||||||
|
display: block;
|
||||||
|
border-radius: 5px;
|
||||||
|
margin-bottom: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
a.download {
|
||||||
|
background: #fff;
|
||||||
|
color: #7386D5;
|
||||||
|
}
|
||||||
|
|
||||||
|
a.article,
|
||||||
|
a.article:hover {
|
||||||
|
background: #6d7fcc !important;
|
||||||
|
color: #fff !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---------------------------------------------------
|
||||||
|
CONTENT STYLE
|
||||||
|
----------------------------------------------------- */
|
||||||
|
|
||||||
|
#content {
|
||||||
|
width: 100%;
|
||||||
|
padding: 20px;
|
||||||
|
min-height: 100vh;
|
||||||
|
transition: all 0.3s;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---------------------------------------------------
|
||||||
|
MEDIAQUERIES
|
||||||
|
----------------------------------------------------- */
|
||||||
|
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
#sidebar {
|
||||||
|
min-width: 80px;
|
||||||
|
max-width: 80px;
|
||||||
|
text-align: center;
|
||||||
|
margin-left: -80px !important;
|
||||||
|
}
|
||||||
|
.dropdown-toggle::after {
|
||||||
|
top: auto;
|
||||||
|
bottom: 10px;
|
||||||
|
right: 50%;
|
||||||
|
-webkit-transform: translateX(50%);
|
||||||
|
-ms-transform: translateX(50%);
|
||||||
|
transform: translateX(50%);
|
||||||
|
}
|
||||||
|
#sidebar.active {
|
||||||
|
margin-left: 0 !important;
|
||||||
|
}
|
||||||
|
#sidebar .sidebar-header h3,
|
||||||
|
#sidebar .CTAs {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
#sidebar .sidebar-header strong {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
#sidebar ul li a {
|
||||||
|
padding: 20px 10px;
|
||||||
|
}
|
||||||
|
#sidebar ul li a span {
|
||||||
|
font-size: 0.85em;
|
||||||
|
}
|
||||||
|
#sidebar ul li a i {
|
||||||
|
margin-right: 0;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
#sidebar ul ul a {
|
||||||
|
padding: 10px !important;
|
||||||
|
}
|
||||||
|
#sidebar ul li a i {
|
||||||
|
font-size: 1.3em;
|
||||||
|
}
|
||||||
|
#sidebar {
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
#sidebarCollapse span {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.text-muted {
|
||||||
|
color: #bcb !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media(min-width: 576px) {
|
||||||
|
.card-group>.card:first-child {
|
||||||
|
border-top-right-radius: .25rem;
|
||||||
|
border-bottom-right-radius: .25rem;
|
||||||
|
}
|
||||||
|
.card-group>.card:not(:first-child):not(:last-child):not(:only-child) {
|
||||||
|
border-radius: .25rem;
|
||||||
|
}
|
||||||
|
.card-group>.card:last-child {
|
||||||
|
border-top-left-radius: .25rem;
|
||||||
|
border-bottom-left-radius: .25rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/* -------------------------------------------------
|
||||||
|
ADDITIONS
|
||||||
|
--------------------------------------------------*/
|
||||||
|
.hide {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.prompt {
|
||||||
|
display: flex;
|
||||||
|
width: 2em;
|
||||||
|
border-right: 1px solid #c99034;
|
||||||
|
// background-color: #f5d38b;
|
||||||
|
background-color: $theme-supplementer;
|
||||||
|
width: 4%;
|
||||||
|
margin-bottom: 40px;
|
||||||
|
border-radius: 4px 0 0 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.promptext {
|
||||||
|
animation:blinkingText 0.8s infinite;
|
||||||
|
// color: #975f04;
|
||||||
|
// color: $themeColor-Light;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 2em;
|
||||||
|
font: 1.5em bolder;
|
||||||
|
margin: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.good {
|
||||||
|
animation: anim .3s ease-in-out;
|
||||||
|
}
|
||||||
|
|
||||||
|
.repoLink {
|
||||||
|
color: #000;
|
||||||
|
font-weight: bolder;
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
.headerprompt {
|
||||||
|
display: flex;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.logotext {
|
||||||
|
color: $theme-supplementer;
|
||||||
|
}
|
||||||
|
|
||||||
|
#content nav div.collapse li a.nav-link i.far {
|
||||||
|
color: $theme-supplementer;
|
||||||
|
font-size: 1.8em;
|
||||||
|
padding: 0.2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
#loading-img {
|
||||||
|
background: url(http://preloaders.net/preloaders/360/Velocity.gif) center center no-repeat;
|
||||||
|
height: 100%;
|
||||||
|
z-index: 20;
|
||||||
|
}
|
||||||
|
|
||||||
|
.overlay {
|
||||||
|
background: #e9e9e9;
|
||||||
|
display: none;
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
opacity: 0.5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.loader {
|
||||||
|
border: 0px solid #f3f3f3;
|
||||||
|
border-radius: 50%;
|
||||||
|
border-top: 2px solid #3498db;
|
||||||
|
border-right: 2px solid #3498db;
|
||||||
|
width: 20px;
|
||||||
|
height: 20px;
|
||||||
|
-webkit-animation: spin 2s linear infinite; /* Safari */
|
||||||
|
animation: spin 2s linear infinite;
|
||||||
|
}
|
||||||
|
.card:not(.widget) {
|
||||||
|
background: linear-gradient(to right, white, lightblue)
|
||||||
|
}
|
||||||
|
.light-red {
|
||||||
|
// background:linear-gradient(white, lightblue);
|
||||||
|
background: linear-gradient(to right, white, #dfc99a)
|
||||||
|
}
|
||||||
|
|
||||||
|
// f3d98c
|
||||||
|
.featureRequest {
|
||||||
|
background-color : #007bff;
|
||||||
|
color: white;
|
||||||
|
font-size: 1.5em;
|
||||||
|
padding: 10px 20px;
|
||||||
|
border-radius: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#featureRequest {
|
||||||
|
position: fixed;
|
||||||
|
bottom: 2em;
|
||||||
|
right: 2.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes spin {
|
||||||
|
0% { transform: rotate(0deg); }
|
||||||
|
100% { transform: rotate(360deg); }
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes anim {
|
||||||
|
0% {
|
||||||
|
display: none;
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
1% {
|
||||||
|
display: block;
|
||||||
|
opacity: 0;
|
||||||
|
transform: scale(0);
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
opacity: 1;
|
||||||
|
transform: scale(1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@keyframes blinkingText {
|
||||||
|
0%{ color: $themeColor-Light; }
|
||||||
|
49%{ color: transparent; }
|
||||||
|
50%{ color: transparent; }
|
||||||
|
99%{ color:transparent; }
|
||||||
|
100%{ color: $themeColor-Light; }
|
||||||
|
}
|
||||||
|
|
||||||
|
/* --------------------------------------------------
|
||||||
|
OVERRIDES
|
||||||
|
--------------------------------------------------*/
|
||||||
|
.btn:not(.featureRequest) {
|
||||||
|
background-color: $theme-supplementer;
|
||||||
|
color: $themeColor-Dark
|
||||||
|
}
|
||||||
|
|
||||||
|
#content #header .navbar {
|
||||||
|
width: 96%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar-form {
|
||||||
|
width: 88%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-control {
|
||||||
|
padding: .6rem 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.container-fluid {
|
||||||
|
padding-left: 0.3em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-group {
|
||||||
|
flex-direction:column;
|
||||||
|
}
|
||||||
|
|
||||||
|
#command.form-control {
|
||||||
|
width: 92%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ml-auto {
|
||||||
|
margin-left: 0!important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-info {
|
||||||
|
border-color: orange;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-info:hover {
|
||||||
|
border-color: orange;
|
||||||
|
opacity: 1
|
||||||
|
}
|
||||||
24
src/app/side-bar/side-bar.component.ts
Normal file
24
src/app/side-bar/side-bar.component.ts
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
import { Component, OnInit, Output } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-side-bar',
|
||||||
|
templateUrl: './side-bar.component.html',
|
||||||
|
styleUrls: ['./side-bar.component.scss']
|
||||||
|
})
|
||||||
|
export class SideBarComponent implements OnInit {
|
||||||
|
|
||||||
|
@Output() tabsData = [
|
||||||
|
{'href': 'homeSubmenu', 'tabImage': 'fa-home', 'tabText': 'Home', 'activeClass': true, 'subList': false},
|
||||||
|
{'href': 'about', 'tabImage': 'fa-briefcase', 'tabText': 'About', 'activeClass': false, 'subList': false},
|
||||||
|
{'href': 'pageSubmenu', 'tabImage': 'fa-copy', 'tabText': 'Tasks', 'activeClass': false, 'subList': true},
|
||||||
|
{'href': 'favorites', 'tabImage': 'fa-image', 'tabText': 'Favorites', 'activeClass': false, 'subList': false},
|
||||||
|
{'href': 'question', 'tabImage': 'fa-question', 'tabText': 'FAQ', 'activeClass': false, 'subList': false},
|
||||||
|
{'href': 'contact', 'tabImage': 'fa-paper-plane', 'tabText': 'Contact', 'activeClass': false, 'subList': false},
|
||||||
|
]
|
||||||
|
|
||||||
|
constructor() { }
|
||||||
|
|
||||||
|
ngOnInit() {
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
0
src/assets/.gitkeep
Normal file
0
src/assets/.gitkeep
Normal file
9
src/browserslist
Normal file
9
src/browserslist
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
# This file is currently used by autoprefixer to adjust CSS to support the below specified browsers
|
||||||
|
# For additional information regarding the format and rule options, please see:
|
||||||
|
# https://github.com/browserslist/browserslist#queries
|
||||||
|
# For IE 9-11 support, please uncomment the last line of the file and adjust as needed
|
||||||
|
> 0.5%
|
||||||
|
last 2 versions
|
||||||
|
Firefox ESR
|
||||||
|
not dead
|
||||||
|
# IE 9-11
|
||||||
3
src/environments/environment.prod.ts
Normal file
3
src/environments/environment.prod.ts
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
export const environment = {
|
||||||
|
production: true
|
||||||
|
};
|
||||||
15
src/environments/environment.ts
Normal file
15
src/environments/environment.ts
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
// This file can be replaced during build by using the `fileReplacements` array.
|
||||||
|
// `ng build ---prod` replaces `environment.ts` with `environment.prod.ts`.
|
||||||
|
// The list of file replacements can be found in `angular.json`.
|
||||||
|
|
||||||
|
export const environment = {
|
||||||
|
production: false
|
||||||
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
|
* In development mode, to ignore zone related error stack frames such as
|
||||||
|
* `zone.run`, `zoneDelegate.invokeTask` for easier debugging, you can
|
||||||
|
* import the following file, but please comment it out in production mode
|
||||||
|
* because it will have performance impact when throw error
|
||||||
|
*/
|
||||||
|
// import 'zone.js/dist/zone-error'; // Included with Angular CLI.
|
||||||
BIN
src/favicon.ico
Normal file
BIN
src/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.3 KiB |
17
src/index.html
Normal file
17
src/index.html
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>PictureStory</title>
|
||||||
|
<base href="/">
|
||||||
|
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
<link rel="icon" type="image/x-icon" href="favicon.ico">
|
||||||
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700">
|
||||||
|
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.0/css/all.css" integrity="sha384-lKuwvrZot6UHsBSfcMvOkWwlCMgc0TaWr+30HWe3a4ltaBwTZhyTEggF5tJv8tbt"
|
||||||
|
crossorigin="anonymous">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<app-root></app-root>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
31
src/karma.conf.js
Normal file
31
src/karma.conf.js
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
// Karma configuration file, see link for more information
|
||||||
|
// https://karma-runner.github.io/1.0/config/configuration-file.html
|
||||||
|
|
||||||
|
module.exports = function (config) {
|
||||||
|
config.set({
|
||||||
|
basePath: '',
|
||||||
|
frameworks: ['jasmine', '@angular-devkit/build-angular'],
|
||||||
|
plugins: [
|
||||||
|
require('karma-jasmine'),
|
||||||
|
require('karma-chrome-launcher'),
|
||||||
|
require('karma-jasmine-html-reporter'),
|
||||||
|
require('karma-coverage-istanbul-reporter'),
|
||||||
|
require('@angular-devkit/build-angular/plugins/karma')
|
||||||
|
],
|
||||||
|
client: {
|
||||||
|
clearContext: false // leave Jasmine Spec Runner output visible in browser
|
||||||
|
},
|
||||||
|
coverageIstanbulReporter: {
|
||||||
|
dir: require('path').join(__dirname, '../coverage'),
|
||||||
|
reports: ['html', 'lcovonly'],
|
||||||
|
fixWebpackSourcePaths: true
|
||||||
|
},
|
||||||
|
reporters: ['progress', 'kjhtml'],
|
||||||
|
port: 9876,
|
||||||
|
colors: true,
|
||||||
|
logLevel: config.LOG_INFO,
|
||||||
|
autoWatch: true,
|
||||||
|
browsers: ['Chrome'],
|
||||||
|
singleRun: false
|
||||||
|
});
|
||||||
|
};
|
||||||
12
src/main.ts
Normal file
12
src/main.ts
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
import { enableProdMode } from '@angular/core';
|
||||||
|
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
||||||
|
|
||||||
|
import { AppModule } from './app/app.module';
|
||||||
|
import { environment } from './environments/environment';
|
||||||
|
|
||||||
|
if (environment.production) {
|
||||||
|
enableProdMode();
|
||||||
|
}
|
||||||
|
|
||||||
|
platformBrowserDynamic().bootstrapModule(AppModule)
|
||||||
|
.catch(err => console.log(err));
|
||||||
80
src/polyfills.ts
Normal file
80
src/polyfills.ts
Normal file
@@ -0,0 +1,80 @@
|
|||||||
|
/**
|
||||||
|
* This file includes polyfills needed by Angular and is loaded before the app.
|
||||||
|
* You can add your own extra polyfills to this file.
|
||||||
|
*
|
||||||
|
* This file is divided into 2 sections:
|
||||||
|
* 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers.
|
||||||
|
* 2. Application imports. Files imported after ZoneJS that should be loaded before your main
|
||||||
|
* file.
|
||||||
|
*
|
||||||
|
* The current setup is for so-called "evergreen" browsers; the last versions of browsers that
|
||||||
|
* automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera),
|
||||||
|
* Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile.
|
||||||
|
*
|
||||||
|
* Learn more in https://angular.io/docs/ts/latest/guide/browser-support.html
|
||||||
|
*/
|
||||||
|
|
||||||
|
/***************************************************************************************************
|
||||||
|
* BROWSER POLYFILLS
|
||||||
|
*/
|
||||||
|
|
||||||
|
/** IE9, IE10 and IE11 requires all of the following polyfills. **/
|
||||||
|
// import 'core-js/es6/symbol';
|
||||||
|
// import 'core-js/es6/object';
|
||||||
|
// import 'core-js/es6/function';
|
||||||
|
// import 'core-js/es6/parse-int';
|
||||||
|
// import 'core-js/es6/parse-float';
|
||||||
|
// import 'core-js/es6/number';
|
||||||
|
// import 'core-js/es6/math';
|
||||||
|
// import 'core-js/es6/string';
|
||||||
|
// import 'core-js/es6/date';
|
||||||
|
// import 'core-js/es6/array';
|
||||||
|
// import 'core-js/es6/regexp';
|
||||||
|
// import 'core-js/es6/map';
|
||||||
|
// import 'core-js/es6/weak-map';
|
||||||
|
// import 'core-js/es6/set';
|
||||||
|
|
||||||
|
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
|
||||||
|
// import 'classlist.js'; // Run `npm install --save classlist.js`.
|
||||||
|
|
||||||
|
/** IE10 and IE11 requires the following for the Reflect API. */
|
||||||
|
// import 'core-js/es6/reflect';
|
||||||
|
|
||||||
|
|
||||||
|
/** Evergreen browsers require these. **/
|
||||||
|
// Used for reflect-metadata in JIT. If you use AOT (and only Angular decorators), you can remove.
|
||||||
|
import 'core-js/es7/reflect';
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Web Animations `@angular/platform-browser/animations`
|
||||||
|
* Only required if AnimationBuilder is used within the application and using IE/Edge or Safari.
|
||||||
|
* Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0).
|
||||||
|
**/
|
||||||
|
// import 'web-animations-js'; // Run `npm install --save web-animations-js`.
|
||||||
|
|
||||||
|
/**
|
||||||
|
* By default, zone.js will patch all possible macroTask and DomEvents
|
||||||
|
* user can disable parts of macroTask/DomEvents patch by setting following flags
|
||||||
|
*/
|
||||||
|
|
||||||
|
// (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame
|
||||||
|
// (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick
|
||||||
|
// (window as any).__zone_symbol__BLACK_LISTED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames
|
||||||
|
|
||||||
|
/*
|
||||||
|
* in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js
|
||||||
|
* with the following flag, it will bypass `zone.js` patch for IE/Edge
|
||||||
|
*/
|
||||||
|
// (window as any).__Zone_enable_cross_context_check = true;
|
||||||
|
|
||||||
|
/***************************************************************************************************
|
||||||
|
* Zone JS is required by default for Angular itself.
|
||||||
|
*/
|
||||||
|
import 'zone.js/dist/zone'; // Included with Angular CLI.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/***************************************************************************************************
|
||||||
|
* APPLICATION IMPORTS
|
||||||
|
*/
|
||||||
1
src/styles.css
Normal file
1
src/styles.css
Normal file
@@ -0,0 +1 @@
|
|||||||
|
/* You can add global styles to this file, and also import other style files */
|
||||||
20
src/test.ts
Normal file
20
src/test.ts
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
// This file is required by karma.conf.js and loads recursively all the .spec and framework files
|
||||||
|
|
||||||
|
import 'zone.js/dist/zone-testing';
|
||||||
|
import { getTestBed } from '@angular/core/testing';
|
||||||
|
import {
|
||||||
|
BrowserDynamicTestingModule,
|
||||||
|
platformBrowserDynamicTesting
|
||||||
|
} from '@angular/platform-browser-dynamic/testing';
|
||||||
|
|
||||||
|
declare const require: any;
|
||||||
|
|
||||||
|
// First, initialize the Angular testing environment.
|
||||||
|
getTestBed().initTestEnvironment(
|
||||||
|
BrowserDynamicTestingModule,
|
||||||
|
platformBrowserDynamicTesting()
|
||||||
|
);
|
||||||
|
// Then we find all the tests.
|
||||||
|
const context = require.context('./', true, /\.spec\.ts$/);
|
||||||
|
// And load the modules.
|
||||||
|
context.keys().map(context);
|
||||||
12
src/tsconfig.app.json
Normal file
12
src/tsconfig.app.json
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"extends": "../tsconfig.json",
|
||||||
|
"compilerOptions": {
|
||||||
|
"outDir": "../out-tsc/app",
|
||||||
|
"module": "es2015",
|
||||||
|
"types": []
|
||||||
|
},
|
||||||
|
"exclude": [
|
||||||
|
"src/test.ts",
|
||||||
|
"**/*.spec.ts"
|
||||||
|
]
|
||||||
|
}
|
||||||
19
src/tsconfig.spec.json
Normal file
19
src/tsconfig.spec.json
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
{
|
||||||
|
"extends": "../tsconfig.json",
|
||||||
|
"compilerOptions": {
|
||||||
|
"outDir": "../out-tsc/spec",
|
||||||
|
"module": "commonjs",
|
||||||
|
"types": [
|
||||||
|
"jasmine",
|
||||||
|
"node"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"files": [
|
||||||
|
"test.ts",
|
||||||
|
"polyfills.ts"
|
||||||
|
],
|
||||||
|
"include": [
|
||||||
|
"**/*.spec.ts",
|
||||||
|
"**/*.d.ts"
|
||||||
|
]
|
||||||
|
}
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user