Commit 97f314e5 authored by Chen Jiping's avatar Chen Jiping

feat:完成模板开发

parent 9f3a2900
...@@ -128,5 +128,8 @@ ...@@ -128,5 +128,8 @@
} }
} }
}, },
"defaultProject": "ng-template-generator" "defaultProject": "ng-template-generator",
} "cli": {
"analytics": "9854d767-42ac-423c-9c7c-778ed3e26e6e"
}
}
\ No newline at end of file
import { Obj } from "./ObjBean";
export class ExercisesBean extends Obj {
answerArr = [];
}
export function getDefaultExercises() {
let exercises = new ExercisesBean();
return exercises;
}
export class AnswerBean extends Obj {
index = 0;
}
export function getDefaultAnswer(){
let answer = new AnswerBean();
return answer;
}
export class Obj{
/**音频材料 */
audioUrl: String;
/**图片材料 */
picUrl:String;
val : String;
}
\ No newline at end of file
import { Obj } from "./ObjBean";
export class TitleBean extends Obj{
part1 : String;
part2: String;
}
export function getDefaultTile(){
let title = new TitleBean();
title.part1 = "C";
title.part2 = "Read and point";
return title;
}
\ No newline at end of file
<div class="model-content"> <div class="model-content">
<div nz-row>
<div nz-col [nzSpan]="24">
<nz-form-item>
<nz-form-label [nzSpan]="2" nzFor="part1">标题1</nz-form-label>
<nz-form-control [nzSpan]="4">
<nz-input-group nzAddOnBefore="Part">
<input type="text" id="part1" nz-input [(ngModel)]="item.title.part1" (blur)="save()">
</nz-input-group>
</nz-form-control>
<nz-form-label [nzSpan]="2" nzFor="part2">标题2</nz-form-label>
<nz-form-control [nzSpan]="4">
<input nz-input type="text" id="part2" [(ngModel)]="item.title.part2" (blur)="save()">
</nz-form-control>
<nz-form-label [nzSpan]="2" nzFor="audioUrl">发音</nz-form-label>
<nz-form-control [nzSpan]="4">
<app-audio-recorder [audioUrl]="item.title.audioUrl" id="audioUrl"
(audioUploaded)="onAudioUploadSuccess($event, item.title, 'audioUrl')">
</app-audio-recorder>
</nz-form-control>
</nz-form-item>
</div>
</div>
<div nz-row>
<div *ngFor="let data of item.exercisesArr; let i=index" style="padding: 0.5vw;">
<nz-form-item>
<nz-form-label [nzSpan]="2" nzFor="audioUrl">听力材料</nz-form-label>
<nz-form-control [nzSpan]="4">
<app-audio-recorder id="data.audioUrl" [audioUrl]="data.audioUrl"
(audioUploaded)="onAudioUploadSuccess($event, data, 'audioUrl')">
</app-audio-recorder>
</nz-form-control>
</nz-form-item>
<nz-form-item>
<nz-form-label [nzSpan]="2">图片</nz-form-label>
<nz-form-control [nzSpan]="4">
<app-upload-image-with-preview style="width: 100%" [picUrl]="data.picUrl"
(imageUploaded)="onImageUploadSuccess($event, data, 'picUrl')">
</app-upload-image-with-preview>
</nz-form-control>
</nz-form-item>
<nz-form-item>
<nz-form-label [nzSpan]="2">语句</nz-form-label>
<nz-form-control [nzSpan]="10">
<textarea rows="4" nz-input [(ngModel)]="data.val" (ngModelChange)="check(data.val, 9)"
(blur)="saveContent(data)"></textarea>
</nz-form-control>
</nz-form-item>
<nz-form-item>
<nz-form-control [nzSpan]="15">
<nz-table #answerTable nzBordered nzTitle="单词拆分列表" [nzData]="data.answerArr" [nzShowPagination]=false>
<thead>
<tr>
<th>序号</th>
<th>单词</th>
<th>音频</th>
</tr>
</thead>
<tbody>
<tr *ngFor="let row of answerTable.data;let j = index">
<td>{{ j+1 }}</td>
<td>
{{row.val}}
</td>
<div style="position: absolute; left: 200px; top: 100px; width: 800px;"> <td>
<app-audio-recorder [audioUrl]="row.audioUrl"
<input type="text" nz-input [(ngModel)]="item.text" (blur)="save()"> (audioUploaded)="onAudioUploadSuccess($event, row, 'audioUrl')">
</app-audio-recorder>
<app-upload-image-with-preview </td>
[picUrl]="item.pic_url" </tr>
(imageUploaded)="onImageUploadSuccess($event, 'pic_url')" </tbody>
></app-upload-image-with-preview> </nz-table>
</nz-form-control>
</nz-form-item>
</div>
<app-audio-recorder
[audioUrl]="item.audio_url"
(audioUploaded)="onAudioUploadSuccess($event, 'audio_url')"
></app-audio-recorder>
<app-custom-hot-zone></app-custom-hot-zone>
<app-upload-video></app-upload-video>
<app-lesson-title-config></app-lesson-title-config>
</div> </div>
</div>
</div>
\ No newline at end of file \ No newline at end of file
import {Component, EventEmitter, Input, OnDestroy, OnChanges, OnInit, Output, ApplicationRef, ChangeDetectorRef} from '@angular/core'; import { Component, EventEmitter, Input, OnDestroy, OnChanges, OnInit, Output, ApplicationRef, ChangeDetectorRef } from '@angular/core';
import { NzMessageService } from 'ng-zorro-antd/message';
import { getDefaultAnswer, getDefaultExercises } from '../bean/Exercises';
import { getDefaultTile } from '../bean/TitleBean';
...@@ -10,12 +13,13 @@ import {Component, EventEmitter, Input, OnDestroy, OnChanges, OnInit, Output, Ap ...@@ -10,12 +13,13 @@ import {Component, EventEmitter, Input, OnDestroy, OnChanges, OnInit, Output, Ap
export class FormComponent implements OnInit, OnChanges, OnDestroy { export class FormComponent implements OnInit, OnChanges, OnDestroy {
// 储存数据用 // 储存数据用
saveKey = "test_0011"; saveKey = "YM5-16";
// 储存对象 // 储存对象
item; item;
length = 0;
constructor(private appRef: ApplicationRef,private changeDetectorRef: ChangeDetectorRef) { constructor(private appRef: ApplicationRef, private changeDetectorRef: ChangeDetectorRef, private message: NzMessageService) {
} }
...@@ -24,13 +28,17 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy { ...@@ -24,13 +28,17 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
this.item = {}; this.item = {};
this.item.title = getDefaultTile();
this.item.exercisesArr = [];
// 获取存储的数据 // 获取存储的数据
(<any> window).courseware.getData((data) => { (<any>window).courseware.getData((data) => {
if (data) { if (data) {
this.item = data; this.item = data;
} }
console.log(this.item);
this.init(); this.init();
this.changeDetectorRef.markForCheck(); this.changeDetectorRef.markForCheck();
this.changeDetectorRef.detectChanges(); this.changeDetectorRef.detectChanges();
...@@ -50,7 +58,27 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy { ...@@ -50,7 +58,27 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
init() { init() {
if (!this.item.title) {
this.item.title = getDefaultTile();
}
if (!this.item.exercisesArr) {
this.item.exercisesArr = [];
}
let len = this.item.exercisesArr.length;
for (let i = len; i < 1; ++i) {
this.item.exercisesArr.push(getDefaultExercises());
}
this.length = this.item.exercisesArr.length;
for(let i = 0; i < this.length; ++ i){
if(!this.item.exercisesArr[i]){
this.item.exercisesArr[i] = getDefaultExercises();
}
}
} }
...@@ -58,19 +86,19 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy { ...@@ -58,19 +86,19 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
* 储存图片数据 * 储存图片数据
* @param e * @param e
*/ */
onImageUploadSuccess(e, key) { onImageUploadSuccess(e, item, key) {
this.item[key] = e.url; item[key] = e.url;
this.save(); this.save();
} }
/** /**
* 储存音频数据 * 储存音频数据
* @param e * @param e
*/ */
onAudioUploadSuccess(e, key) { onAudioUploadSuccess(e, item, key) {
this.item[key] = e.url; item[key] = e.url;
this.save(); this.save();
} }
...@@ -80,7 +108,7 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy { ...@@ -80,7 +108,7 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
* 储存数据 * 储存数据
*/ */
save() { save() {
(<any> window).courseware.setData(this.item, null, this.saveKey); (<any>window).courseware.setData(this.item, null, this.saveKey);
this.refresh(); this.refresh();
} }
...@@ -93,5 +121,96 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy { ...@@ -93,5 +121,96 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
}, 1); }, 1);
} }
saveContent(item) {
if (!this.check(item.val, 9)) {
return;
}
let answerArr = [];
if (item.val) {
let chr = item.val.split(/\s+|\?|\.|\,|\!/);
for (let c of chr) {
if (c) {
let answer = getDefaultAnswer();
answer.val = c;
answerArr.push(answer);
}
}
}
item.answerArr = [...answerArr];
this.length = item.answerArr.length;
this.save();
}
check(value, maxLength: number) {
if (!value) {
return true;
}
const chr = value.split(/\s+|\?|\.|\,|\!/);
let count = 0;
for (const c of chr) {
if (c) {
count += 1;
}
}
if (count <= maxLength) {
return true;
}
else {
let id = this.message.error('超过' + maxLength + '个单词', { nzDuration: 0 }).messageId;
setTimeout(() => {
this.message.remove(id);
}, 2000);
return false;
}
}
saveIndex(exersices, item) {
let canSave = true;
if (!item.index) {
canSave = false;
}
else {
for (let i = 0; i < exersices.answerArr.length; ++i) {
let answer = exersices.answerArr[i];
if (item == answer) {
continue;
}
else if (answer.index == item.index) {
canSave = false;
break;
}
}
}
if (canSave) {
this.save();
}
else {
let id = this.message.error('请录入不重复的答题顺序', { nzDuration: 0 }).messageId;
setTimeout(() => {
this.message.remove(id);
}, 2500);
}
}
} }
/**
*
* @param audio 音频
* @param now true-重新开始播放,flase-继续播放
* @param callback
*/
export function playAudio(audio, now = false, callback = null) {
if (audio) {
if (now) {
audio.pause();
audio.currentTime = 0;
}
if (callback) {
audio.onended = () => {
callback();
};
}
audio.play();
}
}
/**
* 暂停播放音频
* @param audio 音频
* @param reset 暂停是否重置:true-是,false-否
* @param callback
*/
export function pauseAudio(audio, reset = false, callback = null) {
if (audio) {
if (reset) {
audio.currentTime = 0;
}
audio.pause();
if (callback) {
callback();
}
}
}
\ No newline at end of file
import { MySprite, ShapeRect, tweenChange } from "./Unit";
export class BigCard{
data;
images;
scaleX = 1;
scaleY = 1;
bg : ShapeRect;
closePic : MySprite;
shown = false;
contentSpr;
init(images, scaleX = 1, scaleY = 1) {
this.images = images;
this.scaleX = scaleX;
this.scaleY = scaleY;
this.initView();
}
private initView(){
let w = 1021 * this.scaleX;
let h = 600 * this.scaleY
const bg = new ShapeRect();
bg.setSize(w, h);
this.bg = bg;
this.initCard();
this.closePic = this.getColsePic(this.bg);
this.bg.setScaleXY(0);
}
private initCard(){
const card = new MySprite();
card.init(this.images.get('card'));
card.setScaleXY(this.scaleX);
card.x = this.bg.width / 2;
card.y = this.bg.height / 2;
this.bg.addChild(card);
}
private getColsePic(parent) {
const closePic = new MySprite();
closePic.init(this.images.get('close'));
closePic.scaleX = this.scaleX;
closePic.scaleY = this.scaleY;
closePic.x = parent.width;
closePic.y = 0;
parent.addChild(closePic);
return closePic;
}
setContent(data){
this.shown = false;
if(this.contentSpr){
this.bg.removeChild(this.contentSpr);
}
this.data = data;
let mW = 960 * this.scaleX;
let mH = 540 * this.scaleY;
const pic = new MySprite();
pic.init(this.images.get(this.data.picUrl));
pic.x = this.bg.width / 2;
pic.y = this.bg.height / 2;
let scale = Math.min(mW / pic.width, mH / pic.height);
pic.setScaleXY(scale);
this.contentSpr = pic;
this.bg.addChild(pic);
}
showCard(toX, toY, callback = null){
this.shown = true;
tweenChange(this.bg, {scaleX: 1, scaleY: 1, x : toX, y : toY}, 0.3, callback);
}
hideCard(toX, toY, callback = null){
tweenChange(this.bg, { scaleX: 0, scaleY: 0, x: toX, y: toY }, 0.3, () => {
this.shown = false;
callback && callback();
});
}
}
\ No newline at end of file
import { Label, ShapeCircle, ShapeRect, ShapeRectNew } from "./Unit";
export class Letter{
data;
images;
bgColor;
lineColor;
scaleX = 1;
scaleY = 1;
bg : ShapeRectNew;
dW;
canDrag = true;
init(images, data, bgColor, scaleX = 1, scaleY = 1) {
this.images = images;
this.data = data;
this.bgColor = bgColor;
this.scaleX = scaleX;
this.scaleY = scaleY;
this.initBg();
let letter = this.initView();
let w = 40 * this.scaleX + letter.getBoundingBox().width;
let h = 90 * this.scaleY;
this.bg.setSize(w, h, 0);
letter.x = w / 2;
letter.y = h / 2;
}
initBg(){
let bg = new ShapeRectNew();
bg.fillColor = this.bgColor;
bg.setOutLine(this.lineColor, 6 * this.scaleX)
this.bg = bg;
}
initView(){
const letter = new Label();
letter.text = this.data.val;
letter.textAlign = 'center';
letter.fontSize = 64;
letter.fontName = "FUTURAB";
letter.fontColor = "#2b292e";
letter.setScaleXY(this.scaleX);
letter.refreshSize();
this.bg.addChild(letter);
return letter;
}
}
\ No newline at end of file
import { Label, MySprite, ShapeCircle, ShapeRect } from "./Unit";
export class LineSpr{
images;
scaleX = 1;
scaleY = 1;
bg : ShapeCircle;
baseWidth = 180;
baseHeight = 70;
label : Label;
init(images, scaleX = 1, scaleY = 1){
this.images = images;
this.scaleX= scaleX;
this.scaleY = scaleY;
let w = this.baseWidth * this.scaleX;
let h = this.baseHeight * this.scaleY;
this.initBg(w, h);
this.initLine();
}
private initBg(w, h){
const bg = new ShapeRect();
bg.setSize(w, h);
bg.alpha = 0;
this.bg = bg;
}
private initLine(){
const line = new MySprite();
line.init(this.images.get('line'));
line.scaleX = this.scaleX;
line.scaleY = this.scaleY;
line.y = this.bg.height;
line.x = this.bg.width / 2;
this.bg.addChild(line);
return line;
}
showLabel(val){
if(this.label){
this.label.text = val;
}
else{
const label = new Label();
label.text = val;
label.textAlign = 'center';
label.fontSize = 60;
label.fontName = "MMB";
label.fontColor = "#2f2d32";
label.setScaleXY(this.scaleX);
label.refreshSize();
label.visible = false;
this.label = label;
this.bg.addChild(label);
}
this.label.visible = true;
this.label.refreshSize();
this.label.x = this.bg.width / 2;
this.label.y = this.bg.height / 2;
}
hideLabel(){
this.label.visible = false;
this.label.text = "";
}
}
\ No newline at end of file
import {
Label,
MySprite, ShapeRectNew,
ShapeCircle,
tweenChange,
ShapeRect
} from './Unit';
import {
playAudio,
pauseAudio
} from './AudioUtil';
export class Listening {
audio;
images;
bg;
btnPlay;
btnStop;
playing = false;
constructor(audio, images) {
this.audio = audio;
this.images = images;
}
init(scaleX = 1, scaleY = 1, playPic = 'play', stopPic = 'stop') {
const bg = new ShapeRect();
const btnPlay = new MySprite();
btnPlay.init(this.images.get(playPic));
btnPlay.scaleX = scaleX;
btnPlay.scaleY = scaleY;
btnPlay.x = btnPlay.getBoundingBox().width / 2
btnPlay.y = btnPlay.getBoundingBox().height / 2
this.btnPlay = btnPlay;
bg.addChild(btnPlay);
const btnStop = new MySprite();
btnStop.init(this.images.get(stopPic));
btnStop.x = btnPlay.x;
btnStop.y = btnPlay.y;
btnStop.alpha = 0;
btnStop.scaleX = scaleX;
btnStop.scaleY = scaleY;
this.btnStop = btnStop;
bg.addChild(btnStop);
bg.setSize(btnPlay.getBoundingBox().width, btnPlay.getBoundingBox().height);
bg.alpha = 0;
this.bg = bg;
}
play(callback = null){
if(!this.playing){
this.playAudio(callback);
return this.audio;
}
else{
this.pauseAudio(callback);
}
return null;
}
reset(){
this.btnPlay.alpha = 1;
this.btnStop.alpha = 0;
this.playing = false;
}
playAudio(callback = null){
if(!this.audio){
if(callback){
callback();
}
return;
}
this.btnPlay.alpha = 0;
this.btnStop.alpha = 1;
playAudio(this.audio, false, callback);
this.playing = true;
return this.audio;
}
pauseAudio(callback = null){
this.btnPlay.alpha = 1;
this.btnStop.alpha = 0;
this.playing = false;
pauseAudio(this.audio, false, callback)
}
}
\ No newline at end of file
import {
Label,
MySprite, ShapeRect,
} from './Unit';
import {
playAudio,
pauseAudio
} from './AudioUtil';
export class Title {
titleBg: ShapeRect;
audio;
images;
titleData;
constructor(titleData, images) {
this.titleData = titleData;
this.images = images;
}
init(mapScaleX = 1, mapScaleY = 1) {
let titleBg = new ShapeRect();
//初始化标题1背景
const titePart1Bg = new ShapeRect();
titePart1Bg.fillColor="#763c92";
let pWidth = 117 * mapScaleX;
let pHeight = 65 * mapScaleY;
titePart1Bg.setSize(pWidth, pHeight);
titePart1Bg.setShadow(4,4,0, 'rgba(0, 0, 0, 0.2)');
titePart1Bg.x = 0;
titleBg.addChild(titePart1Bg);
//标题1内容
const part1 = new Label();
part1.text = this.titleData.part1;
part1.textAlign = 'left';
part1.fontSize = 48;
part1.fontName = "BRLNSDB";
part1.fontColor = "#facf46";
part1.setScaleXY(mapScaleX);
part1.refreshSize();
part1.x = pWidth - part1.getBoundingBox().width - 13 * mapScaleX;
part1.y = 5 * mapScaleY + part1.getBoundingBox().height / 2;
titleBg.addChild(part1);
//标题2内容
const part2 = new Label();
part2.text = this.titleData.part2;
part2.fontSize = 36;
part2.fontName = "tt0142m";
part2.fontColor = "#000000";
part2.setScaleXY(mapScaleX);
part2.refreshSize();
part2.x = titePart1Bg.getBoundingBox().width + 11 * mapScaleX;
part2.y = 16 * mapScaleY + part2.getBoundingBox().height / 2;
let height = Math.max(titePart1Bg.getBoundingBox().height, part2.getBoundingBox().height);
let width = titePart1Bg.getBoundingBox().width + part2.getBoundingBox().width + 11 * mapScaleX;
titePart1Bg.y = (height - pHeight)/2;
titleBg.setSize(width, height);
titleBg.alpha = 0;
titleBg.addChild(part2);
this.titleBg = titleBg;
}
getTitleBg(){
return this.titleBg;
}
setAudio(audio){
this.audio = audio;
}
playAudio(callback = null){
playAudio(this.audio, true, callback);
return this.audio;
}
pasueAudio(callback){
pauseAudio(this.audio, true, callback)
}
}
...@@ -825,49 +825,87 @@ export class RichText extends Label { ...@@ -825,49 +825,87 @@ export class RichText extends Label {
disH = 30; disH = 30;
offW = 10; offW = 10;
maxWidth;
constructor(ctx?: any) { constructor(ctx?: any) {
super(ctx); super(ctx);
// this.dataArr = dataArr; // this.dataArr = dataArr;
} }
private getContent() {
const selfW = this.maxWidth;
drawText() { const chr = this.text.split(' ');
let temp = '';
const row = [];
const w = selfW - this.offW * 2;
if (!this.text) {
return; for (const c of chr) {
if (this.ctx.measureText(temp).width < w && this.ctx.measureText(temp + (c)).width <= w) {
temp += ' ' + c;
} else {
row.push(temp);
temp = ' ' + c;
}
} }
row.push(temp);
return row;
}
refreshSize() {
this.ctx.save();
this.ctx.font = `${this.fontSize}px ${this.fontName}`; this.ctx.font = `${this.fontSize}px ${this.fontName}`;
this.ctx.textAlign = this.textAlign; this.ctx.textAlign = this.textAlign;
this.ctx.textBaseline = 'middle'; this.ctx.textBaseline = 'middle';
this.ctx.fontWeight = this.fontWeight;
this.ctx.fillStyle = this.fontColor;
const row = this.getContent();
const selfW = this.width * this.scaleX; this._height = this.fontSize * row.length + (row.length - 1) * this.disH;
let mW = 0;
let x = 0;
for (let b = 0; b < row.length; b++) {
const chr = this.text.split(' '); let tW = this.ctx.measureText(row[b]).width;
let temp = '';
const row = [];
const w = selfW - this.offW * 2;
const disH = (this.fontSize + this.disH) * this.scaleY;
if (tW > mW) {
mW = tW;
}
x = 0;
}
this._width = mW;
for (const c of chr) { this.ctx.restore();
if (this.ctx.measureText(temp).width < w && this.ctx.measureText(temp + (c)).width <= w) { }
temp += ' ' + c;
} else { drawText() {
row.push(temp);
temp = ' ' + c; if (!this.text) {
} return;
} }
row.push(temp);
this.ctx.font = `${this.fontSize}px ${this.fontName}`;
this.ctx.textAlign = this.textAlign;
this.ctx.textBaseline = 'middle';
this.ctx.fontWeight = this.fontWeight;
this.ctx.fillStyle = this.fontColor;
const row = this.getContent();
const disH = (this.fontSize + this.disH) * this.scaleY;
const x = 0; const x = 0;
const y = -row.length * disH / 2; const y = -row.length * disH / 2;
......
...@@ -17,3 +17,38 @@ ...@@ -17,3 +17,38 @@
src: url("../../assets/font/BRLNSDB.TTF") ; src: url("../../assets/font/BRLNSDB.TTF") ;
} }
@font-face
{
font-family: 'tt0142m';
src: url("../../assets/font/tt0142m.ttf") ;
}
@font-face
{
font-family: 'GOTHICB';
src: url("../../assets/font/GOTHICB.TTF") ;
}
@font-face
{
font-family: 'GOTHIC';
src: url("../../assets/font/GOTHIC.TTF") ;
}
@font-face
{
font-family: 'MMB';
src: url("../../assets/font/MMTextBook-Bold.otf") ;
}
@font-face
{
font-family: 'FUTURAB';
src: url("../../assets/font/FUTURAB.TTF") ;
}
@font-face
{
font-family: 'TCB';
src: url("../../assets/font/TCB.TTF") ;
}
This diff is collapsed.
const res = [ const res = [
// ['bg', "assets/play/bg.jpg"], ['play', "assets/play/play.png"],
['btn_left', "assets/play/btn_left.png"], ['stop', "assets/play/stop.png"],
['btn_right', "assets/play/btn_right.png"], ['close', "assets/play/close.png"],
// ['text_bg', "assets/play/text_bg.png"], ['pic-btn', "assets/play/pic-btn.png"],
['line', "assets/play/line.png"],
['card', "assets/play/card.png"],
]; ];
...@@ -12,7 +13,11 @@ const res = [ ...@@ -12,7 +13,11 @@ const res = [
const resAudio = [ const resAudio = [
['click', "assets/play/music/click.mp3"], ['click', "assets/play/music/click.mp3"],
['right', "assets/play/music/right.mp3"],
['right1', "assets/play/music/right.mp3"],
['back', "assets/play/music/back.mp3"],
['open', "assets/play/music/open.mp3"],
['close', "assets/play/music/close.mp3"],
]; ];
export {res, resAudio}; export {res, resAudio};
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment