mirror of
https://gitlab.com/walljm/dynamicbible.git
synced 2025-07-26 17:10:11 -04:00
Compare commits
8 Commits
v4.0.0-202
...
main
Author | SHA1 | Date | |
---|---|---|---|
![]() |
c9534c3b30 | ||
![]() |
7dc029ec4e | ||
![]() |
b8bca83612 | ||
![]() |
9781c1ff49 | ||
![]() |
4b41ba1048 | ||
![]() |
0a9a147220 | ||
![]() |
9af7e31a70 | ||
![]() |
646a9a9292 |
@ -6,7 +6,7 @@ stages:
|
||||
|
||||
build-android:
|
||||
stage: build
|
||||
image: walljm/gradle_android:8.0.2-jdk17-33-node1
|
||||
image: walljm/gradle_android:8.2.1-jdk17-android34-node22
|
||||
before_script:
|
||||
- cd ./src/android
|
||||
- bash ./install-sdk.sh
|
||||
@ -29,7 +29,7 @@ build-android:
|
||||
|
||||
test:
|
||||
stage: test
|
||||
image: walljm/node-chrome-headless:21.6
|
||||
image: walljm/node-chrome-headless:22.4-bookworm
|
||||
variables:
|
||||
NODE_OPTIONS: "--max_old_space_size=2048"
|
||||
script:
|
||||
@ -68,7 +68,7 @@ deploy-prod-site:
|
||||
|
||||
deploy-android:
|
||||
stage: prod
|
||||
image: walljm/gradle_android:8.0.2-jdk17-33-node1
|
||||
image: walljm/gradle_android:8.2.1-jdk17-android34-node22
|
||||
needs:
|
||||
- build-android
|
||||
before_script:
|
||||
|
@ -1,4 +1,4 @@
|
||||
FROM node:21.6.2-bookworm
|
||||
FROM node:22.4-bookworm
|
||||
|
||||
RUN apt-get update -qqy \
|
||||
&& apt-get -qqy install \
|
||||
|
@ -1,2 +1,2 @@
|
||||
docker build -t walljm/node-chrome-headless:21.6 .
|
||||
docker push walljm/node-chrome-headless:21.6
|
||||
docker build -t walljm/node-chrome-headless:22.4-bookworm .
|
||||
docker push walljm/node-chrome-headless:22.4-bookworm
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
FROM gradle:8.0.2-jdk17-focal
|
||||
FROM gradle:8.2.1-jdk17-focal
|
||||
|
||||
# Install Git and dependencies
|
||||
RUN apt-get update \
|
||||
@ -7,7 +7,7 @@ RUN apt-get update \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists /var/cache/apt
|
||||
|
||||
RUN curl -L -o node.tar.gz "https://nodejs.org/dist/v21.6.2/node-v21.6.2-linux-x64.tar.gz" && \
|
||||
RUN curl -L -o node.tar.gz "https://nodejs.org/dist/v22.4.1/node-v22.4.1-linux-x64.tar.gz" && \
|
||||
tar -xzf node.tar.gz -C /usr/local --strip-components=1 && \
|
||||
rm node.tar.gz && \
|
||||
ln -s /usr/local/bin/node /usr/local/bin/nodejs
|
||||
@ -42,7 +42,7 @@ RUN $ANDROID_SDK_ROOT/cmdline-tools/latest/bin/sdkmanager --update
|
||||
RUN $ANDROID_SDK_ROOT/cmdline-tools/latest/bin/sdkmanager --verbose \
|
||||
"build-tools;34.0.0" \
|
||||
"build-tools;30.0.3" \
|
||||
"platforms;android-33" \
|
||||
"platforms;android-34" \
|
||||
"platform-tools"
|
||||
|
||||
|
||||
|
@ -1,2 +1,2 @@
|
||||
docker build -t walljm/gradle_android:8.0.2-jdk17-33-node1 .
|
||||
docker push walljm/gradle_android:8.0.2-jdk17-33-node1
|
||||
docker build -t walljm/gradle_android:8.2.1-jdk17-android34-node22 .
|
||||
docker push walljm/gradle_android:8.2.1-jdk17-android34-node22
|
||||
|
@ -85,7 +85,7 @@ dependencies {
|
||||
implementation 'com.google.firebase:firebase-auth'
|
||||
|
||||
// Also declare the dependency for the Google Play services library and specify its version
|
||||
implementation 'com.google.android.gms:play-services-auth:21.0.0'
|
||||
implementation 'com.google.android.gms:play-services-auth:21.2.0'
|
||||
|
||||
}
|
||||
|
||||
|
@ -7,8 +7,8 @@ buildscript {
|
||||
mavenCentral()
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:8.0.2'
|
||||
classpath 'com.google.gms:google-services:4.4.1'
|
||||
classpath 'com.android.tools.build:gradle:8.2.1'
|
||||
classpath 'com.google.gms:google-services:4.4.2'
|
||||
classpath "com.github.triplet.gradle:play-publisher:3.8.1"
|
||||
|
||||
// NOTE: Do not place your application dependencies here; they belong
|
||||
|
@ -9,7 +9,7 @@ buildscript {
|
||||
mavenCentral()
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:8.0.0'
|
||||
classpath 'com.android.tools.build:gradle:8.2.1'
|
||||
}
|
||||
}
|
||||
|
||||
@ -17,10 +17,10 @@ apply plugin: 'com.android.library'
|
||||
|
||||
android {
|
||||
namespace "capacitor.cordova.android.plugins"
|
||||
compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 33
|
||||
compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 34
|
||||
defaultConfig {
|
||||
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 22
|
||||
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 33
|
||||
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 34
|
||||
versionCode 1
|
||||
versionName "1.0"
|
||||
}
|
||||
|
@ -1,15 +1,15 @@
|
||||
ext {
|
||||
minSdkVersion = 22
|
||||
firebaseMessagingVersion = '23.0.5'
|
||||
compileSdkVersion = 33
|
||||
targetSdkVersion = 33
|
||||
androidxActivityVersion = '1.7.0'
|
||||
firebaseMessagingVersion = '23.3.1'
|
||||
compileSdkVersion = 34
|
||||
targetSdkVersion = 34
|
||||
androidxActivityVersion = '1.8.0'
|
||||
androidxAppCompatVersion = '1.6.1'
|
||||
androidxCoordinatorLayoutVersion = '1.2.0'
|
||||
androidxCoreVersion = '1.10.0'
|
||||
androidxFragmentVersion = '1.5.6'
|
||||
androidxCoreVersion = '1.12.0'
|
||||
androidxFragmentVersion = '1.6.2'
|
||||
coreSplashScreenVersion = '1.0.1'
|
||||
androidxWebkitVersion = '1.6.1'
|
||||
androidxWebkitVersion = '1.9.0'
|
||||
junitVersion = '4.13.2'
|
||||
androidxJunitVersion = '1.1.5'
|
||||
androidxEspressoCoreVersion = '3.5.1'
|
||||
|
@ -5,9 +5,9 @@ PODS:
|
||||
- AppAuth/Core (1.7.1)
|
||||
- AppAuth/ExternalUserAgent (1.7.1):
|
||||
- AppAuth/Core
|
||||
- Capacitor (5.7.0):
|
||||
- Capacitor (6.1.0):
|
||||
- CapacitorCordova
|
||||
- CapacitorCordova (5.7.0)
|
||||
- CapacitorCordova (6.1.0)
|
||||
- CodetrixStudioCapacitorGoogleAuth (0.0.1):
|
||||
- Capacitor
|
||||
- GoogleSignIn (~> 6.2.4)
|
||||
@ -42,8 +42,8 @@ EXTERNAL SOURCES:
|
||||
|
||||
SPEC CHECKSUMS:
|
||||
AppAuth: e93b919be5dbcbba49555011ce94f7d716368574
|
||||
Capacitor: fc155ee2ee45a2093d716f13cf5aa5a865e2d85a
|
||||
CapacitorCordova: e825fce1a2e14e4b5730641c7e098dccf74397b7
|
||||
Capacitor: 187bd7847b6f71467015a20200a1a071be3e5f14
|
||||
CapacitorCordova: be703980ca797f847c3356f78fa175d21c8330c2
|
||||
CodetrixStudioCapacitorGoogleAuth: fcce058390347c1ce5d8ac4764bdf1f5c1ee233b
|
||||
GoogleSignIn: 5651ce3a61e56ca864160e79b484cd9ed3f49b7a
|
||||
GTMAppAuth: 0ff230db599948a9ad7470ca667337803b3fc4dd
|
||||
|
12659
src/package-lock.json
generated
12659
src/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -16,51 +16,51 @@
|
||||
},
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@angular/animations": "^17.2.3",
|
||||
"@angular/cdk": "^17.2.1",
|
||||
"@angular/common": "^17.2.3",
|
||||
"@angular/compiler": "^17.2.3",
|
||||
"@angular/core": "^17.2.3",
|
||||
"@angular/fire": "^17.0.1",
|
||||
"@angular/forms": "^17.2.3",
|
||||
"@angular/material": "^17.2.1",
|
||||
"@angular/platform-browser": "^17.2.3",
|
||||
"@angular/platform-browser-dynamic": "^17.2.3",
|
||||
"@angular/router": "^17.2.3",
|
||||
"@capacitor/android": "^5.7.0",
|
||||
"@capacitor/core": "^5.7.0",
|
||||
"@capacitor/ios": "^5.7.0",
|
||||
"@angular/animations": "^18.1.0",
|
||||
"@angular/cdk": "^18.0.6",
|
||||
"@angular/common": "^18.1.0",
|
||||
"@angular/compiler": "^18.1.0",
|
||||
"@angular/core": "^18.1.0",
|
||||
"@angular/fire": "^18.0.1",
|
||||
"@angular/forms": "^18.1.0",
|
||||
"@angular/material": "^18.0.6",
|
||||
"@angular/platform-browser": "^18.1.0",
|
||||
"@angular/platform-browser-dynamic": "^18.1.0",
|
||||
"@angular/router": "^18.1.0",
|
||||
"@capacitor/android": "^6.0.0",
|
||||
"@capacitor/core": "^6.0.0",
|
||||
"@capacitor/ios": "^6.0.0",
|
||||
"@codetrix-studio/capacitor-google-auth": "^3.4.0-rc.0",
|
||||
"@ngx-pwa/local-storage": "^17.0.0",
|
||||
"@ngx-pwa/local-storage": "^18.0.0",
|
||||
"angular2-uuid": "^1.1.1",
|
||||
"firebase": "^10.8.0",
|
||||
"marked": "^9.0.0",
|
||||
"ngx-markdown": "^17.1.1",
|
||||
"ngx-markdown": "^18.0.0",
|
||||
"reselect": "^5.1.0",
|
||||
"rxjs": "^7.8.1",
|
||||
"tslib": "^2.6.2",
|
||||
"zone.js": "~0.14.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@angular-devkit/architect": "0.1702.1",
|
||||
"@angular-devkit/build-angular": "^17.2.1",
|
||||
"@angular-eslint/builder": "17.2.1",
|
||||
"@angular-eslint/eslint-plugin": "17.2.1",
|
||||
"@angular-eslint/eslint-plugin-template": "17.2.1",
|
||||
"@angular-eslint/schematics": "17.2.1",
|
||||
"@angular-eslint/template-parser": "17.2.1",
|
||||
"@angular/cli": "^17.2.1",
|
||||
"@angular/compiler-cli": "^17.2.1",
|
||||
"@capacitor/cli": "^5.7.0",
|
||||
"@angular-devkit/architect": "0.1800.7",
|
||||
"@angular-devkit/build-angular": "^18.0.7",
|
||||
"@angular-eslint/builder": "18.1.0",
|
||||
"@angular-eslint/eslint-plugin": "18.1.0",
|
||||
"@angular-eslint/eslint-plugin-template": "18.1.0",
|
||||
"@angular-eslint/schematics": "18.1.0",
|
||||
"@angular-eslint/template-parser": "18.1.0",
|
||||
"@angular/cli": "^18.0.7",
|
||||
"@angular/compiler-cli": "^18.1.0",
|
||||
"@capacitor/cli": "^6.0.0",
|
||||
"@cypress/schematic": "^2.5.1",
|
||||
"@types/jasmine": "~5.1.4",
|
||||
"@types/jasminewd2": "~2.0.13",
|
||||
"@types/node": "^20.11.21",
|
||||
"@typescript-eslint/eslint-plugin": "7.1.0",
|
||||
"@typescript-eslint/parser": "^7.1.0",
|
||||
"cypress": "latest",
|
||||
"@typescript-eslint/eslint-plugin": "^7.2.0",
|
||||
"@typescript-eslint/parser": "^7.2.0",
|
||||
"cypress": "13.6.6",
|
||||
"eslint": "^8.57.0",
|
||||
"eslint-plugin-deprecation": "^2.0.0",
|
||||
"eslint-plugin-deprecation": "^3.0.0",
|
||||
"eslint-plugin-optimize-regex": "^1.2.1",
|
||||
"eslint-plugin-simple-import-sort": "^12.0.0",
|
||||
"eslint-plugin-unused-imports": "^3.1.0",
|
||||
@ -77,7 +77,7 @@
|
||||
"karma-jasmine-html-reporter": "^2.1.0",
|
||||
"open": "^10.0.4",
|
||||
"ts-node": "~10.9.2",
|
||||
"typescript": "~5.3.3"
|
||||
"typescript": "~5.4.5"
|
||||
},
|
||||
"browserslist": [
|
||||
"last 1 Chrome version",
|
||||
@ -89,4 +89,4 @@
|
||||
"not IE 9-10 ",
|
||||
"not IE 11 "
|
||||
]
|
||||
}
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
import { ClipboardModule } from '@angular/cdk/clipboard';
|
||||
import { DragDropModule } from '@angular/cdk/drag-drop';
|
||||
import { HttpClientModule } from '@angular/common/http';
|
||||
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
|
||||
import { APP_ID, NgModule } from '@angular/core';
|
||||
import { AngularFireModule } from '@angular/fire/compat';
|
||||
import { AngularFireAuthModule } from '@angular/fire/compat/auth';
|
||||
@ -41,6 +41,7 @@ import { MarkedOptions, MarkedRenderer } from 'ngx-markdown';
|
||||
import { AppComponent } from './app.component';
|
||||
import { AppRoutingModule } from './app-routing.module';
|
||||
import { AddToPageModalComponent } from './components/add-to-page-modal/add-to-page-modal.component';
|
||||
import { CardEditModalComponent } from './components/card-edit-modal/card-edit-modal.component';
|
||||
import { HelpModalComponent } from './components/help-modal/help-modal.component';
|
||||
import { NoteEditModalComponent } from './components/note/edit-modal/note-edit-modal.component';
|
||||
import { NoteCardComponent } from './components/note/note-card.component';
|
||||
@ -75,79 +76,69 @@ export function markedOptionsFactory(): MarkedOptions {
|
||||
};
|
||||
}
|
||||
|
||||
@NgModule({
|
||||
declarations: [
|
||||
AppComponent,
|
||||
NotesAdminPageComponent,
|
||||
SavedPagesAdminPageComponent,
|
||||
SavedPageCardComponent,
|
||||
HelpModalComponent,
|
||||
SearchPageComponent,
|
||||
PassageCardComponent,
|
||||
StrongsComponent,
|
||||
StrongsCardComponent,
|
||||
StrongsModalComponent,
|
||||
WordsCardComponent,
|
||||
NoteCardComponent,
|
||||
PageEditModalComponent,
|
||||
NoteEditModalComponent,
|
||||
AddToPageModalComponent,
|
||||
VersePickerModalComponent,
|
||||
SettingsComponent,
|
||||
OkCancelModalComponent,
|
||||
],
|
||||
imports: [
|
||||
BrowserModule,
|
||||
HttpClientModule,
|
||||
|
||||
ReactiveFormsModule,
|
||||
FormsModule,
|
||||
AppRoutingModule,
|
||||
BrowserAnimationsModule,
|
||||
|
||||
MarkdownModule.forRoot({
|
||||
markedOptions: {
|
||||
provide: MARKED_OPTIONS,
|
||||
useFactory: markedOptionsFactory,
|
||||
},
|
||||
}),
|
||||
|
||||
AngularFireModule.initializeApp(FirebaseConfig),
|
||||
AngularFireAuthModule,
|
||||
AngularFireDatabaseModule,
|
||||
|
||||
DragDropModule,
|
||||
MatSidenavModule,
|
||||
MatChipsModule,
|
||||
MatToolbarModule,
|
||||
MatIconModule,
|
||||
MatAutocompleteModule,
|
||||
MatBadgeModule,
|
||||
MatBottomSheetModule,
|
||||
MatButtonModule,
|
||||
MatButtonToggleModule,
|
||||
MatCardModule,
|
||||
MatCheckboxModule,
|
||||
MatStepperModule,
|
||||
MatDialogModule,
|
||||
MatDividerModule,
|
||||
MatExpansionModule,
|
||||
MatInputModule,
|
||||
MatListModule,
|
||||
MatMenuModule,
|
||||
MatNativeDateModule,
|
||||
MatRadioModule,
|
||||
MatRippleModule,
|
||||
MatSelectModule,
|
||||
MatSliderModule,
|
||||
MatSlideToggleModule,
|
||||
MatSnackBarModule,
|
||||
MatTooltipModule,
|
||||
MatFormFieldModule,
|
||||
MatTabsModule,
|
||||
ClipboardModule,
|
||||
],
|
||||
providers: [{ provide: APP_ID, useValue: 'ng-cli-universal' }],
|
||||
bootstrap: [AppComponent],
|
||||
})
|
||||
@NgModule({ declarations: [
|
||||
AppComponent,
|
||||
NotesAdminPageComponent,
|
||||
SavedPagesAdminPageComponent,
|
||||
SavedPageCardComponent,
|
||||
HelpModalComponent,
|
||||
SearchPageComponent,
|
||||
PassageCardComponent,
|
||||
StrongsComponent,
|
||||
StrongsCardComponent,
|
||||
StrongsModalComponent,
|
||||
WordsCardComponent,
|
||||
NoteCardComponent,
|
||||
PageEditModalComponent,
|
||||
NoteEditModalComponent,
|
||||
AddToPageModalComponent,
|
||||
VersePickerModalComponent,
|
||||
SettingsComponent,
|
||||
OkCancelModalComponent,
|
||||
CardEditModalComponent,
|
||||
],
|
||||
bootstrap: [AppComponent], imports: [BrowserModule,
|
||||
ReactiveFormsModule,
|
||||
FormsModule,
|
||||
AppRoutingModule,
|
||||
BrowserAnimationsModule,
|
||||
MarkdownModule.forRoot({
|
||||
markedOptions: {
|
||||
provide: MARKED_OPTIONS,
|
||||
useFactory: markedOptionsFactory,
|
||||
},
|
||||
}),
|
||||
AngularFireModule.initializeApp(FirebaseConfig),
|
||||
AngularFireAuthModule,
|
||||
AngularFireDatabaseModule,
|
||||
DragDropModule,
|
||||
MatSidenavModule,
|
||||
MatChipsModule,
|
||||
MatToolbarModule,
|
||||
MatIconModule,
|
||||
MatAutocompleteModule,
|
||||
MatBadgeModule,
|
||||
MatBottomSheetModule,
|
||||
MatButtonModule,
|
||||
MatButtonToggleModule,
|
||||
MatCardModule,
|
||||
MatCheckboxModule,
|
||||
MatStepperModule,
|
||||
MatDialogModule,
|
||||
MatDividerModule,
|
||||
MatExpansionModule,
|
||||
MatInputModule,
|
||||
MatListModule,
|
||||
MatMenuModule,
|
||||
MatNativeDateModule,
|
||||
MatRadioModule,
|
||||
MatRippleModule,
|
||||
MatSelectModule,
|
||||
MatSliderModule,
|
||||
MatSlideToggleModule,
|
||||
MatSnackBarModule,
|
||||
MatTooltipModule,
|
||||
MatFormFieldModule,
|
||||
MatTabsModule,
|
||||
ClipboardModule], providers: [{ provide: APP_ID, useValue: 'ng-cli-universal' }, provideHttpClient(withInterceptorsFromDi())] })
|
||||
export class AppModule {}
|
||||
|
@ -0,0 +1,16 @@
|
||||
<mat-toolbar>
|
||||
<mat-icon>save</mat-icon>
|
||||
</mat-toolbar>
|
||||
<mat-dialog-content class="content">
|
||||
<form [formGroup]="form">
|
||||
<mat-form-field class="page-title">
|
||||
<mat-label>Query</mat-label>
|
||||
<input formControlName="qry" matInput />
|
||||
</mat-form-field>
|
||||
</form>
|
||||
|
||||
<div mat-dialog-actions>
|
||||
<button mat-button (click)="save()">Save</button>
|
||||
<button mat-button (click)="cancel()">Cancel</button>
|
||||
</div>
|
||||
</mat-dialog-content>
|
@ -0,0 +1,25 @@
|
||||
.close-button {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.title {
|
||||
width: 100%;
|
||||
padding-left: 1rem;
|
||||
font-size: 1.5rem;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.mat-mdc-form-field {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.page-title {
|
||||
min-width: 50vw;
|
||||
padding-top: 12px;
|
||||
}
|
||||
|
||||
.mat-mdc-dialog-content {
|
||||
min-width: 60vw;
|
||||
min-height: 20vh;
|
||||
max-height: 80vh;
|
||||
}
|
@ -0,0 +1,45 @@
|
||||
import { Component, Inject } from '@angular/core';
|
||||
import { FormGroup, UntypedFormBuilder } from '@angular/forms';
|
||||
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
|
||||
import { CardItem } from 'src/app/models/card-state';
|
||||
import { AppService } from 'src/app/services/app.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-card-edit-modal',
|
||||
templateUrl: 'card-edit-modal.component.html',
|
||||
styleUrls: ['./card-edit-modal.component.scss'],
|
||||
})
|
||||
export class CardEditModalComponent {
|
||||
form: FormGroup;
|
||||
dialogTitle = 'Save Page using Current Cards';
|
||||
oldCard: CardItem;
|
||||
|
||||
constructor(
|
||||
@Inject(MAT_DIALOG_DATA) public data: CardEditModalData,
|
||||
public dialogRef: MatDialogRef<CardEditModalComponent>,
|
||||
private appService: AppService,
|
||||
private fb: UntypedFormBuilder
|
||||
) {
|
||||
this.oldCard = data.card;
|
||||
this.form = this.fb.group(data.card);
|
||||
}
|
||||
|
||||
cancel() {
|
||||
this.dialogRef.close();
|
||||
}
|
||||
|
||||
save() {
|
||||
this.appService.updateCard(
|
||||
{
|
||||
qry: this.form.get('qry').value,
|
||||
type: this.form.get('type').value,
|
||||
} as CardItem,
|
||||
this.oldCard
|
||||
);
|
||||
this.dialogRef.close();
|
||||
}
|
||||
}
|
||||
|
||||
export interface CardEditModalData {
|
||||
card: CardItem;
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
import { Clipboard } from '@angular/cdk/clipboard';
|
||||
import { Component,ElementRef, EventEmitter, Input, Output } from '@angular/core';
|
||||
import { Component, ElementRef, EventEmitter, Input, Output } from '@angular/core';
|
||||
import { MatDialog } from '@angular/material/dialog';
|
||||
import { Observable } from 'rxjs';
|
||||
|
||||
@ -8,6 +8,7 @@ import { SubscriberBase } from '../common/subscriber-base';
|
||||
import { AddToPageModalComponent } from '../components/add-to-page-modal/add-to-page-modal.component';
|
||||
import { CardItem } from '../models/card-state';
|
||||
import { AppService } from '../services/app.service';
|
||||
import { CardEditModalComponent } from './card-edit-modal/card-edit-modal.component';
|
||||
|
||||
@Component({
|
||||
template: '',
|
||||
@ -83,4 +84,12 @@ export class CardComponent extends SubscriberBase {
|
||||
moveCardUp() {
|
||||
this.appService.moveCard(this.cardItem, MoveDirection.Up);
|
||||
}
|
||||
|
||||
editReferenceModal() {
|
||||
this.dialog.open(CardEditModalComponent, {
|
||||
data: {
|
||||
card: { ...this.cardItem } as CardItem,
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -14,21 +14,21 @@ export class PageEditModalComponent {
|
||||
dialogTitle = 'Save Page using Current Cards';
|
||||
|
||||
constructor(
|
||||
@Inject(MAT_DIALOG_DATA) public title: PageEditModalData,
|
||||
@Inject(MAT_DIALOG_DATA) public data: PageEditModalData,
|
||||
public dialogRef: MatDialogRef<PageEditModalComponent>,
|
||||
private appService: AppService,
|
||||
private fb: UntypedFormBuilder
|
||||
) {
|
||||
if (title) {
|
||||
if (data) {
|
||||
this.dialogTitle = 'Edit Page Name';
|
||||
} else {
|
||||
title = {
|
||||
data = {
|
||||
title: '',
|
||||
savedPage: null,
|
||||
};
|
||||
}
|
||||
|
||||
this.form = this.fb.group(title);
|
||||
this.form = this.fb.group(data);
|
||||
}
|
||||
|
||||
cancel() {
|
||||
@ -38,7 +38,7 @@ export class PageEditModalComponent {
|
||||
save() {
|
||||
if (this.dialogTitle === 'Edit Page Name') {
|
||||
this.appService.updateSavedPage({
|
||||
...this.title.savedPage,
|
||||
...this.data.savedPage,
|
||||
title: this.form.get('title').value,
|
||||
});
|
||||
} else {
|
||||
|
@ -102,6 +102,10 @@
|
||||
<mat-icon>more_vert</mat-icon>
|
||||
</button>
|
||||
<mat-menu #moreMenu="matMenu">
|
||||
<button mat-menu-item (click)="editReferenceModal()">
|
||||
<mat-icon>edit</mat-icon>
|
||||
<span>Edit Reference</span>
|
||||
</button>
|
||||
<button mat-menu-item (click)="copy()">
|
||||
<mat-icon>content_copy</mat-icon>
|
||||
<span>Copy Passage</span>
|
||||
|
@ -4,14 +4,14 @@ import { UUID } from 'angular2-uuid';
|
||||
import { lastValueFrom } from 'rxjs';
|
||||
|
||||
import { moveItem, moveItemUpOrDown } from '../common/array-operations';
|
||||
import { BibleReference, Overlap,Section } from '../common/bible-reference';
|
||||
import { getFromCardCache,removeFromCardCache, updateInCardCache } from '../common/card-cache-operations';
|
||||
import { BibleReference, Overlap, Section } from '../common/bible-reference';
|
||||
import { getFromCardCache, removeFromCardCache, updateInCardCache } from '../common/card-cache-operations';
|
||||
import { mergeCardList } from '../common/card-operations';
|
||||
import { HashTable } from '../common/hashtable';
|
||||
import { MoveDirection } from '../common/move-direction';
|
||||
import { createReducingService,IReducingAction } from '../common/state-service';
|
||||
import { createReducingService, IReducingAction } from '../common/state-service';
|
||||
import { IStorable, Storable, StorableType } from '../common/storable';
|
||||
import { AppState, DisplaySettings, Error,PageSettings, Settings, User } from '../models/app-state';
|
||||
import { AppState, DisplaySettings, Error, PageSettings, Settings, User } from '../models/app-state';
|
||||
import { CardItem, CardType, DataReference } from '../models/card-state';
|
||||
import { NoteItem } from '../models/note-state';
|
||||
import { SavedPage } from '../models/page-state';
|
||||
@ -31,7 +31,7 @@ import {
|
||||
StrongsDictionary,
|
||||
StrongsResult,
|
||||
} from '../models/strongs-state';
|
||||
import { IndexResult, WordLookupResult,WordToStem } from '../models/words-state';
|
||||
import { IndexResult, WordLookupResult, WordToStem } from '../models/words-state';
|
||||
|
||||
const initialState: AppState = {
|
||||
user: null,
|
||||
@ -294,7 +294,7 @@ export const updateCardAction = (newCard: CardItem, oldCard: CardItem): AppActio
|
||||
...state,
|
||||
currentCards: new Storable(
|
||||
state.currentCards.value.map((c) => {
|
||||
if (c === oldCard) {
|
||||
if (c.type === oldCard.type && c.qry === oldCard.qry) {
|
||||
return newCard;
|
||||
}
|
||||
return c;
|
||||
@ -824,6 +824,11 @@ export class AppService extends createReducingService(initialState) {
|
||||
);
|
||||
}
|
||||
|
||||
async updateCard(newCard: CardItem, oldCard: CardItem) {
|
||||
const card = await this.getCardByQuery(newCard.qry.trim());
|
||||
this.dispatch(updateCardAction(card, oldCard));
|
||||
}
|
||||
|
||||
async clearCards() {
|
||||
this.dispatch(clearCardsAction());
|
||||
}
|
||||
@ -1491,8 +1496,8 @@ export class AppService extends createReducingService(initialState) {
|
||||
words.unshift('barbarian');
|
||||
words.unshift('beard');
|
||||
words.unshift('begettest');
|
||||
words.unshift('benefactor');
|
||||
words.unshift('bethel');
|
||||
words.unshift('beneath');
|
||||
words.unshift('bethabara');
|
||||
words.unshift('bilshan');
|
||||
words.unshift('blindeth');
|
||||
words.unshift('booti');
|
||||
@ -1506,152 +1511,152 @@ export class AppService extends createReducingService(initialState) {
|
||||
words.unshift('chrysoprasus');
|
||||
words.unshift('cloth');
|
||||
words.unshift('common');
|
||||
words.unshift('confess');
|
||||
words.unshift('contendeth');
|
||||
words.unshift('coucheth');
|
||||
words.unshift('crept');
|
||||
words.unshift('curseth');
|
||||
words.unshift('darius');
|
||||
words.unshift('decketh');
|
||||
words.unshift('dema');
|
||||
words.unshift('devil');
|
||||
words.unshift('directeth');
|
||||
words.unshift('disposit');
|
||||
words.unshift('doth');
|
||||
words.unshift('drowsi');
|
||||
words.unshift('ebe');
|
||||
words.unshift('elead');
|
||||
words.unshift('elkoshit');
|
||||
words.unshift('encourag');
|
||||
words.unshift('entreat');
|
||||
words.unshift('eschew');
|
||||
words.unshift('ever');
|
||||
words.unshift('expert');
|
||||
words.unshift('fallest');
|
||||
words.unshift('feedeth');
|
||||
words.unshift('filthi');
|
||||
words.unshift('fleeth');
|
||||
words.unshift('forborn');
|
||||
words.unshift('forsookest');
|
||||
words.unshift('fretteth');
|
||||
words.unshift('gahar');
|
||||
words.unshift('gazzam');
|
||||
words.unshift('gibea');
|
||||
words.unshift('glister');
|
||||
words.unshift('got');
|
||||
words.unshift('grope');
|
||||
words.unshift('hadlai');
|
||||
words.unshift('hammon');
|
||||
words.unshift('harbona');
|
||||
words.unshift('hasrah');
|
||||
words.unshift('hazezon');
|
||||
words.unshift('heinous');
|
||||
words.unshift('herebi');
|
||||
words.unshift('highest');
|
||||
words.unshift('holdeth');
|
||||
words.unshift('hosanna');
|
||||
words.unshift('huri');
|
||||
words.unshift('ill');
|
||||
words.unshift('inexcus');
|
||||
words.unshift('intend');
|
||||
words.unshift('ishui');
|
||||
words.unshift('jaazaniah');
|
||||
words.unshift('jaminit');
|
||||
words.unshift('jecoliah');
|
||||
words.unshift('jeopard');
|
||||
words.unshift('jethro');
|
||||
words.unshift('joiarib');
|
||||
words.unshift('juda');
|
||||
words.unshift('kelaiah');
|
||||
words.unshift('kishion');
|
||||
words.unshift('laden');
|
||||
words.unshift('laughter');
|
||||
words.unshift('lehi');
|
||||
words.unshift('lift');
|
||||
words.unshift('loatheth');
|
||||
words.unshift('lucius');
|
||||
words.unshift('madmen');
|
||||
words.unshift('malachi');
|
||||
words.unshift('march');
|
||||
words.unshift('maul');
|
||||
words.unshift('melchizedek');
|
||||
words.unshift('merrili');
|
||||
words.unshift('midianit');
|
||||
words.unshift('miri');
|
||||
words.unshift('modest');
|
||||
words.unshift('move');
|
||||
words.unshift('naashon');
|
||||
words.unshift('nazareth');
|
||||
words.unshift('nephishesim');
|
||||
words.unshift('nisan');
|
||||
words.unshift('obadiah');
|
||||
words.unshift('oliveyard');
|
||||
words.unshift('oren');
|
||||
words.unshift('overrun');
|
||||
words.unshift('pallu');
|
||||
words.unshift('pas');
|
||||
words.unshift('peel');
|
||||
words.unshift('pernici');
|
||||
words.unshift('philip');
|
||||
words.unshift('pison');
|
||||
words.unshift('plucketh');
|
||||
words.unshift('pour');
|
||||
words.unshift('price');
|
||||
words.unshift('proport');
|
||||
words.unshift('purg');
|
||||
words.unshift('rabboni');
|
||||
words.unshift('ravish');
|
||||
words.unshift('redeemedst');
|
||||
words.unshift('remainest');
|
||||
words.unshift('reput');
|
||||
words.unshift('revers');
|
||||
words.unshift('rissah');
|
||||
words.unshift('ruddi');
|
||||
words.unshift('said');
|
||||
words.unshift('sapphir');
|
||||
words.unshift('scepter');
|
||||
words.unshift('secundus');
|
||||
words.unshift('separ');
|
||||
words.unshift('shachia');
|
||||
words.unshift('sharar');
|
||||
words.unshift('sheepshear');
|
||||
words.unshift('sheva');
|
||||
words.unshift('shishak');
|
||||
words.unshift('shroud');
|
||||
words.unshift('signifi');
|
||||
words.unshift('sittest');
|
||||
words.unshift('slow');
|
||||
words.unshift('soft');
|
||||
words.unshift('sowedst');
|
||||
words.unshift('spoil');
|
||||
words.unshift('station');
|
||||
words.unshift('stoop');
|
||||
words.unshift('strongest');
|
||||
words.unshift('sum');
|
||||
words.unshift('sweep');
|
||||
words.unshift('tahapan');
|
||||
words.unshift('tast');
|
||||
words.unshift('ten');
|
||||
words.unshift('thereat');
|
||||
words.unshift('threaten');
|
||||
words.unshift('timbrel');
|
||||
words.unshift('tongu');
|
||||
words.unshift('travailest');
|
||||
words.unshift('trust');
|
||||
words.unshift('uncircumcis');
|
||||
words.unshift('unprepar');
|
||||
words.unshift('urg');
|
||||
words.unshift('vat');
|
||||
words.unshift('visiteth');
|
||||
words.unshift('wash');
|
||||
words.unshift('wed');
|
||||
words.unshift('wherewith');
|
||||
words.unshift('winepress');
|
||||
words.unshift('won');
|
||||
words.unshift('written');
|
||||
words.unshift('zalmonah');
|
||||
words.unshift('zenan');
|
||||
words.unshift('ziphim');
|
||||
words.unshift('confer');
|
||||
words.unshift('contendest');
|
||||
words.unshift('couch');
|
||||
words.unshift('creepeth');
|
||||
words.unshift('cursest');
|
||||
words.unshift('dare');
|
||||
words.unshift('deckest');
|
||||
words.unshift('delus');
|
||||
words.unshift('devic');
|
||||
words.unshift('direct');
|
||||
words.unshift('dispos');
|
||||
words.unshift('dote');
|
||||
words.unshift('drown');
|
||||
words.unshift('ebal');
|
||||
words.unshift('eldest');
|
||||
words.unshift('elkanah');
|
||||
words.unshift('encount');
|
||||
words.unshift('entranc');
|
||||
words.unshift('escapeth');
|
||||
words.unshift('eventid');
|
||||
words.unshift('experi');
|
||||
words.unshift('fallen');
|
||||
words.unshift('feedest');
|
||||
words.unshift('filth');
|
||||
words.unshift('fleec');
|
||||
words.unshift('forbor');
|
||||
words.unshift('forsook');
|
||||
words.unshift('fret');
|
||||
words.unshift('gaham');
|
||||
words.unshift('gazit');
|
||||
words.unshift('gibbethon');
|
||||
words.unshift('glede');
|
||||
words.unshift('gospel');
|
||||
words.unshift('groaneth');
|
||||
words.unshift('hadid');
|
||||
words.unshift('hammoleketh');
|
||||
words.unshift('haraseth');
|
||||
words.unshift('hashupha');
|
||||
words.unshift('hazeroth');
|
||||
words.unshift('height');
|
||||
words.unshift('hereaft');
|
||||
words.unshift('higher');
|
||||
words.unshift('holdest');
|
||||
words.unshift('hosah');
|
||||
words.unshift('huram');
|
||||
words.unshift('ilai');
|
||||
words.unshift('indit');
|
||||
words.unshift('intellig');
|
||||
words.unshift('ishuai');
|
||||
words.unshift('jaasiel');
|
||||
words.unshift('jamin');
|
||||
words.unshift('jechoniah');
|
||||
words.unshift('jemuel');
|
||||
words.unshift('jethlah');
|
||||
words.unshift('joiakim');
|
||||
words.unshift('jucal');
|
||||
words.unshift('keilah');
|
||||
words.unshift('kishi');
|
||||
words.unshift('lade');
|
||||
words.unshift('laugheth');
|
||||
words.unshift('lehem');
|
||||
words.unshift('lifetim');
|
||||
words.unshift('loath');
|
||||
words.unshift('lucif');
|
||||
words.unshift('madmannah');
|
||||
words.unshift('maktesh');
|
||||
words.unshift('marcaboth');
|
||||
words.unshift('mattock');
|
||||
words.unshift('melchiah');
|
||||
words.unshift('merri');
|
||||
words.unshift('midian');
|
||||
words.unshift('mire');
|
||||
words.unshift('moder');
|
||||
words.unshift('movabl');
|
||||
words.unshift('naarath');
|
||||
words.unshift('nazaren');
|
||||
words.unshift('nephish');
|
||||
words.unshift('ninth');
|
||||
words.unshift('oath');
|
||||
words.unshift('olivet');
|
||||
words.unshift('oregim');
|
||||
words.unshift('overran');
|
||||
words.unshift('palet');
|
||||
words.unshift('parvaim');
|
||||
words.unshift('pedigre');
|
||||
words.unshift('permit');
|
||||
words.unshift('philetus');
|
||||
words.unshift('pisidia');
|
||||
words.unshift('pluck');
|
||||
words.unshift('pound');
|
||||
words.unshift('prey');
|
||||
words.unshift('propiti');
|
||||
words.unshift('purer');
|
||||
words.unshift('rabbith');
|
||||
words.unshift('ravin');
|
||||
words.unshift('redeem');
|
||||
words.unshift('remaind');
|
||||
words.unshift('reproveth');
|
||||
words.unshift('reverend');
|
||||
words.unshift('rishathaim');
|
||||
words.unshift('rudder');
|
||||
words.unshift('sahadutha');
|
||||
words.unshift('saphir');
|
||||
words.unshift('scent');
|
||||
words.unshift('sect');
|
||||
words.unshift('seorim');
|
||||
words.unshift('shabbethai');
|
||||
words.unshift('sharaim');
|
||||
words.unshift('sheepmast');
|
||||
words.unshift('shethar');
|
||||
words.unshift('shisha');
|
||||
words.unshift('shrine');
|
||||
words.unshift('signif');
|
||||
words.unshift('sitnah');
|
||||
words.unshift('sloth');
|
||||
words.unshift('soever');
|
||||
words.unshift('sow');
|
||||
words.unshift('spittl');
|
||||
words.unshift('state');
|
||||
words.unshift('stool');
|
||||
words.unshift('stronger');
|
||||
words.unshift('sukkiim');
|
||||
words.unshift('sweat');
|
||||
words.unshift('tahanit');
|
||||
words.unshift('taskmast');
|
||||
words.unshift('tempteth');
|
||||
words.unshift('thereabout');
|
||||
words.unshift('thread');
|
||||
words.unshift('timber');
|
||||
words.unshift('tong');
|
||||
words.unshift('travail');
|
||||
words.unshift('trumpet');
|
||||
words.unshift('unchang');
|
||||
words.unshift('unperfect');
|
||||
words.unshift('urban');
|
||||
words.unshift('vashti');
|
||||
words.unshift('visitest');
|
||||
words.unshift('warrior');
|
||||
words.unshift('web');
|
||||
words.unshift('whereupon');
|
||||
words.unshift('winebibb');
|
||||
words.unshift('womenserv');
|
||||
words.unshift('writeth');
|
||||
words.unshift('zalmon');
|
||||
words.unshift('zena');
|
||||
words.unshift('ziphah');
|
||||
words.unshift('zuzim');
|
||||
|
||||
return words;
|
||||
|
@ -13,15 +13,15 @@
|
||||
// Define the palettes for your theme using the Material Design palettes available in palette.scss
|
||||
// (imported above). For each palette, you can optionally specify a default, lighter, and darker
|
||||
// hue. Available color palettes: https://material.io/design/color/
|
||||
$db-primary: mat.define-palette(mat.$indigo-palette);
|
||||
$db-accent: mat.define-palette(mat.$pink-palette, A200, A100, A400);
|
||||
$db-primary: mat.m2-define-palette(mat.$m2-indigo-palette);
|
||||
$db-accent: mat.m2-define-palette(mat.$m2-pink-palette, A200, A100, A400);
|
||||
|
||||
// The warn palette is optional (defaults to red).
|
||||
$db-warn: mat.define-palette(mat.$red-palette);
|
||||
$db-warn: mat.m2-define-palette(mat.$m2-red-palette);
|
||||
|
||||
// Create the theme object. A theme consists of configurations for individual
|
||||
// theming systems such as "color" or "typography".
|
||||
$db-theme: mat.define-light-theme(
|
||||
$db-theme: mat.m2-define-light-theme(
|
||||
(
|
||||
color: (
|
||||
primary: $db-primary,
|
||||
|
@ -5,7 +5,7 @@
|
||||
"outDir": "./dist/out-tsc",
|
||||
"sourceMap": true,
|
||||
"declaration": false,
|
||||
"downlevelIteration": true,
|
||||
"esModuleInterop": true,
|
||||
"emitDecoratorMetadata": true,
|
||||
"experimentalDecorators": true,
|
||||
"moduleResolution": "node",
|
||||
@ -16,7 +16,8 @@
|
||||
"lib": ["es2018", "dom"]
|
||||
},
|
||||
"angularCompilerOptions": {
|
||||
"strictTemplates": true
|
||||
"strictTemplates": true,
|
||||
"strictInjectionParameters": true,
|
||||
},
|
||||
"include": ["src/**/*.ts"]
|
||||
}
|
||||
|
@ -442,7 +442,7 @@ public class BibleProcessor(ILogger<BibleProcessor>? logger = null)
|
||||
if (i % 50 == 49 || i == idx.Count - 1)
|
||||
{
|
||||
tmp.Add(idx[i]);
|
||||
logger?.LogInformation("words.unshift('" + idx[i].Word + "');\r\n");
|
||||
Console.WriteLine("words.unshift('" + idx[i].Word + "');");
|
||||
var json = JSON.Serialize(tmp.ToArray());
|
||||
|
||||
File.WriteAllText($"index/{idx[i].Word}idx.json", json);
|
||||
|
@ -16,6 +16,7 @@
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.Extensions.Logging" Version="8.0.0"/>
|
||||
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="8.0.0" />
|
||||
<PackageReference Include="Porter2Stemmer" Version="1.0.0"/>
|
||||
</ItemGroup>
|
||||
|
||||
|
@ -1,10 +1,14 @@
|
||||
namespace DynamicBible.DataPreparation;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace DynamicBible.DataPreparation;
|
||||
|
||||
internal class Program
|
||||
{
|
||||
private static void Main()
|
||||
{
|
||||
new BibleProcessor()
|
||||
using ILoggerFactory factory = LoggerFactory.Create(builder => builder.AddConsole());
|
||||
var logger = factory.CreateLogger<BibleProcessor>();
|
||||
new BibleProcessor(logger)
|
||||
.CreateText(
|
||||
Path.Combine(
|
||||
Environment.CurrentDirectory,
|
||||
|
Loading…
x
Reference in New Issue
Block a user