Skip to content

Commit

Permalink
Merge pull request omegasisters#436 from vsanna/master
Browse files Browse the repository at this point in the history
Add a script that fetches songs list from omesis official playlist
omegasisters authored Nov 24, 2021
2 parents 580ea36 + e1406e2 commit 8f4935a
Showing 20 changed files with 462 additions and 133 deletions.
6 changes: 6 additions & 0 deletions @types/songsList.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { songListProps } from '../preact/main/playlists/songsList'

declare module '*/songsList.json' {
const value: songListProps;
export default value;
}
2 changes: 1 addition & 1 deletion assets/preact_build/internationalization.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/preact_build/internationalization.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/preact_build/main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/preact_build/main.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/preact_build/polyfill.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/preact_build/polyfill.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/preact_build/sindan.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/preact_build/sindan.js.map

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -13,7 +13,9 @@
"start": "webpack-dev-server --mode development --open --hot --env.BASE=/",
"start:docker": "npm run build && serve -s ./",
"test": "jest",
"unun": "node scripts/unchan_loop.js"
"unun": "node scripts/unchan_loop.js",
"genSongsList": "node scripts/gen_songs_list.js",
"buildScripts": "tsc --resolveJsonModule -esModuleInterop scripts/**.ts"
},
"dependencies": {
"@pixiv/three-vrm": "^0.2.0",
@@ -32,6 +34,7 @@
"@babel/preset-typescript": "^7.1.0",
"@types/jest": "^24.0.25",
"@types/youtube-player": "^5.5.1",
"axios": "^0.24.0",
"babel-loader": "^8.0.5",
"browser-sync": "^2.26.7",
"copyfiles": "^2.1.1",
121 changes: 0 additions & 121 deletions preact/main/ playlists/songsList.ts

This file was deleted.

2 changes: 1 addition & 1 deletion preact/main/Music.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {FunctionalComponent, h} from 'preact';
import {useEffect, useRef, useState, useMemo} from 'preact/hooks';
import {songListProps} from './ playlists/songsList';
import {songListProps} from './playlists/songsList';

// @ts-ignore
import scoped from 'scoped-style';
2 changes: 1 addition & 1 deletion preact/main/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {h, render} from 'preact';
import MusicPlayer from './Music';
import Viewer from './Viewer';
import songsList from './ playlists/songsList';
import songsList from './playlists/songsList';

const appMount = document.querySelector('#preact-viewer');
if (appMount) render(<Viewer />, appMount);
7 changes: 7 additions & 0 deletions preact/main/playlists/songsList.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
exports.__esModule = true;
var songsList_json_1 = __importDefault(require("./songsList.json"));
exports["default"] = songsList_json_1["default"];
114 changes: 114 additions & 0 deletions preact/main/playlists/songsList.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
[
{
"title": "シンクロニティ by おめシス × BACK-ON",
"videoID": "jis7E_mbwPw"
},
{
"title": "【ガンダムAGE】AURORA (Short) / 藍井エイル by おめがレイ",
"videoID": "8q-Ny2a0GPM"
},
{
"title": "【ボカロ】非公開日誌 / GUMI by おめがリオ",
"videoID": "FkyotXkl-CI"
},
{
"title": "からくりピエロ / 初音ミク by おめがリオ",
"videoID": "owl2ZtgDRHI"
},
{
"title": "【天元突破グレンラガン】空色デイズ (Short) / 中川翔子 by おめがレイ",
"videoID": "-YLyVDOJnFc"
},
{
"title": "【DTB】ツキアカリのミチシルベ / ステレオポニー by おめがレイ",
"videoID": "SV_ag_cq9Jg"
},
{
"title": "青いベンチ / サスケ by おめがシスターズ",
"videoID": "3JAeD-9FE8I"
},
{
"title": "【GBF】ニブンノイチ / BACK-ON by おめがシスターズ",
"videoID": "KQPr8Qde22w"
},
{
"title": "【アルドノア・ゼロ】heavenly blue / Kalafina by おめがレイ",
"videoID": "IfYODh82hTo"
},
{
"title": "AM11:00 / HY by おめがシスターズ【#16Ω】",
"videoID": "abDwOIMcBEw"
},
{
"title": "【時をかける少女】ガーネット / 奥華子 by おめがシスターズ",
"videoID": "gXhqIT7XnsI"
},
{
"title": "夏色 / ゆず by おめがシスターズ",
"videoID": "VBpXOOPK6-E"
},
{
"title": "【かっとビング】マスターピース / mihimaru GT by おめがシスターズ",
"videoID": "_AcOHoF68vo"
},
{
"title": "【ラッタッタァ!】独りんぼエンヴィー / 初音ミク byおめがシスターズ",
"videoID": "s9IvNnu0kqc"
},
{
"title": "【メーデー】ゴーストルール / 初音ミク byおめがシスターズ",
"videoID": "FVfim9jNQVg"
},
{
"title": "【まどマギ】コネクト / ClariS by おめがシスターズ",
"videoID": "sYNL6WlW-e8"
},
{
"title": "【血界戦線】シュガーソングとビターステップ / UNISON SQUARE GARDEN by おめがシスターズ",
"videoID": "pSBk3QVY3cA"
},
{
"title": "【あおガル】恋のカトレア通り(cover) by きれいなおめシス",
"videoID": "b0nF7oUbsfg"
},
{
"title": "ホウキ雲 / RYTHEM by おめがシスターズ",
"videoID": "9Ppv1wvwHXI"
},
{
"title": "透明声彩 / YuNi by おめがシスターズ",
"videoID": "58al_aq_E2M"
},
{
"title": "【ハガレン】メリッサ / ポルノグラフィティ by おめがシスターズ【#14Ω】",
"videoID": "XAt2lODxz_E"
},
{
"title": "白日 / King Gnu by おめがシスターズ",
"videoID": "58TGnNnXT6E"
},
{
"title": "点描の唄 / Mrs. GREEN APPLE (feat.井上苑子) covered by おめがシスターズ",
"videoID": "dmloYn5xaqs"
},
{
"title": "砂の惑星 / covered by おめがシスターズ",
"videoID": "xCcWSD4SKJo"
},
{
"title": "夜に駆ける /YOASOBI covered by おめがシスターズ",
"videoID": "vNYev-RNNDs"
},
{
"title": "香水 /瑛人 covered by おめがシスターズ",
"videoID": "OQggCK-lfOk"
},
{
"title": "うっせぇわ / Ado by おめがシスターズ",
"videoID": "fdpWxx9sqnc"
},
{
"title": "スピッツ /チェリー covered by おめがシスターズ with MSE",
"videoID": "K4d4xE4OILM"
}
]
8 changes: 8 additions & 0 deletions preact/main/playlists/songsList.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export type songListItem = {
title: string;
videoID: string;
}
export type songListProps = songListItem[];

import songsList from './songsList.json'
export default songsList;
Loading

0 comments on commit 8f4935a

Please sign in to comment.