Compare commits

...
This repository has been archived on 2025-12-28. You can view files and clone it, but cannot push or open issues or pull requests.

44 Commits

Author SHA1 Message Date
a115a65840 updated for failing deployment 2022-05-26 22:15:01 +09:30
b6682e7d79 Merge branch 'develop' into 'master'
updated links and gitignore

See merge request inkletblot/inkletblot-com-v2!19
2022-05-26 12:33:49 +00:00
58997e59bc updated links and gitignore 2022-05-26 22:03:45 +09:30
e31204a235 Merge branch 'angular-13-upgrade' into 'master'
update to angular 13

See merge request inkletblot/inkletblot-com-v2!18
2021-12-21 22:42:54 +00:00
aa125b836f update to angular 13 2021-12-22 09:12:33 +10:30
877f94a89e Merge branch 'projects-width' into 'master'
updated projects width, kinda broken with code though, need to make sure to keep things slim

See merge request inkletblot/inkletblot-com-v2!17
2021-12-21 10:58:52 +00:00
3dfb91424c updated projects width, kinda broken with code though, need to make sure to keep things slim 2021-12-21 21:23:44 +10:30
1bd02ad4e5 Merge branch 'more-links' into 'master'
added some new links to links :)

See merge request inkletblot/inkletblot-com-v2!16
2021-12-21 04:37:42 +00:00
Solomon Laing
8cb4204800 added some new links to links :) 2021-12-21 15:04:28 +10:30
26cc45cb45 Merge branch 'develop' into 'master'
minor updates due to domain changes, project filtering and cicd

See merge request inkletblot/inkletblot-com-v2!15
2021-07-07 05:30:31 +00:00
16c8d4c6ae Update .gitlab-ci.yml to use ssh jump host 2021-07-07 05:27:35 +00:00
Solomon Laing
9e12a95bfe added basic filter to projects so gitlab and uncategorized are separate 2021-07-07 14:52:51 +09:30
Solomon Laing
8789390c67 updated links due to domain changes 2021-07-07 14:28:10 +09:30
c13b67dd82 Merge branch 'develop' into 'master'
retheme of nav and removal of scrolling bug

See merge request inkletblot/inkletblot-com-v2!14
2021-06-15 10:51:00 +00:00
1e24dc45dd Merge branch 'feature/nav-theme' into 'develop'
Feature/nav theme

See merge request inkletblot/inkletblot-com-v2!13
2021-06-15 10:46:27 +00:00
Solomon Laing
2935df9b90 finished nav re-theme and fixed scrolling bug 2021-06-15 20:15:28 +09:30
a4e891c8b5 first go of nav restyle is complete, removed blue and replaced with visual que 2021-06-14 16:19:37 +09:30
86f7aa143a first go of nav restyle is complete, removed blue and replaced with visual que 2021-06-14 16:14:19 +09:30
8f3a17266e Merge branch 'inkletblot-master-patch-88271' into 'master'
Update .gitlab-ci.yml

See merge request inkletblot/inkletblot-com-v2!12
2021-06-13 09:41:51 +00:00
444f0f62fa Update .gitlab-ci.yml 2021-06-13 09:40:03 +00:00
0e22c689c8 Merge branch 'develop' into 'master'
added image bounding for posts

See merge request inkletblot/inkletblot-com-v2!11
2021-06-13 09:38:52 +00:00
Solomon Laing
585826a60f added image bounding for posts 2021-06-13 19:06:54 +09:30
a1341d5f06 Merge branch 'develop' into 'master'
Release of re-theme

See merge request inkletblot/inkletblot-com-v2!10
2021-06-13 06:14:51 +00:00
72b99bb748 Merge branch 'feature/re-theme' into 'develop'
completed first re-theme, colors are red and brown/grey now also layout is drasitaclly changed

See merge request inkletblot/inkletblot-com-v2!9
2021-06-13 06:08:07 +00:00
Solomon Laing
979481b39c completed first re-theme, colors are red and brown/grey now also layout is drasitaclly changed 2021-06-13 15:36:11 +09:30
671d34d552 Merge branch 'develop' into 'master'
pushing through some changes to links

See merge request inkletblot/inkletblot-com-v2!8
2021-06-06 04:49:56 +00:00
0bbe8e4627 Merge branch 'bugfix/dead-links-removal' into 'develop'
added some links and removed old borked ones

See merge request inkletblot/inkletblot-com-v2!7
2021-06-06 04:47:29 +00:00
Solomon Laing
8ea795def4 added merge only ci test 2021-06-06 14:17:20 +09:30
Solomon Laing
17c578a1e2 added merge only ci test 2021-06-06 14:16:24 +09:30
Solomon Laing
ff1e72b3df added merge only ci test 2021-06-06 14:12:46 +09:30
Solomon Laing
8147d0db77 added some links and removed old borked ones 2021-06-06 14:07:25 +09:30
f906145242 Merge branch 'develop' into 'master'
Release of projects

See merge request inkletblot/inkletblot-com-v2!6
2021-06-06 04:04:24 +00:00
2c6d486967 Merge branch 'feature/projects' into 'develop'
Projects is complete

See merge request inkletblot/inkletblot-com-v2!5
2021-06-06 04:00:53 +00:00
Solomon Laing
ac430a46d1 first release of projects ready 2021-06-06 13:27:11 +09:30
Solomon Laing
5d754396da updated code (started to) for new api, npm install is busted due to out of date deps I think, moving to different computer 2021-06-06 12:10:25 +09:30
Solomon Laing
17e74a18a3 got basic implementation of project cards and the suppporting services/routing working. need to style project page now and will have first pass done 2021-06-06 12:10:25 +09:30
Solomon Laing
036f48b3f0 Got api request working.
I added the necessary header to the api server and then changed the content type of the request to text/plain to disabled the preflight OPTIONS request which the server was erroring on.
Not sure about the security of all this but it's a very basic website and I don't think it'll be an issue.
2021-06-06 12:10:25 +09:30
Solomon Laing
fbb00cdecc started implementation of projects page. currently need to work out cors 2021-06-06 12:10:25 +09:30
Solomon Laing
fd70c64fc2 updated npm deps, I think? 2021-06-05 21:10:17 +09:30
a6ef143e11 Update .gitlab-ci.yml 2021-06-05 11:24:49 +00:00
solomon laing
eec0319361 Merge branch 'develop' into 'master'
Develop

See merge request inkletblot/inkletblot-com-v2!4
2021-04-13 00:04:02 +00:00
solomon laing
49c751b284 Merge branch 'feature/homepage' into 'develop'
added home page content, I am yet to add mobile layouts but the content of teh page is complete.

