mirror of
https://github.com/samnyan/aqua-viewer.git
synced 2026-04-26 09:33:56 -05:00
[general] Add chuni character and skill
This commit is contained in:
parent
df678d0a5a
commit
6b95978808
|
|
@ -10,6 +10,8 @@
|
|||
Diva Module List : {{divaPv}}<br>
|
||||
Diva Customize List : {{divaPv}}<br>
|
||||
Chunithm Music List : {{chuniMusic}}<br>
|
||||
Chunithm Skill List : {{chuniCharacter}}<br>
|
||||
Chunithm Skill List : {{chuniSkill}}<br>
|
||||
Ongeki Card List : {{ongekiCard}}<br>
|
||||
Ongeki Character List : {{ongekiCharacter}}<br>
|
||||
Ongeki Music List : {{ongekiMusic}}<br>
|
||||
|
|
|
|||
|
|
@ -17,6 +17,8 @@ export class DashboardComponent implements OnInit {
|
|||
ongekiCharacter = 'Initialize';
|
||||
ongekiMusic = 'Initialize';
|
||||
ongekiSkill = 'Initialize';
|
||||
chuniCharacter = 'Initialize';
|
||||
chuniSkill = 'Initialize';
|
||||
|
||||
constructor(
|
||||
private dbService: NgxIndexedDBService,
|
||||
|
|
@ -33,6 +35,8 @@ export class DashboardComponent implements OnInit {
|
|||
this.preload.ongekiCharacterState.subscribe(data => this.ongekiCharacter = data);
|
||||
this.preload.ongekiMusicState.subscribe(data => this.ongekiMusic = data);
|
||||
this.preload.ongekiSkillState.subscribe(data => this.ongekiSkill = data);
|
||||
this.preload.chuniCharacterState.subscribe(data => this.chuniCharacter = data);
|
||||
this.preload.chuniSkillState.subscribe(data => this.chuniSkill = data);
|
||||
}
|
||||
|
||||
reload() {
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ export function migrationFactory() {
|
|||
}
|
||||
const dbConfig: DBConfig = {
|
||||
name: 'Aqua',
|
||||
version: 1,
|
||||
version: 2,
|
||||
objectStoresMeta: [
|
||||
{
|
||||
store: 'divaPv',
|
||||
|
|
@ -99,6 +99,25 @@ const dbConfig: DBConfig = {
|
|||
{name: 'category', keypath: 'category', options: {unique: false}},
|
||||
{name: 'info', keypath: 'info', options: {unique: false}}
|
||||
]
|
||||
}, {
|
||||
store: 'chuniCharacter',
|
||||
storeConfig: {keyPath: 'id', autoIncrement: false},
|
||||
storeSchema: [
|
||||
{name: 'name', keypath: 'name', options: {unique: false}},
|
||||
{name: 'releaseTag', keypath: 'releaseTag', options: {unique: false}},
|
||||
{name: 'worksName', keypath: 'worksName', options: {unique: false}},
|
||||
{name: 'illustratorName', keypath: 'illustratorName', options: {unique: false}},
|
||||
{name: 'firstSkillId', keypath: 'firstSkillId', options: {unique: false}},
|
||||
{name: 'skills', keypath: 'skills', options: {unique: false}},
|
||||
{name: 'addImages', keypath: 'addImages', options: {unique: false}}
|
||||
]
|
||||
}, {
|
||||
store: 'chuniSkill',
|
||||
storeConfig: {keyPath: 'id', autoIncrement: false},
|
||||
storeSchema: [
|
||||
{name: 'name', keypath: 'name', options: {unique: false}},
|
||||
{name: 'category', keypath: 'category', options: {unique: false}}
|
||||
]
|
||||
},
|
||||
],
|
||||
migrationFactory
|
||||
|
|
|
|||
|
|
@ -10,6 +10,8 @@ import {OngekiCard} from '../sega/ongeki/model/OngekiCard';
|
|||
import {OngekiCharacter} from '../sega/ongeki/model/OngekiCharacter';
|
||||
import {OngekiMusic} from '../sega/ongeki/model/OngekiMusic';
|
||||
import {OngekiSkill} from '../sega/ongeki/model/OngekiSkill';
|
||||
import {ChuniCharacter} from '../sega/chunithm/amazon/model/ChuniCharacter';
|
||||
import {ChuniSkill} from '../sega/chunithm/amazon/model/ChuniSkill';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
|
|
@ -35,6 +37,11 @@ export class PreloadService {
|
|||
private ongekiSkill = new ReplaySubject<string>();
|
||||
ongekiSkillState = this.ongekiSkill.asObservable();
|
||||
|
||||
private chuniCharacter = new ReplaySubject<string>();
|
||||
chuniCharacterState = this.chuniCharacter.asObservable();
|
||||
private chuniSkill = new ReplaySubject<string>();
|
||||
chuniSkillState = this.chuniSkill.asObservable();
|
||||
|
||||
constructor(
|
||||
private dbService: NgxIndexedDBService,
|
||||
private api: ApiService
|
||||
|
|
@ -50,6 +57,8 @@ export class PreloadService {
|
|||
this.loader<OngekiCharacter>('ongekiCharacter', 'api/game/ongeki/data/charaList', this.ongekiCharacter);
|
||||
this.loader<OngekiMusic>('ongekiMusic', 'api/game/ongeki/data/musicList', this.ongekiMusic);
|
||||
this.loader<OngekiSkill>('ongekiSkill', 'api/game/ongeki/data/skillList', this.ongekiSkill);
|
||||
this.loader<ChuniCharacter>('chuniCharacter', 'api/game/chuni/amazon/data/character', this.chuniCharacter);
|
||||
this.loader<ChuniSkill>('chuniSkill', 'api/game/chuni/amazon/data/skill', this.chuniSkill);
|
||||
}
|
||||
|
||||
reload() {
|
||||
|
|
|
|||
10
src/app/sega/chunithm/amazon/model/ChuniCharacter.ts
Normal file
10
src/app/sega/chunithm/amazon/model/ChuniCharacter.ts
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
export interface ChuniCharacter {
|
||||
id: number;
|
||||
name: string;
|
||||
releaseTag: string;
|
||||
worksName: string;
|
||||
illustratorName: string;
|
||||
firstSkillId: number;
|
||||
skills: string;
|
||||
addImages: string;
|
||||
}
|
||||
5
src/app/sega/chunithm/amazon/model/ChuniSkill.ts
Normal file
5
src/app/sega/chunithm/amazon/model/ChuniSkill.ts
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
export interface ChuniSkill {
|
||||
id: number;
|
||||
name: string;
|
||||
category: string;
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user