This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div className={Styles.rightPanelBottomBar}> | |
<PreviousPageButton | |
onClick={() => { | |
if (state.step === 'create' && state.subStep === 1) { | |
dispatch({ | |
type: 'setSubStep', | |
subStep: 0, | |
}); | |
dispatch({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const handleDropFile = async (files) => { | |
console.log('filesHAndleDRop', files); | |
dispatch({ type: 'setLoading', loading: true }); | |
const imagePromises = []; | |
for (let i = 0; i < files.length; i++) { | |
imagePromises.push(new Promise((resolve) => { | |
const reader = new FileReader(); | |
// eslint-disable-next-line func-names | |
reader.onload = function () { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const saveLayout = async (name) => { | |
setLayoutModalOpen(false); | |
if (!name) { | |
return; | |
} | |
dispatch({ type: 'setLoading', item: 'saveLayoutName', loading: true }); | |
const layoutNameError = await saveLayoutName(name); | |
dispatch({ type: 'setLoading', item: 'saveLayoutName', loading: false }); | |
if (layoutNameError) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"地區縣市": "基隆市政府", | |
"短期補習班名稱": "基隆市私立華興文理短期補習班", | |
"主管機關文件單位代碼": "163", | |
"電子郵件": "jackyhwang5566@gmail.com", | |
"短期補習班類別": "文理類", | |
"地址": "基隆市信義區信一路132號4樓", | |
"立案時間": "1995-08-01", | |
"各地短期補習班數量": "216" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"detail_text": "寥落古行宫,宫花寂寞红。白头宫女在,闲坐说玄宗。", | |
"title": "行宫", | |
"detail_translate_text": [ | |
"译文", | |
"空旷冷落的古旧行宫,只有宫花寂寞地艳红。", | |
"几个满头白发的宫女,闲坐无事谈论唐玄宗。", | |
"注释", | |
"(1)寥(liáo)落:寂寞冷落。", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"detail_text": "寥落古行宫,宫花寂寞红。白头宫女在,闲坐说玄宗。", | |
"title": "行宫", | |
"detail_translate_text": [ | |
"译文", | |
"空旷冷落的古旧行宫,只有宫花寂寞地艳红。", | |
"几个满头白发的宫女,闲坐无事谈论唐玄宗。", | |
"注释", | |
"(1)寥(liáo)落:寂寞冷落。", | |
"(2)行宫:皇帝在京城之外的宫殿。这里指当时东都洛阳的皇帝行宫上阳宫。", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"detail_text": "寥落古行宫,宫花寂寞红。白头宫女在,闲坐说玄宗。", | |
"title": "行宫", | |
"detail_translate_text": [ | |
"译文", | |
"空旷冷落的古旧行宫,只有宫花寂寞地艳红。", | |
"几个满头白发的宫女,闲坐无事谈论唐玄宗。", | |
"注释", | |
"(1)寥(liáo)落:寂寞冷落。", | |
"(2)行宫:皇帝在京城之外的宫殿。这里指当时东都洛阳的皇帝行宫上阳宫。", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// const | |
const d; | |
d = 3; // error | |
// let | |
let bb = 10; | |
bb = 12; | |
console.log(bb) // 12 |