See merge request inkletblot/inkletblot-com-v2!3
2021-04-13 00:01:20 +00:00
Solomon Laing
49baafc3c7 added home page content, I am yet to add mobile layouts but the content of teh page is complete. 2021-04-05 21:16:31 +09:30
solomon laing
e5375d5df7 Merge branch 'develop' into 'master'
Develop

See merge request inkletblot/inkletblot-com-v2!2
2021-04-02 11:43:20 +00:00
46 changed files with 9189 additions and 19322 deletions

2
.gitignore vendored
View File

@ -4,6 +4,7 @@
/dist /dist
/tmp /tmp
/out-tsc /out-tsc
/.angular
# Only exists if Bazel was run # Only exists if Bazel was run
/bazel-out /bazel-out
@ -32,6 +33,7 @@ speed-measure-plugin*.json
.history/* .history/*
# misc # misc
/.angular/cache
/.sass-cache /.sass-cache
/.scss-cache /.scss-cache
/connect.lock /connect.lock

View File

@ -1,11 +1,11 @@
stages: stages:
- build - build
- deploy - deploy
- test
develop-build-job: develop-build-job:
stage: build stage: build
tags: tags:
- build
- node - node
script: script:
- echo "Install dependencies..." - echo "Install dependencies..."
@ -17,7 +17,6 @@ develop-build-job:
master-build-job: master-build-job:
stage: build stage: build
tags: tags:
- build
- node - node
script: script:
- echo "Install dependencies..." - echo "Install dependencies..."
@ -32,9 +31,7 @@ master-build-job:
deploy-job: deploy-job:
stage: deploy stage: deploy
tags: tags:
- deploy
- node - node
when: manual
environment: environment:
name: Production name: Production
url: "$Live_Server_IP" url: "$Live_Server_IP"
@ -47,7 +44,16 @@ deploy-job:
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" >> ~/.ssh/config' - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" >> ~/.ssh/config'
script: script:
- tar zcf ../inkletblot-com.tar.gz ./dist - tar zcf ../inkletblot-com.tar.gz ./dist
- scp -P "$Live_Server_Access_Port" -o StrictHostKeyChecking=no ../inkletblot-com.tar.gz "$Live_Server_User"@"$Live_Server_IP":/var/www/html - scp -o 'ProxyJump "$Live_Server_User"@"$Live_Server_IP"' -o StrictHostKeyChecking=no ../inkletblot-com.tar.gz "$Live_Server_User"@"$Live_Server_Target":/var/www/html
- ssh -p "$Live_Server_Access_Port" "$Live_Server_User"@"$Live_Server_IP" "rm -Rf /var/www/html/inkletblot-com_old && mv /var/www/html/inkletblot-com /var/www/html/inkletblot-com_old && mkdir /var/www/html/inkletblot-com_build && mkdir /var/www/html/inkletblot-com && tar zxf /var/www/html/inkletblot-com.tar.gz -C /var/www/html/inkletblot-com_build && mv /var/www/html/inkletblot-com_build/dist/inkletblot-com/* /var/www/html/inkletblot-com && rm -Rf /var/www/html/inkletblot-com_build && chmod -R 755 /var/www/html/inkletblot-com && exit" - ssh -J "$Live_Server_User"@"$Live_Server_IP" "$Live_Server_User"@"$Live_Server_Target" "rm -Rf /var/www/html/inkletblot-com_old && mv /var/www/html/inkletblot-com /var/www/html/inkletblot-com_old && mkdir /var/www/html/inkletblot-com_build && mkdir /var/www/html/inkletblot-com && tar zxf /var/www/html/inkletblot-com.tar.gz -C /var/www/html/inkletblot-com_build && mv /var/www/html/inkletblot-com_build/dist/inkletblot-com/* /var/www/html/inkletblot-com && rm -Rf /var/www/html/inkletblot-com_build && chmod -R 755 /var/www/html/inkletblot-com && exit"
only: only:
- master - master
test:
stage: test
tags:
- node
script:
- echo "I don't care about standard merges into dev as a build has to happen for a merge into master, I don't think there is a way to specify that so I need this here."
only:
- merge_requests

View File

@ -22,7 +22,6 @@
"main": "src/main.ts", "main": "src/main.ts",
"polyfills": "src/polyfills.ts", "polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.app.json", "tsConfig": "tsconfig.app.json",
"aot": true,
"assets": [ "assets": [
"src/favicon.ico", "src/favicon.ico",
"src/assets" "src/assets"
@ -30,7 +29,13 @@
"styles": [ "styles": [
"src/styles.scss" "src/styles.scss"
], ],
"scripts": [] "scripts": [],
"vendorChunk": true,
"extractLicenses": false,
"buildOptimizer": false,
"sourceMap": true,
"optimization": false,
"namedChunks": true
}, },
"configurations": { "configurations": {
"production": { "production": {
@ -60,7 +65,8 @@
} }
] ]
} }
} },
"defaultConfiguration": ""
}, },
"serve": { "serve": {
"builder": "@angular-devkit/build-angular:dev-server", "builder": "@angular-devkit/build-angular:dev-server",
@ -96,19 +102,6 @@
"scripts": [] "scripts": []
} }
}, },
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"tsconfig.app.json",
"tsconfig.spec.json",
"e2e/tsconfig.json"
],
"exclude": [
"**/node_modules/**"
]
}
},
"e2e": { "e2e": {
"builder": "@angular-devkit/build-angular:protractor", "builder": "@angular-devkit/build-angular:protractor",
"options": { "options": {

27480
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -11,28 +11,28 @@
}, },
"private": true, "private": true,
"dependencies": { "dependencies": {
"@angular/animations": "~11.2.7", "@angular/animations": "~13.1.1",
"@angular/common": "~11.2.7", "@angular/common": "~13.1.1",
"@angular/compiler": "~11.2.7", "@angular/compiler": "~13.1.1",
"@angular/core": "~11.2.7", "@angular/core": "~13.1.1",
"@angular/forms": "~11.2.7", "@angular/forms": "~13.1.1",
"@angular/platform-browser": "~11.2.7", "@angular/platform-browser": "~13.1.1",
"@angular/platform-browser-dynamic": "~11.2.7", "@angular/platform-browser-dynamic": "~13.1.1",
"@angular/router": "~11.2.7", "@angular/router": "~13.1.1",
"rxjs": "~6.6.0", "rxjs": "~6.6.0",
"tslib": "^2.0.0", "tslib": "^2.0.0",
"zone.js": "~0.11.3" "zone.js": "~0.11.4"
}, },
"devDependencies": { "devDependencies": {
"@angular-devkit/build-angular": "~0.1102.6", "@angular-devkit/build-angular": "^13.1.2",
"@angular/cli": "~11.2.6", "@angular/cli": "~13.1.2",
"@angular/compiler-cli": "~11.2.7", "@angular/compiler-cli": "~13.1.1",
"@types/jasmine": "~3.6.0", "@types/jasmine": "~3.6.0",
"@types/node": "^12.11.1", "@types/node": "^12.11.1",
"codelyzer": "^6.0.0", "codelyzer": "^6.0.0",
"jasmine-core": "~3.6.0", "jasmine-core": "~3.7.0",
"jasmine-spec-reporter": "~5.0.0", "jasmine-spec-reporter": "~5.0.0",
"karma": "~6.1.0", "karma": "~6.3.9",
"karma-chrome-launcher": "~3.1.0", "karma-chrome-launcher": "~3.1.0",
"karma-coverage": "~2.0.3", "karma-coverage": "~2.0.3",
"karma-jasmine": "~4.0.0", "karma-jasmine": "~4.0.0",
@ -40,6 +40,6 @@
"protractor": "~7.0.0", "protractor": "~7.0.0",
"ts-node": "~8.3.0", "ts-node": "~8.3.0",
"tslint": "~6.1.0", "tslint": "~6.1.0",
"typescript": "~4.1.5" "typescript": "~4.5.4"
} }
} }

View File

@ -2,16 +2,18 @@ import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router'; import { RouterModule, Routes } from '@angular/router';
import { HomeComponent } from './home/home.component'; import { HomeComponent } from './home/home.component';
import { LinksComponent } from './links/links.component'; import { LinksComponent } from './links/links.component';
import { Page404Component } from './page404/page404.component';
import { PetComponent } from './pet/pet.component'; import { PetComponent } from './pet/pet.component';
import { ProjectsComponent } from './projects/projects.component'; import { ProjectsComponent } from './projects/projects.component';
import { Pages } from './shared/models/pages.model'; import { Pages } from './shared/models/pages.model';
const routes: Routes = [ const routes: Routes = [
{ path: Pages.HOME, component: HomeComponent }, { path: Pages.HOME, component: HomeComponent },
{ path: Pages.PROJECTS, component: ProjectsComponent }, { path: Pages.PROJECTS, loadChildren: () => import('./projects/projects.module').then((m) => m.ProjectsModule) },
// { path: AppRoutes.CORE, loadChildren: () => import('./galler/gallery.module').then((m) => m.GalleryModule) }, // for future use // { path: AppRoutes.CORE, loadChildren: () => import('./galler/gallery.module').then((m) => m.GalleryModule) }, // for future use maybe
{ path: Pages.LINKS, component: LinksComponent }, { path: Pages.LINKS, component: LinksComponent },
{ path: Pages.PET, component: PetComponent }, { path: Pages.PET, component: PetComponent },
{ path: Pages.PAGE_404, component: Page404Component },
{ path: '**', redirectTo: Pages.HOME, pathMatch: 'full' }]; { path: '**', redirectTo: Pages.HOME, pathMatch: 'full' }];
@NgModule({ @NgModule({

View File

@ -1,11 +1,8 @@
<div class="page-fixed-width"> <app-nav></app-nav>
<app-header></app-header> <div class="page-fixed">
<div class="no-scroll-bar">
<app-nav></app-nav> <app-header></app-header>
<div class="content no-scroll-bar">
<router-outlet></router-outlet> <router-outlet></router-outlet>
<app-footer></app-footer>
</div> </div>
<app-footer></app-footer>
</div> </div>

View File

@ -3,33 +3,35 @@
:host { :host {
height: 100%; height: 100%;
display: flex; display: flex;
flex-direction: column; flex-direction: row;
justify-content: center;
align-items: center; align-items: center;
overflow-y: auto; overflow: hidden;
} }
.page-fixed-width { .page-fixed {
width: 1000px; width: 1000px;
height: 100%;
display: flex; display: flex;
align-items: center;
justify-content: center;
flex-direction: column; flex-direction: column;
flex-grow: 1; background-color: colors.$inklets-color-grey;
overflow-y: auto;
border-left: colors.$inklets-color-fg 2px dashed;
border-right: colors.$inklets-color-fg 2px dashed;
}
.content {
flex-grow: 1;
overflow-y: auto;
} }
/* Hide scrollbar for Chrome, Safari and Opera */ /* Hide scrollbar for Chrome, Safari and Opera */
.no-scroll-bar::-webkit-scrollbar { .no-scroll-bar::-webkit-scrollbar {
display: none; display: none;
overflow: auto;
width: 100%;
height: 100%;
} }
/* Hide scrollbar for IE, Edge and Firefox */ /* Hide scrollbar for IE, Edge and Firefox */
.no-scroll-bar { .no-scroll-bar {
-ms-overflow-style: none; /* IE and Edge */ -ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */ scrollbar-width: none; /* Firefox */
overflow: auto;
width: 100%;
height: 100%;
} }

