Skip to content

Commit

Permalink
Merge pull request #103 from oatear/feature/update-dependencies
Browse files Browse the repository at this point in the history
Update dependencies + Add new links
  • Loading branch information
hristoiankov authored Jan 13, 2025
2 parents 86ddabb + 51b8566 commit f39989f
Show file tree
Hide file tree
Showing 10 changed files with 4,826 additions and 4,131 deletions.
5 changes: 4 additions & 1 deletion cider-app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ Run `ng generate component component-name` to generate a new component. You can
## List outdated dependencies
Run `npm outdated`

## Update dependency
## Update all dependencies (from current to wanted)
Run `npm update`

## Update specific dependency
Run `ng update library@version` or `npm update library@version`. If it doesn't work use `ng update library@version --allow-dirty`.

## Install dependencies from package-lock.json only
Expand Down
8,891 changes: 4,770 additions & 4,121 deletions cider-app/package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion cider-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"author": {
"name": "Hristo Iankov"
},
"version": "0.4.8",
"version": "0.4.10",
"repository": "https://github.com/oatear/cider",
"main": "electron-app/dist/main.js",
"scripts": {
Expand Down
7 changes: 5 additions & 2 deletions cider-app/src/app/data-services/data-services.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@ import { EntityNamePipe } from './pipes/entity-name.pipe';
import { EntityListPipe } from './pipes/entity-list.pipe';
import { EntityPipe } from './pipes/entity.pipe';
import { EntityListCachedPipe } from './pipes/entity-list-cached.pipe';
import { ToStringPipe } from './pipes/to-string.pipe';

@NgModule({
declarations: [
EntityNamePipe,
EntityListPipe,
EntityListCachedPipe,
EntityPipe,
EntityListCachedPipe
ToStringPipe
],
imports: [
CommonModule
Expand All @@ -19,7 +21,8 @@ import { EntityListCachedPipe } from './pipes/entity-list-cached.pipe';
EntityNamePipe,
EntityListPipe,
EntityListCachedPipe,
EntityPipe
EntityPipe,
ToStringPipe
]
})
export class DataServicesModule { }
8 changes: 8 additions & 0 deletions cider-app/src/app/data-services/pipes/to-string.pipe.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { ToStringPipe } from './to-string.pipe';

describe('ToStringPipe', () => {
it('create an instance', () => {
const pipe = new ToStringPipe();
expect(pipe).toBeTruthy();
});
});
12 changes: 12 additions & 0 deletions cider-app/src/app/data-services/pipes/to-string.pipe.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { Pipe, PipeTransform } from '@angular/core';

@Pipe({
name: 'toString'
})
export class ToStringPipe implements PipeTransform {

transform(value: any): string {
return String(value);
}

}
4 changes: 2 additions & 2 deletions cider-app/src/app/entity-dialog/entity-dialog.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<div *ngIf="col.service" class="p-field">
<label [for]="col.field">{{col.header}}</label>
<p-dropdown [options]="(col.service | entityList | async) || []" [(ngModel)]="entity[col.field]"
[id]="col.field" optionLabel="name" [optionValue]="col.service.getIdField()" class="p-mr-2"
[id]="col.field | toString" optionLabel="name" [optionValue]="col.service.getIdField()" class="p-mr-2"
appendTo="body"></p-dropdown>
</div>
</ng-container>
Expand All @@ -18,7 +18,7 @@
<div class="p-field">
<label [for]="col.field">{{col.header}}</label>
<p-dropdown [options]="col.options || []" [(ngModel)]="entity[col.field]"
[id]="col.field" class="p-mr-2" appendTo="body"></p-dropdown>
[id]="col.field | toString" class="p-mr-2" appendTo="body"></p-dropdown>
</div>
</ng-container>
<ng-container *ngSwitchCase="!col.hidden && col.type === FieldType.optionList
Expand Down
6 changes: 4 additions & 2 deletions cider-app/src/app/site-footer/site-footer.component.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
<div class="footer">
<span>CIDEr (Card IDE)</span>
<span>{{
<span class="fill">{{
!(projectHomeUrl$ | async) && (projectUnsaved$ | async) ? 'Untitled' : ''
}}
{{projectHomeUrl$ | async}}
{{(projectUnsaved$ | async) ? '*' : ''}}</span>
<span>Copyright Ⓒ 2023</span>
<span class="p-mr-2">Copyright Ⓒ 2025 Oatear LLC</span>
<p-button icon="pi pi-discord" [rounded]="true" [text]="true" (onClick)="navigateToDiscord()"/>
<p-button icon="pi pi-github" [rounded]="true" [text]="true" (onClick)="navigateToGithub()"/>
</div>
15 changes: 13 additions & 2 deletions cider-app/src/app/site-footer/site-footer.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,19 @@
font-weight: 400;
// background-color: var(--surface-a);
background-color: #343e4d;
color: rgba(255, 255, 255, 0.6);
color: #bfbfbf;
display: flex;
align-items: center;
justify-content: space-between;
justify-content: flex-start;
}

.footer > * {
&.fill {
flex-grow: 1;
text-align: center;
}
}

:host ::ng-deep .p-button.p-button-text {
color: #bfbfbf;
}
7 changes: 7 additions & 0 deletions cider-app/src/app/site-footer/site-footer.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,11 @@ export class SiteFooterComponent implements OnInit {
ngOnInit(): void {
}

navigateToGithub() {
window.location.href = 'https://github.com/oatear/cider'
}
navigateToDiscord() {
window.location.href = 'https://discord.gg/8buTjPHh'
}

}

0 comments on commit f39989f

Please sign in to comment.