Skip to content

Commit c73eac3

Browse files
authored
Merge pull request #28 from xpquiz/develop
v1.1.0
2 parents 6a50758 + a0bcac8 commit c73eac3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+303
-102
lines changed

angular.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
"polyfills": [
2424
"zone.js"
2525
],
26+
"allowedCommonJsDependencies": [
27+
"crypto-js"
28+
],
2629
"tsConfig": "tsconfig.app.json",
2730
"inlineStyleLanguage": "sass",
2831
"assets": [

package-lock.json

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"@types/crypto-js": "^4.1.1",
2222
"angular-cli-ghpages": "^1.0.6",
2323
"crypto-js": "^4.1.1",
24+
"moment": "^2.29.4",
2425
"rxjs": "~7.8.0",
2526
"tslib": "^2.3.0",
2627
"xp.css": "^0.2.6",

src/app/about-window/about-window.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div class="window">
2-
<app-window-title-bar iconPath="assets/icons/about.png" title="About XPQuiz"></app-window-title-bar>
2+
<app-window-title-bar iconPath="about.png" title="About XPQuiz"></app-window-title-bar>
33
<div class="window-body">
44
<label><b>XPQuiz</b>&nbsp;- Version 1.0.1</label>
55
<label class="main">Created by&nbsp;<b><a href="https://isahann.github.io">Isahann Hanacleto</a></b></label>
@@ -13,7 +13,7 @@
1313
href="https://www.deviantart.com/marchmountain/art/Windows-XP-High-Resolution-Icon-Pack-916042853">marchmountain
1414
at DeviantArt</a></b></label>
1515

16-
<app-icon-button iconPath="assets/icons/home.png" title="Return to home"
16+
<app-icon-button iconPath="home.png" title="Return to home"
1717
(onButtonClick)="this.returnHome()"></app-icon-button>
1818
</div>
1919
</div>

src/app/app-routing.module.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ const routes: Routes = [
3131
component: QuestionWindowComponent,
3232
},
3333
{
34-
path: PathsEnum.CORRECT_ANSWER,
34+
path: `${PathsEnum.CORRECT_ANSWER}/:points`,
3535
component: CorrectAnswerWindowComponent,
3636
},
3737
{
38-
path: PathsEnum.WRONG_ANSWER,
38+
path: `${PathsEnum.WRONG_ANSWER}/:answer`,
3939
component: WrongAnswerWindowComponent
4040
}
4141
]

src/app/app.module.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import {ScoreWindowComponent} from './score-window/score-window.component';
1313
import { CorrectAnswerWindowComponent } from './correct-answer-window/correct-answer-window.component';
1414
import { WrongAnswerWindowComponent } from './wrong-answer-window/wrong-answer-window.component';
1515
import { AboutWindowComponent } from './about-window/about-window.component';
16+
import {CopyClipboardDirective} from "./directives/CopyClipboardDirective";
1617

1718
@NgModule({
1819
declarations: [
@@ -25,6 +26,7 @@ import { AboutWindowComponent } from './about-window/about-window.component';
2526
CorrectAnswerWindowComponent,
2627
WrongAnswerWindowComponent,
2728
AboutWindowComponent,
29+
CopyClipboardDirective
2830
],
2931
imports: [
3032
BrowserModule,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<button [disabled]="this.disabled" (click)="this.onClick()">
22
<img
3-
[ngSrc]="this.iconPath" [ngClass]="this.disabled ? 'disabled' : ''"
3+
[ngSrc]="'assets/icons/20x20/' + this.iconPath" [ngClass]="this.disabled ? 'disabled' : ''"
44
alt="" [height]="this.iconSize" [width]="this.iconSize"/>
55
{{this.title}}
66
</button>

src/app/common/window-title-bar/window-title-bar.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div class="title-bar">
22
<div class="title-bar-text">
33
<img
4-
[ngSrc]="this.iconPath"
4+
[ngSrc]="'assets/icons/15x15/' + this.iconPath"
55
alt="" [height]="this.iconSize" [width]="this.iconSize" />
66
{{this.title}}
77
</div>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<div class="window">
2-
<app-window-title-bar iconPath="assets/icons/success.png" title="You did it!"></app-window-title-bar>
2+
<app-window-title-bar iconPath="success.png" title="You did it!"></app-window-title-bar>
33
<div class="window-body">
44
<div class="window-body_title">
55
<label><b>Congratulations!</b></label>
66
<label>You earned {{this.questionScore}} points!</label>
77
<label>Come back in 3 hours for another question!</label>
88
</div>
99

10-
<app-icon-button iconPath="assets/icons/home.png" title="Return to home"
10+
<app-icon-button iconPath="home.png" title="Return to home"
1111
(onButtonClick)="this.returnHome()"></app-icon-button>
1212
</div>
1313
</div>

src/app/correct-answer-window/correct-answer-window.component.sass

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,4 @@
1313

1414
label
1515
text-align: center
16-
17-
16+
margin: 5px

0 commit comments

Comments
 (0)