View File

@ -1,5 +1,6 @@
import { NgModule } from '@angular/core'; import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser'; import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from "@angular/platform-browser/animations";
import { AppRoutingModule } from './app-routing.module'; import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component'; import { AppComponent } from './app.component';
@ -9,8 +10,9 @@ import { FooterComponent } from './footer/footer.component';
import { SharedModule } from './shared/shared.module'; import { SharedModule } from './shared/shared.module';
import { HomeComponent } from './home/home.component'; import { HomeComponent } from './home/home.component';
import { LinksComponent } from './links/links.component'; import { LinksComponent } from './links/links.component';
import { ProjectsComponent } from './projects/projects.component';
import { PetComponent } from './pet/pet.component'; import { PetComponent } from './pet/pet.component';
import { HttpClientModule } from '@angular/common/http';
import { Page404Component } from './page404/page404.component';
@NgModule({ @NgModule({
declarations: [ declarations: [
@ -20,13 +22,15 @@ import { PetComponent } from './pet/pet.component';
FooterComponent, FooterComponent,
HomeComponent, HomeComponent,
LinksComponent, LinksComponent,
ProjectsComponent, PetComponent,
PetComponent Page404Component
], ],
imports: [ imports: [
SharedModule, SharedModule,
BrowserModule, BrowserModule,
AppRoutingModule BrowserAnimationsModule,
AppRoutingModule,
HttpClientModule
], ],
providers: [], providers: [],
bootstrap: [AppComponent] bootstrap: [AppComponent]

View File

@ -1,6 +1,5 @@
@use 'src/app/shared/styles/_variables.color' as colors; @use 'src/app/shared/styles/_variables.color' as colors;
:host { :host {
padding: 0 40px 0 40px; padding: 0 20px 0 20px;
margin: 10px 0 10px 0;
} }

View File

@ -1,56 +1,16 @@
<p>home works!</p> <div class="bio">
<p>home works!</p> <div class="top">
<p>home works!</p> <img class="headshot" src="../../assets/head.jpg" alt="A headshot of Solomon Laing">
<p>home works!</p> <div class="text">
<p>home works!</p> <h1>Inkletblot
<p>home works!</p> <a href="https://www.linkedin.com/in/inkletblot/" target="_blank"><img class="contact-icon" src="../../assets/linkedin.png"></a>
<p>home works!</p> <a href="mailto:solomonlaing@pm.me"><img class="contact-icon" src="../../assets/envelope.png"></a>
<p>home works!</p> </h1>
<p>home works!</p> <p>My name is Solomon Laing. I'm a twenty something year old uni student and IT professional from Adelaide, Australia. I'm passionate about Technology and IT, it as been a hobby of mine for most of my life in one way or another and I predict will be for many years to come. Should you wish to know more, I'm sure you'll be able to find some footprint of me online. Regardless of how hard I try to remove it.</p>
<p>home works!</p> </div>
<p>home works!</p> </div>
<p>home works!</p> <p>This website serves as a personal website for myself. A place for me to put my projects, experiments, important links and the such-like. Projects relate to my publically accessable projects. Be it my linux config files, builds of applications, website, or anything else I decide to add. Links, the most important page to me, is where all of my services sit that I host myself.</p>
<p>home works!</p> <p>On of the projects that you will not find listed on the projects page is my server that I operate from my loungeroom. It hosts this website, nextcloud, a mail server and client, many game servers, my gitlab instance, and many local services which I use at home. Part of this is a small Kubernetes cluster consiting of Odroid-MC1s (by Hardkernel) which run the very simple api for this site and the slightly more complicated api for my forum.</p>
<p>home works!</p> <p>This site is a simple testement to my passion for technology, it is not supposed to be particularly eye-catching or engaging. I expect that few will ever see it. But if you are one of the few, 'Hello and Welcome'.</p>
<p>home works!</p> <div class="attributions">Icons made by <a href="https://www.freepik.com" title="Freepik">Freepik</a> and <a href="https://www.flaticon.com/authors/gregor-cresnar" title="Gregor Cresnar">Gregor Cresnar</a> from <a href="https://www.flaticon.com/" title="Flaticon">www.flaticon.com</a></div>
<p>home works!</p> </div>
<p>home works!</p>
<p>home works!</p>
<p>home works!</p>
<p>home works!</p>
<p>home works!</p>
<p>home works!</p>
<p>home works!</p>
<p>home works!</p>
<p>home works!</p>
<p>home works!</p>
<p>home works!</p>
<p>home works!</p>
<p>home works!</p>
<p>home works!</p>
<p>home works!</p>
<p>home works!</p>
<p>home works!</p>
<p>home works!</p>
<p>home works!</p>
<p>home works!</p>
<p>home works!</p>
<p>home works!</p>
<p>home works!</p>
<p>home works!</p>
<p>home works!</p>
<p>home works!</p>
<p>home works!</p>
<p>home works!</p>
<p>home works!</p>
<p>home works!</p>
<p>home works!</p>
<p>home works!</p>
<p>home works!</p>
<p>home works!</p>
<p>home works!</p>
<p>home works!</p>
<p>home works!</p>
<p>home works!</p>
<p>home works!</p>
<p>home works!</p>

View File

@ -6,5 +6,51 @@
flex-grow: 1; flex-grow: 1;
overflow-y: auto; overflow-y: auto;
padding: 0 20px 0 20px; padding: 0 20px 0 20px;
margin: 0 140px 10px 140px; }
.bio {
text-align: justify;
.top {
display: flex;
flex-direction: row;
.headshot {
width: 200px;
height: 200px;
border: colors.$inklets-color-red-light 5px solid;
border-radius: 100px;
}
.text {
margin-left: 30px;
h1 {
border-bottom: colors.$inklets-color-red-light 2px dashed;
img {
width: 30px;
height: 30px;
margin-left: 10px;
}
}
p{
padding-bottom: 0;
margin-bottom: 0;
}
}
}
.attributions {
font-size: 8px;
> a {
text-decoration: none;
color: colors.$inklets-color-white;
}
> a:hover {
color: colors.$inklets-color-red-light;
}
}
} }

View File

@ -2,7 +2,6 @@
:host { :host {
padding: 0 20px 0 20px; padding: 0 20px 0 20px;
margin: 0 140px 10px 140px;
display: flex; display: flex;
align-items: center; align-items: center;
justify-items: center; justify-items: center;
@ -10,6 +9,7 @@
// padding 20, total width 1000, width 700 so 280/2 = margin left and right of 140 // padding 20, total width 1000, width 700 so 280/2 = margin left and right of 140
.card-wrapper { .card-wrapper {
padding-top: 20px;
display: grid; display: grid;
grid-template-columns: auto auto auto auto; grid-template-columns: auto auto auto auto;
grid-template-rows: auto auto auto auto; grid-template-rows: auto auto auto auto;
@ -20,15 +20,16 @@
} }
a { a {
color: colors.$inklets-color-white;
text-decoration: none; text-decoration: none;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
justify-items: center; justify-items: center;
margin: 0; margin: 0;
border: colors.$inklets-color-highlight-bg 2px dashed; color: colors.$inklets-color-white;
background-color: colors.$inklets-color-fg; background-color: colors.$inklets-color-black;
border: 2px solid colors.$inklets-color-red-dark;
border-radius: 10px;
> * { > * {
margin: 10px; margin: 10px;
@ -37,6 +38,5 @@ a {
} }
a:hover { a:hover {
background-color: colors.$inklets-color-highlight-fg; border: colors.$inklets-color-red-light 2px solid;
color: colors.$inklets-color-black;
} }

View File

@ -1,6 +1,6 @@
<ul> <ul>
<li><a routerLink="{{Pages.HOME}}" routerLinkActive="activeRoute">{{Pages.HOME}}</a></li> <li (mouseover)="state[0] = 'bump'" (mouseout)="state[0] = 'norm'"><a [@openClose]="state[0]" routerLink="{{Pages.HOME}}" routerLinkActive="activeRoute">{{Pages.HOME}}</a></li>
<li><a routerLink="{{Pages.PROJECTS}}" routerLinkActive="activeRoute">{{Pages.PROJECTS}}</a></li> <li (mouseover)="state[1] = 'bump'" (mouseout)="state[1] = 'norm'"><a [@openClose]="state[1]" routerLink="{{Pages.PROJECTS}}" routerLinkActive="activeRoute">{{Pages.PROJECTS}}</a></li>
<!-- <li><a routerLink="{{Pages.GALLERY}}" routerLinkActive="activeRoute">{{Pages.GALLERY}}</a></li> --> <!-- <li><a routerLink="{{Pages.GALLERY}}" routerLinkActive="activeRoute">{{Pages.GALLERY}}</a></li> -->
<li><a routerLink="{{Pages.LINKS}}" routerLinkActive="activeRoute">{{Pages.LINKS}}</a></li> <li (mouseover)="state[2] = 'bump'" (mouseout)="state[2] = 'norm'"><a [@openClose]="state[2]" routerLink="{{Pages.LINKS}}" routerLinkActive="activeRoute">{{Pages.LINKS}}</a></li>
</ul> </ul>

View File

@ -1,10 +1,5 @@
@use 'src/app/shared/styles/_variables.color'as colors; @use 'src/app/shared/styles/_variables.color'as colors;
:host {
padding: 0 90px 0 90px;
margin: 10px 0 60px 0;
}
ul { ul {
list-style-type: none; list-style-type: none;
margin: 0; margin: 0;
@ -13,23 +8,38 @@ ul {
} }
li { li {
float: left; display: flex;
background-color: colors.$inklets-color-fg; align-items: center;
justify-content: center;
margin: 25px;
width: 120px;
height: 120px;
} }
li a { li a {
border-radius: 50px;
width: 100px;
height: 100px;
line-height: 100px;
color: colors.$inklets-color-white; color: colors.$inklets-color-white;
background-color: colors.$inklets-color-red-dark;
display: block; display: block;
text-align: center; text-align: center;
padding: 14px 16px;
text-decoration: none; text-decoration: none;
} }
.activeRoute { li .activeRoute {
background-color: colors.$inklets-color-highlight-bg; background-color: colors.$inklets-color-red-light;
}
li a:hover {
background-color: colors.$inklets-color-highlight-fg;
color: colors.$inklets-color-black; color: colors.$inklets-color-black;
} }
// li a:hover {
// background-color: colors.$inklets-color-blue-dark;
// color: colors.$inklets-color-white;
// }
// li a:hover.activeRoute {
// background-color: colors.$inklets-color-blue-light;
// color: colors.$inklets-color-black;
// }

View File

@ -1,22 +1,84 @@
import { Component, OnDestroy, OnInit } from '@angular/core'; import { animate, keyframes, state, style, transition, trigger } from '@angular/animations';
import { ActivatedRoute, Router } from '@angular/router'; import { Component, OnInit } from '@angular/core';
import { Subject } from 'rxjs';
import { takeUntil } from 'rxjs/operators';
import { Pages } from '../shared/models/pages.model'; import { Pages } from '../shared/models/pages.model';
import { NavService } from './nav.service';
@Component({ @Component({
selector: 'app-nav', selector: 'app-nav',
templateUrl: './nav.component.html', animations: [
styleUrls: ['./nav.component.scss'] trigger('openClose', [
state(
'bump',
style({
width: '110px',
height: '110px',
'line-height': '110px',
'border-radius': '55px'
})
),
state(
'norm',
style({
width: '100px',
height: '100px',
'line-height': '100px',
'border-radius': '50px'
})
),
transition('norm => bump', [
animate(
'0.2s', keyframes([
style({
width: '100px',
height: '100px',
'line-height': '100px',
'border-radius': '50px'
}),
style({
width: '120px',
height: '120px',
'line-height': '120px',
'border-radius': '60px'
}),
style({
width: '110px',
height: '110px',
'line-height': '110px',
'border-radius': '55px'
})
])
)
]),
transition('bump => norm', [
animate(
'0.1s', keyframes([
style({
width: '110px',
height: '110px',
'line-height': '110px',
'border-radius': '55px'
}),
style({
width: '100px',
height: '100px',
'line-height': '100px',
'border-radius': '50px'
})
])
)
])
])
],
templateUrl: './nav.component.html',
styleUrls: ['./nav.component.scss']
}) })
export class NavComponent implements OnInit { export class NavComponent implements OnInit {
Pages = Pages; Pages = Pages;
state: string[] = ['norm', 'norm', 'norm'];
constructor() { } constructor() { }
ngOnInit(): void { ngOnInit(): void {
} }
} }

View File

@ -0,0 +1,2 @@
<h1>Page Not Found?</h1>
<h3>Sorry.</h3>

View File

@ -0,0 +1,5 @@
:host {
display: flex;
flex-direction: column;
text-align: center;
}

View File

@ -0,0 +1,25 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { Page404Component } from './page404.component';
describe('Page404Component', () => {
let component: Page404Component;
let fixture: ComponentFixture<Page404Component>;
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ Page404Component ]
})
.compileComponents();
});
beforeEach(() => {
fixture = TestBed.createComponent(Page404Component);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View File

@ -0,0 +1,15 @@
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-page404',
templateUrl: './page404.component.html',
styleUrls: ['./page404.component.scss']
})
export class Page404Component implements OnInit {
constructor() { }
ngOnInit(): void {
}
}

View File

@ -0,0 +1,4 @@
<a routerLink="{{project.slug}}">
{{project.title + " - " + project.date}}
<span class="right">{{project.category}}</span>
</a>

View File

@ -0,0 +1,24 @@
@use 'src/app/shared/styles/_variables.color' as colors;
:host {
flex-direction: column;
display: flex;
margin-bottom: 20px;
a {
color: colors.$inklets-color-white;
background-color: colors.$inklets-color-black;
border: 2px solid colors.$inklets-color-red-dark;
text-decoration: none;
padding: 15px 20px 15px 20px;
border-radius: 10px;
}
a:hover {
border: 2px solid colors.$inklets-color-red-light;
}
.right {
float: right;
}
}

View File

@ -0,0 +1,25 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { ProjectCardComponent } from './project-card.component';
describe('ProjectCardComponent', () => {
let component: ProjectCardComponent;
let fixture: ComponentFixture<ProjectCardComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ ProjectCardComponent ]
})
.compileComponents();
});
beforeEach(() => {
fixture = TestBed.createComponent(ProjectCardComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View File

@ -0,0 +1,19 @@
import { Component, Input, OnInit } from '@angular/core';
import { Project } from 'src/app/shared/models/project.model';
@Component({
selector: 'app-project-card',
templateUrl: './project-card.component.html',
styleUrls: ['./project-card.component.scss']
})
export class ProjectCardComponent implements OnInit {
@Input()
project: Project;
constructor() { }
ngOnInit(): void {
}
}

View File

@ -0,0 +1,3 @@
<a routerLink="..">&lt; back</a>
<span [innerHTML]="project.content"></span>
<a routerLink="..">&lt; back</a>

View File

@ -0,0 +1,9 @@
@use 'src/app/shared/styles/_variables.color' as colors;
:host {
display: flex;
flex-direction: column;
flex-grow: 1;
overflow-y: auto;
padding: 0 40px 0 40px;
}

View File

@ -0,0 +1,25 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { ProjectComponent } from './project.component';
describe('ProjectComponent', () => {
let component: ProjectComponent;
let fixture: ComponentFixture<ProjectComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ ProjectComponent ]
})
.compileComponents();
});
beforeEach(() => {
fixture = TestBed.createComponent(ProjectComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View File

@ -0,0 +1,53 @@
import { Component, OnDestroy, OnInit, ViewEncapsulation } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { Subject } from 'rxjs';
import { takeUntil } from 'rxjs/operators';
import { Project } from 'src/app/shared/models/project.model';
import { ProjectsService } from '../projects.service';
@Component({
selector: 'app-project',
templateUrl: './project.component.html',
// encapsulation: ViewEncapsulation.None,
styleUrls: ['./project.component.scss']
})
export class ProjectComponent implements OnInit, OnDestroy {
_unsubscribe$: Subject<boolean> = new Subject();
project: Project = {
slug: '',
title: '',
date: '',
category: '',
content: '',
};
constructor(
private route: ActivatedRoute,
private projectsService: ProjectsService
) { }
ngOnInit(): void {
let id: string;
this.route.paramMap.subscribe((params) => {
id = params.get('id');
});
this.projectsService.getProject(id);
this.projectsService.currentProject$
.pipe(takeUntil(this._unsubscribe$))
.subscribe((result: Project) => {
if (!!result) {
this.project = result;
}
});
}
ngOnDestroy(): void {
this._unsubscribe$.next(false);
this._unsubscribe$.complete();
}
}

View File

@ -0,0 +1,21 @@
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { ProjectComponent } from './project/project.component';
import { ProjectsComponent } from './projects.component';
const routes: Routes = [
{
path: '',
component: ProjectsComponent
},
{
path: ':id',
component: ProjectComponent
}
];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule]
})
export class ProjectsRoutingModule {}

View File

@ -1 +1,10 @@
<p>projects works!</p> <h2>Projects on git</h2>
<p>These are my projects as can be found on my <a href="https://gitlab.inkletblot.com/explore">gitlab</a>. Mainly my programming projects that are quality enough for me to be happy for the world to see them. There are more in the works but they are currently private.</p>
<app-project-card *ngFor="let project of gitlabProjects()" [project]="project">
</app-project-card>
<h2>Projects of a personal nature</h2>
<p>This is (will be) a summary of my personal projects be they my homelab, general electronics projects, or anything else.</p>
<app-project-card *ngFor="let project of uncategorizedProjects()" [project]="project">
</app-project-card>

View File

@ -1,10 +1,13 @@
@use 'src/app/shared/styles/_variables.color' as colors; @use 'src/app/shared/styles/_variables.color'as colors;
:host { :host {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
flex-grow: 1; flex-grow: 1;
overflow-y: auto; overflow-y: auto;
padding: 0 20px 0 20px; padding: 0 20px 0 20px;
margin: 0 140px 10px 140px;
} h2 {
border-bottom: colors.$inklets-color-red-light 2px dashed;
}
}

View File

@ -1,18 +1,62 @@
import { Component, OnInit } from '@angular/core'; import { Component, OnDestroy, OnInit } from '@angular/core';
import { Subject } from 'rxjs';
import { takeUntil } from 'rxjs/operators';
import { NavService } from '../nav/nav.service'; import { NavService } from '../nav/nav.service';
import { Pages } from '../shared/models/pages.model'; import { Pages } from '../shared/models/pages.model';
import { Project } from '../shared/models/project.model';
import { ProjectsService } from './projects.service';
@Component({ @Component({
selector: 'app-projects', selector: 'app-projects',
templateUrl: './projects.component.html', templateUrl: './projects.component.html',
styleUrls: ['./projects.component.scss'] styleUrls: ['./projects.component.scss']
}) })
export class ProjectsComponent implements OnInit { export class ProjectsComponent implements OnInit, OnDestroy {
_unsubscribe$: Subject<boolean> = new Subject();
constructor(private navService:NavService) { } allProjects: Array<Project>;
private _gitlabProjects: Array<Project> = new Array<Project>();
private _uncategorizedProjects: Array<Project> = new Array<Project>();
constructor(private navService: NavService, private projectsService: ProjectsService) { }
ngOnInit(): void { ngOnInit(): void {
this.navService.setPageTitle(Pages.PROJECTS); this.navService.setPageTitle(Pages.PROJECTS);
this.projectsService.allProjects$
.pipe(takeUntil(this._unsubscribe$))
.subscribe((result: Project[]) => {
this.allProjects = result;
});
this.projectsService.getProjects();
}
ngOnDestroy(): void {
this._unsubscribe$.next(false);
this._unsubscribe$.complete();
}
filterProjects(): void {
this._gitlabProjects = [];
this._uncategorizedProjects = [];
this.allProjects.forEach((project) => {
if (project.category === 'gitlab') {
this._gitlabProjects.push(project);
} else {
this._uncategorizedProjects.push(project);
}
})
}
gitlabProjects(): Array<Project> {
this.filterProjects();
return this._gitlabProjects;
}
uncategorizedProjects(): Array<Project> {
this.filterProjects();
return this._uncategorizedProjects;
} }
} }

View File

@ -0,0 +1,16 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { ProjectCardComponent } from './project-card/project-card.component';
import { ProjectComponent } from './project/project.component';
import { ProjectsComponent } from './projects.component';
import { ProjectsRoutingModule } from './projects-routing.module';
@NgModule({
declarations: [ProjectsComponent, ProjectCardComponent, ProjectComponent],
imports: [
CommonModule,
ProjectsRoutingModule
],
providers: []
})
export class ProjectsModule { }

View File

@ -0,0 +1,16 @@
import { TestBed } from '@angular/core/testing';
import { ProjectsService } from './projects.service';
describe('ProjectsService', () => {
let service: ProjectsService;
beforeEach(() => {
TestBed.configureTestingModule({});
service = TestBed.inject(ProjectsService);
});
it('should be created', () => {
expect(service).toBeTruthy();
});
});

View File

@ -0,0 +1,110 @@
import { HttpClient, HttpHeaders } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { Router } from '@angular/router';
import { BehaviorSubject } from 'rxjs';
import { Project } from '../shared/models/project.model';
@Injectable({
providedIn: 'root'
})
export class ProjectsService {
private _allProjects = new BehaviorSubject<Array<Project>>([]);
readonly allProjects$ = this._allProjects.asObservable();
private set allProjects(projects: Array<Project>) {
this._allProjects.next(projects);
}
private get allProjects(): Array<Project> {
return this._allProjects.getValue();
}
private _currentProject = new BehaviorSubject<Project>(null);
readonly currentProject$ = this._currentProject.asObservable();
private set currentProject(project: Project) {
this._currentProject.next(project);
}
private get currentProject(): Project {
return this._currentProject.getValue();
}
private _apiErrored = new BehaviorSubject<boolean>(false);
readonly apiErrored$ = this._apiErrored.asObservable();
private set apiErrored(errored: boolean) {
this._apiErrored.next(errored);
}
private get apiErrored(): boolean {
return this._apiErrored.getValue();
}
/**
* I am actively avoiding any kind of environment management, this is a very basic site and currently this is the only api call.
*/
private PROJECT_API_URL = "https://cms.inkletblot.com"
constructor(private http: HttpClient, private router: Router) { }
httpOptions = {
headers: new HttpHeaders({
'Content-Type': 'text/plain'
})
};
getProjects(): void {
this.http
.get(`${this.PROJECT_API_URL}/posts`, this.httpOptions)
.subscribe(
(response: Project[]) => {
if (response) {
// using text/plain so as to not get the preflight options request
// as such : Project[] does not work as expected and objects must be parsed.
this.allProjects = response;
// filter out different categories here currently only one
}
},
(error) => {
this.apiErrored = true;
}
);
}
getSingleProject(id: string): void {
this.http
.get(`${this.PROJECT_API_URL}/post/${id}`, this.httpOptions)
.subscribe(
(response: Project) => {
if (response) {
// using text/plain so as to not get the preflight options request
// as such : Project[] does not work as expected and objects must be parsed.
this.currentProject = response;
// filter out different categories here currently only one
}
},
(error) => {
this.apiErrored = true;
this.router.navigate(['not-found'])
}
);
}
/**
* This is not very efficient code but I'm not planning on having that many projects and (if this turns into a blog) blog posts
* If this does become a general blog, then I will make this a bit more efficient.
* @param id slug of project to get
*/
getProject(id: string): void {
let found = false;
this.allProjects.forEach((project) => {
if (project.slug === id) {
found = true;
this.currentProject = project;
}
})
if (!found) {
this.getSingleProject(id)
}
}
}

View File

@ -16,35 +16,43 @@ export const Links: Array<Link> =
location: "https://gitlab.inkletblot.com/" location: "https://gitlab.inkletblot.com/"
}, },
{ {
name: "forum", name: "streamer",
location: "https://www.inkletblot.com/forum/" location: "https://streamer.inkletblot.com/"
}, },
{ {
name: "books", name: "rancher",
location: "https://www.inkletblot.com/books/" location: "https://rancher.inkletblot.com/"
}, },
{ {
name: "known", name: "hab",
location: "https://www.inkletblot.com/known/" location: "https://hab.inkletblot.com/"
}, },
{ {
name: "tng", name: "tng",
location: "https://www.inkletblot.com/tng/" location: "https://proxy.inkletblot.com/tng/"
},
{
name: "pico",
location: "https://www.inkletblot.com/pico/"
}, },
{ {
name: "pasty", name: "pasty",
location: "https://www.inkletblot.com/pasty/" location: "https://proxy.inkletblot.com/pasty/"
}, },
{ {
name: "mail", name: "mail",
location: "https://www.inkletblot.com/webmail/" location: "https://mail.inkletblot.com/"
}, },
{ {
name: "chk", name: "chk",
location: "https://www.chkseven.com" location: "https://www.chkseven.com"
},
{
name: "pve",
location: "https://pve.inkletblot.com:8006/"
},
{
name: "bitwarden",
location: "https://bw.inkletblot.com/"
},
{
name: "matrix",
location: "https://homeserver.inkletblot.com/"
} }
] ]

View File

@ -6,5 +6,6 @@ export enum Pages {
PROJECTS = 'projects', PROJECTS = 'projects',
GALLERY = 'gallery', GALLERY = 'gallery',
LINKS = 'links', LINKS = 'links',
PET = 'pet' PET = 'pet',
PAGE_404 = 'not-found'
} }

View File

@ -0,0 +1,7 @@
export interface Project {
slug: string,
title: string,
date: string,
category: string,
content: string
}

View File

@ -11,10 +11,11 @@
* e.g. body { background-color: colors.$inklets-color-black; } * e.g. body { background-color: colors.$inklets-color-black; }
*/ */
$inklets-color-black: #0f0f0f; $inklets-color-black: #0e0906;
$inklets-color-white: #fafafa; $inklets-color-grey: #191511;
$inklets-color-bg: #1b262c; $inklets-color-white: #f4efea;
$inklets-color-fg:#0f4c75; $inklets-color-red-dark:#6d1d00;
$inklets-color-highlight-bg:#3282b8; $inklets-color-red-light:#e6906c;
$inklets-color-highlight-fg:#bbe1fa; $inklets-color-blue-dark: #181846;
$inklets-color-text-highlight: #009fc1; $inklets-color-blue-light:#6a9ccc;
$inklets-color-text-highlight: #f5d870;

