Merge with local folder
0
.editorconfig
Normal file → Executable file
2
.gitignore
vendored
Normal file → Executable file
|
|
@ -44,3 +44,5 @@ testem.log
|
||||||
# System Files
|
# System Files
|
||||||
.DS_Store
|
.DS_Store
|
||||||
Thumbs.db
|
Thumbs.db
|
||||||
|
|
||||||
|
.firebase
|
||||||
|
|
|
||||||
0
.prettierrc
Normal file → Executable file
0
README.md
Normal file → Executable file
0
angular.json
Normal file → Executable file
13
firebase.json
Executable file
|
|
@ -0,0 +1,13 @@
|
||||||
|
{
|
||||||
|
"hosting": {
|
||||||
|
"public": "dist/frontend",
|
||||||
|
"site": "towers-schmelczer-dev",
|
||||||
|
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
|
||||||
|
"rewrites": [
|
||||||
|
{
|
||||||
|
"source": "**",
|
||||||
|
"destination": "/index.html"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
21387
package-lock.json
generated
Executable file
4
package.json
Normal file → Executable file
|
|
@ -24,13 +24,14 @@
|
||||||
"@angular/platform-browser-dynamic": "~7.2.0",
|
"@angular/platform-browser-dynamic": "~7.2.0",
|
||||||
"@angular/router": "~7.2.0",
|
"@angular/router": "~7.2.0",
|
||||||
"core-js": "^2.5.4",
|
"core-js": "^2.5.4",
|
||||||
|
"ng": "^0.0.0",
|
||||||
"rxjs": "~6.3.3",
|
"rxjs": "~6.3.3",
|
||||||
"tslib": "^1.10.0",
|
"tslib": "^1.10.0",
|
||||||
"uuid": "^3.3.3",
|
"uuid": "^3.3.3",
|
||||||
"zone.js": "~0.8.26"
|
"zone.js": "~0.8.26"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@angular-devkit/build-angular": "~0.13.0",
|
"@angular-devkit/build-angular": "^0.13.10",
|
||||||
"@angular/cli": "~7.3.8",
|
"@angular/cli": "~7.3.8",
|
||||||
"@angular/compiler-cli": "~7.2.0",
|
"@angular/compiler-cli": "~7.2.0",
|
||||||
"@angular/language-service": "~7.2.0",
|
"@angular/language-service": "~7.2.0",
|
||||||
|
|
@ -42,6 +43,7 @@
|
||||||
"npm-run-all": "^4.1.5",
|
"npm-run-all": "^4.1.5",
|
||||||
"prettier": "^1.18.2",
|
"prettier": "^1.18.2",
|
||||||
"pretty-quick": "^1.11.1",
|
"pretty-quick": "^1.11.1",
|
||||||
|
"sass": "^1.32.5",
|
||||||
"ts-node": "~7.0.0",
|
"ts-node": "~7.0.0",
|
||||||
"tslint": "~5.11.0",
|
"tslint": "~5.11.0",
|
||||||
"typescript": "~3.2.2"
|
"typescript": "~3.2.2"
|
||||||
|
|
|
||||||
0
src/app/app-routing.module.ts
Normal file → Executable file
0
src/app/app.component.html
Normal file → Executable file
0
src/app/app.component.scss
Normal file → Executable file
0
src/app/app.component.ts
Normal file → Executable file
0
src/app/app.module.ts
Normal file → Executable file
0
src/app/components/modal/modal.component.html
Normal file → Executable file
0
src/app/components/modal/modal.component.scss
Normal file → Executable file
0
src/app/components/modal/modal.component.ts
Normal file → Executable file
0
src/app/components/modal/modals/blocks/blocks.component.html
Normal file → Executable file
0
src/app/components/modal/modals/blocks/blocks.component.scss
Normal file → Executable file
0
src/app/components/modal/modals/blocks/blocks.component.ts
Normal file → Executable file
0
src/app/components/modal/modals/get-started/get-started.component.html
Normal file → Executable file
0
src/app/components/modal/modals/get-started/get-started.component.scss
Normal file → Executable file
0
src/app/components/modal/modals/get-started/get-started.component.ts
Normal file → Executable file
0
src/app/components/modal/modals/remove-page/remove-page.component.html
Normal file → Executable file
0
src/app/components/modal/modals/remove-page/remove-page.component.scss
Normal file → Executable file
0
src/app/components/modal/modals/remove-page/remove-page.component.ts
Normal file → Executable file
0
src/app/components/modal/modals/remove-tower/remove-tower.component.html
Normal file → Executable file
0
src/app/components/modal/modals/remove-tower/remove-tower.component.scss
Normal file → Executable file
0
src/app/components/modal/modals/remove-tower/remove-tower.component.ts
Normal file → Executable file
0
src/app/components/modal/modals/settings/settings.component.html
Normal file → Executable file
0
src/app/components/modal/modals/settings/settings.component.scss
Normal file → Executable file
0
src/app/components/modal/modals/settings/settings.component.ts
Normal file → Executable file
0
src/app/components/pages/page/page.component.html
Normal file → Executable file
0
src/app/components/pages/page/page.component.scss
Normal file → Executable file
0
src/app/components/pages/page/page.component.ts
Normal file → Executable file
0
src/app/components/pages/page/tower/block/block.component.html
Normal file → Executable file
0
src/app/components/pages/page/tower/block/block.component.scss
Normal file → Executable file
0
src/app/components/pages/page/tower/block/block.component.ts
Normal file → Executable file
0
src/app/components/pages/page/tower/tasks/tasks.component.html
Normal file → Executable file
0
src/app/components/pages/page/tower/tasks/tasks.component.scss
Normal file → Executable file
0
src/app/components/pages/page/tower/tasks/tasks.component.ts
Normal file → Executable file
5
src/app/components/pages/page/tower/tower.component.html
Normal file → Executable file
|
|
@ -19,12 +19,13 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<label for="tower-name" class="hidden">Card name</label>
|
<label class="hidden">
|
||||||
|
Card name
|
||||||
<input
|
<input
|
||||||
id="tower-name"
|
|
||||||
type="text"
|
type="text"
|
||||||
placeholder="name…"
|
placeholder="name…"
|
||||||
[(ngModel)]="towerName"
|
[(ngModel)]="towerName"
|
||||||
[ngStyle]="{ color: (tower$ | async)?.baseColor | color }"
|
[ngStyle]="{ color: (tower$ | async)?.baseColor | color }"
|
||||||
/>
|
/>
|
||||||
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
0
src/app/components/pages/page/tower/tower.component.scss
Normal file → Executable file
2
src/app/components/pages/page/tower/tower.component.ts
Normal file → Executable file
|
|
@ -40,7 +40,7 @@ export class TowerComponent implements OnInit {
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.tower$.subscribe(value => {
|
this.tower$.subscribe(value => {
|
||||||
console.log(this.tower, value);
|
// console.log(this.tower, value);
|
||||||
if (value) {
|
if (value) {
|
||||||
this.styledBlocks = value.coloredBlocks
|
this.styledBlocks = value.coloredBlocks
|
||||||
.filter(b => b.isDone)
|
.filter(b => b.isDone)
|
||||||
|
|
|
||||||
0
src/app/components/pages/pages.component.html
Normal file → Executable file
0
src/app/components/pages/pages.component.scss
Normal file → Executable file
0
src/app/components/pages/pages.component.ts
Normal file → Executable file
0
src/app/components/shared/double-slider/double-slider.component.html
Normal file → Executable file
0
src/app/components/shared/double-slider/double-slider.component.scss
Normal file → Executable file
0
src/app/components/shared/double-slider/double-slider.component.ts
Normal file → Executable file
0
src/app/components/shared/select-add/select-add.component.html
Normal file → Executable file
0
src/app/components/shared/select-add/select-add.component.scss
Normal file → Executable file
4
src/app/components/shared/select-add/select-add.component.ts
Normal file → Executable file
|
|
@ -50,7 +50,7 @@ export class SelectAddComponent {
|
||||||
}
|
}
|
||||||
|
|
||||||
changeOption(from: string, event) {
|
changeOption(from: string, event) {
|
||||||
console.log(event);
|
// console.log(event);
|
||||||
this.optionChange.emit({
|
this.optionChange.emit({
|
||||||
from,
|
from,
|
||||||
to: event.target.value
|
to: event.target.value
|
||||||
|
|
@ -99,7 +99,7 @@ export class SelectAddComponent {
|
||||||
if (this.isOpen && this.top && this.bottom) {
|
if (this.isOpen && this.top && this.bottom) {
|
||||||
const topHeight = this.top.nativeElement.clientHeight;
|
const topHeight = this.top.nativeElement.clientHeight;
|
||||||
const bottomHeight = this.bottom.nativeElement.clientHeight;
|
const bottomHeight = this.bottom.nativeElement.clientHeight;
|
||||||
console.log(topHeight, bottomHeight);
|
// console.log(topHeight, bottomHeight);
|
||||||
return `${topHeight + bottomHeight}px`;
|
return `${topHeight + bottomHeight}px`;
|
||||||
}
|
}
|
||||||
return `100%`;
|
return `100%`;
|
||||||
|
|
|
||||||
0
src/app/components/shared/toggle/toggle.component.html
Normal file → Executable file
0
src/app/components/shared/toggle/toggle.component.scss
Normal file → Executable file
0
src/app/components/shared/toggle/toggle.component.ts
Normal file → Executable file
0
src/app/interfaces/color.ts
Normal file → Executable file
0
src/app/interfaces/persistance/block.ts
Normal file → Executable file
0
src/app/interfaces/persistance/data.ts
Normal file → Executable file
0
src/app/interfaces/persistance/page.ts
Normal file → Executable file
0
src/app/interfaces/persistance/tower.ts
Normal file → Executable file
0
src/app/interfaces/persistance/unique.ts
Normal file → Executable file
0
src/app/interfaces/range.ts
Normal file → Executable file
0
src/app/interfaces/serializable.ts
Normal file → Executable file
0
src/app/model/block.ts
Normal file → Executable file
0
src/app/model/data.ts
Normal file → Executable file
0
src/app/model/page.ts
Normal file → Executable file
0
src/app/model/tower.ts
Normal file → Executable file
0
src/app/pipes/color.pipe.ts
Normal file → Executable file
0
src/app/pipes/format-date.pipe.ts
Normal file → Executable file
2
src/app/services/api.service.ts
Normal file → Executable file
|
|
@ -2,7 +2,7 @@ import { Injectable } from '@angular/core';
|
||||||
import { HttpClient, HttpHeaders } from '@angular/common/http';
|
import { HttpClient, HttpHeaders } from '@angular/common/http';
|
||||||
import { Unique } from '../store/unique';
|
import { Unique } from '../store/unique';
|
||||||
|
|
||||||
const API_URI = 'https://schmelczer.dev/api/store/';
|
const API_URI = 'https://store.schmelczer.dev/api/store/';
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root'
|
||||||
|
|
|
||||||
0
src/app/services/cancel.service.ts
Normal file → Executable file
0
src/app/services/data.service.ts
Normal file → Executable file
0
src/app/services/map-store.service.ts
Normal file → Executable file
0
src/app/services/modal.service.ts
Normal file → Executable file
0
src/app/store/inner-node.ts
Normal file → Executable file
4
src/app/store/node.ts
Normal file → Executable file
|
|
@ -40,7 +40,7 @@ export abstract class Node extends Unique implements NodeState {
|
||||||
}
|
}
|
||||||
|
|
||||||
public log() {
|
public log() {
|
||||||
console.log(this._log());
|
// console.log(this._log());
|
||||||
console.log(`All in all, there are ${Unique.ObjectCount} objects.`);
|
// console.log(`All in all, there are ${Unique.ObjectCount} objects.`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
0
src/app/store/root.ts
Normal file → Executable file
4
src/app/store/unique.ts
Normal file → Executable file
|
|
@ -8,10 +8,10 @@ export class Unique implements ISerializable, IUnique {
|
||||||
constructor(id?: string) {
|
constructor(id?: string) {
|
||||||
if (id) {
|
if (id) {
|
||||||
this._id = id;
|
this._id = id;
|
||||||
console.log('got id ' + id);
|
// console.log('got id ' + id);
|
||||||
} else {
|
} else {
|
||||||
this.setUniqueness();
|
this.setUniqueness();
|
||||||
console.log('unique ' + this.id);
|
// console.log('unique ' + this.id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
0
src/app/utils/color.ts
Normal file → Executable file
0
src/app/utils/hash.ts
Normal file → Executable file
0
src/app/utils/range.ts
Normal file → Executable file
0
src/app/utils/top.ts
Normal file → Executable file
0
src/assets/.gitkeep
Normal file → Executable file
0
src/assets/arrow.svg
Normal file → Executable file
|
Before Width: | Height: | Size: 746 B After Width: | Height: | Size: 746 B |
0
src/assets/pen.svg
Normal file → Executable file
|
Before Width: | Height: | Size: 737 B After Width: | Height: | Size: 737 B |
0
src/assets/plus-sign.svg
Normal file → Executable file
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
0
src/assets/trash.svg
Normal file → Executable file
|
Before Width: | Height: | Size: 3 KiB After Width: | Height: | Size: 3 KiB |
0
src/assets/x-sign.svg
Normal file → Executable file
|
Before Width: | Height: | Size: 816 B After Width: | Height: | Size: 816 B |
0
src/browserslist
Normal file → Executable file
0
src/environments/environment.prod.ts
Normal file → Executable file
0
src/environments/environment.ts
Normal file → Executable file
0
src/favicon.ico
Normal file → Executable file
|
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 5.3 KiB |