BIN
src/assets/envelope.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
src/assets/head.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.0 KiB

BIN
src/assets/linkedin.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

View File

@ -13,4 +13,4 @@ export const environment = {
* This import should be commented out in production mode because it will have a negative impact * This import should be commented out in production mode because it will have a negative impact
* on performance if an error is thrown. * on performance if an error is thrown.
*/ */
// import 'zone.js/dist/zone-error'; // Included with Angular CLI. // import 'zone.js/plugins/zone-error'; // Included with Angular CLI.

View File

@ -18,18 +18,6 @@
* BROWSER POLYFILLS * BROWSER POLYFILLS
*/ */
/**
* IE11 requires the following for NgClass support on SVG elements
*/
// import 'classlist.js'; // Run `npm install --save classlist.js`.
/**
* 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 * By default, zone.js will patch all possible macroTask and DomEvents
* user can disable parts of macroTask/DomEvents patch by setting following flags * user can disable parts of macroTask/DomEvents patch by setting following flags
@ -57,7 +45,7 @@
/*************************************************************************************************** /***************************************************************************************************
* Zone JS is required by default for Angular itself. * Zone JS is required by default for Angular itself.
*/ */
import 'zone.js/dist/zone'; // Included with Angular CLI. import 'zone.js'; // Included with Angular CLI.
/*************************************************************************************************** /***************************************************************************************************

View File

@ -8,6 +8,101 @@ html, body {
body { body {
margin: 0; margin: 0;
font-family: Roboto, 'Helvetica Neue', sans-serif; font-family: Roboto, 'Helvetica Neue', sans-serif;
background-color: colors.$inklets-color-black; background-color: colors.$inklets-color-grey;
color: colors.$inklets-color-white; color: colors.$inklets-color-white;
}
/*
Codehilite styles for api content
*/
pre { line-height: 125%; }
td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
td.linenos .special { color: #979797; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
span.linenos.special { color: #979797; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
.codehilite .hll { background-color: #ffffcc }
.codehilite { background: colors.$inklets-color-black; padding: 5px; }
.codehilite .c { color: #408080; font-style: italic } /* Comment */
.codehilite .err { border: 1px solid #FF0000 } /* Error */
.codehilite .k { color: #008000; font-weight: bold } /* Keyword */
.codehilite .o { color: #666666 } /* Operator */
.codehilite .ch { color: #408080; font-style: italic } /* Comment.Hashbang */
.codehilite .cm { color: #408080; font-style: italic } /* Comment.Multiline */
.codehilite .cp { color: #BC7A00 } /* Comment.Preproc */
.codehilite .cpf { color: #408080; font-style: italic } /* Comment.PreprocFile */
.codehilite .c1 { color: #408080; font-style: italic } /* Comment.Single */
.codehilite .cs { color: #408080; font-style: italic } /* Comment.Special */
.codehilite .gd { color: #A00000 } /* Generic.Deleted */
.codehilite .ge { font-style: italic } /* Generic.Emph */
.codehilite .gr { color: #FF0000 } /* Generic.Error */
.codehilite .gh { color: #000080; font-weight: bold } /* Generic.Heading */
.codehilite .gi { color: #00A000 } /* Generic.Inserted */
.codehilite .go { color: #888888 } /* Generic.Output */
.codehilite .gp { color: #000080; font-weight: bold } /* Generic.Prompt */
.codehilite .gs { font-weight: bold } /* Generic.Strong */
.codehilite .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
.codehilite .gt { color: #0044DD } /* Generic.Traceback */
.codehilite .kc { color: #008000; font-weight: bold } /* Keyword.Constant */
.codehilite .kd { color: #008000; font-weight: bold } /* Keyword.Declaration */
.codehilite .kn { color: #008000; font-weight: bold } /* Keyword.Namespace */
.codehilite .kp { color: #008000 } /* Keyword.Pseudo */
.codehilite .kr { color: #008000; font-weight: bold } /* Keyword.Reserved */
.codehilite .kt { color: #B00040 } /* Keyword.Type */
.codehilite .m { color: #666666 } /* Literal.Number */
.codehilite .s { color: #BA2121 } /* Literal.String */
.codehilite .na { color: #7D9029 } /* Name.Attribute */
.codehilite .nb { color: #008000 } /* Name.Builtin */
.codehilite .nc { color: #0000FF; font-weight: bold } /* Name.Class */
.codehilite .no { color: #880000 } /* Name.Constant */
.codehilite .nd { color: #AA22FF } /* Name.Decorator */
.codehilite .ni { color: #999999; font-weight: bold } /* Name.Entity */
.codehilite .ne { color: #D2413A; font-weight: bold } /* Name.Exception */
.codehilite .nf { color: #0000FF } /* Name.Function */
.codehilite .nl { color: #A0A000 } /* Name.Label */
.codehilite .nn { color: #0000FF; font-weight: bold } /* Name.Namespace */
.codehilite .nt { color: #008000; font-weight: bold } /* Name.Tag */
.codehilite .nv { color: #19177C } /* Name.Variable */
.codehilite .ow { color: #AA22FF; font-weight: bold } /* Operator.Word */
.codehilite .w { color: #bbbbbb } /* Text.Whitespace */
.codehilite .mb { color: #666666 } /* Literal.Number.Bin */
.codehilite .mf { color: #666666 } /* Literal.Number.Float */
.codehilite .mh { color: #666666 } /* Literal.Number.Hex */
.codehilite .mi { color: #666666 } /* Literal.Number.Integer */
.codehilite .mo { color: #666666 } /* Literal.Number.Oct */
.codehilite .sa { color: #BA2121 } /* Literal.String.Affix */
.codehilite .sb { color: #BA2121 } /* Literal.String.Backtick */
.codehilite .sc { color: #BA2121 } /* Literal.String.Char */
.codehilite .dl { color: #BA2121 } /* Literal.String.Delimiter */
.codehilite .sd { color: #BA2121; font-style: italic } /* Literal.String.Doc */
.codehilite .s2 { color: #BA2121 } /* Literal.String.Double */
.codehilite .se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */
.codehilite .sh { color: #BA2121 } /* Literal.String.Heredoc */
.codehilite .si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */
.codehilite .sx { color: #008000 } /* Literal.String.Other */
.codehilite .sr { color: #BB6688 } /* Literal.String.Regex */
.codehilite .s1 { color: #BA2121 } /* Literal.String.Single */
.codehilite .ss { color: #19177C } /* Literal.String.Symbol */
.codehilite .bp { color: #008000 } /* Name.Builtin.Pseudo */
.codehilite .fm { color: #0000FF } /* Name.Function.Magic */
.codehilite .vc { color: #19177C } /* Name.Variable.Class */
.codehilite .vg { color: #19177C } /* Name.Variable.Global */
.codehilite .vi { color: #19177C } /* Name.Variable.Instance */
.codehilite .vm { color: #19177C } /* Name.Variable.Magic */
.codehilite .il { color: #666666 } /* Literal.Number.Integer.Long */
* a {
text-decoration: none;
color: colors.$inklets-color-text-highlight;
}
* a:hover {
color: colors.$inklets-color-blue-light;
}
* img {
max-width: 400px;
max-height: 500px;
} }

View File

@ -1,6 +1,6 @@
// This file is required by karma.conf.js and loads recursively all the .spec and framework files // This file is required by karma.conf.js and loads recursively all the .spec and framework files
import 'zone.js/dist/zone-testing'; import 'zone.js/testing';
import { getTestBed } from '@angular/core/testing'; import { getTestBed } from '@angular/core/testing';
import { import {
BrowserDynamicTestingModule, BrowserDynamicTestingModule,
@ -17,7 +17,9 @@ declare const require: {
// First, initialize the Angular testing environment. // First, initialize the Angular testing environment.
getTestBed().initTestEnvironment( getTestBed().initTestEnvironment(
BrowserDynamicTestingModule, BrowserDynamicTestingModule,
platformBrowserDynamicTesting() platformBrowserDynamicTesting(), {
teardown: { destroyAfterEach: false }
}
); );
// Then we find all the tests. // Then we find all the tests.
const context = require.context('./', true, /\.spec\.ts$/); const context = require.context('./', true, /\.spec\.ts$/);