forked from 52black/40code
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
61 changed files
with
7,773 additions
and
1,101 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
cd src2 | ||
webpack ./main.js | ||
cd ../html | ||
node 1.js | ||
cd ../ | ||
cp -f ./src2/dist/main.js ./js/ |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
const fs = require('fs'); | ||
|
||
const dir = './html/'; | ||
|
||
var html=""; | ||
html+=fs.readFileSync('./p/head.html') | ||
var l=fs.readdirSync(dir) | ||
for(let i=0;i<l.length;i++){ | ||
html+=fs.readFileSync(dir+l[i]) | ||
} | ||
html+=fs.readFileSync('./p/foot.html') | ||
fs.writeFileSync('../index.php',html) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<v-container v-if="viewmode=='404'"> | ||
<v-row> | ||
<v-col class="mx-auto"> | ||
<v-card class="sd mx-auto pa-8 my-12"> | ||
当前页面不存在 404 not found | ||
</v-card> | ||
</v-col> | ||
</v-row> | ||
</v-container> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<v-container v-if="viewmode=='about'"> | ||
<v-row> | ||
<v-col class="mx-auto"> | ||
<v-card class="mx-auto pa-8 my-12"> | ||
<h1>关于我们:</h1> | ||
40code是由网名为what的人开发的一款在线少儿编程平台,基于Scratch开发,支持手机端作品展示。 | ||
</v-card> | ||
</v-col> | ||
</v-row> | ||
</v-container> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<v-container v-if="viewmode=='account'" id="account"> | ||
<v-row> | ||
<v-col class="mx-auto" cols="12" md="6"> | ||
<v-card class="mx-auto pa-8 my-12 sd"> | ||
<span color="accent">信息更改</span> | ||
<v-text-field label="昵称" hide-details="auto" class="my-2" id="i-input-0" | ||
:value="detail.nickname" maxlength="30"></v-text-field> | ||
<!-- <v-btn color="accent" class="pa-2 mx-auto" v-on:click="account.l(0)" block>更改昵称</v-btn> --> | ||
<v-textarea name="input-1" label="个人介绍" :value="detail.introduce" | ||
hint="支持使用markdown编写" id="i-input-1" maxlength="20000" counter></v-textarea> | ||
<!-- <v-btn color="accent" class="pa-2 mx-auto" v-on:click="account.l(1)" block>更改介绍</v-btn> --> | ||
|
||
<v-file-input :rules="rules" | ||
accept="image/png, image/jpeg, image/bmp, image/gif" label="头像(建议尺寸1:1)" | ||
id="workimg" show-size truncate-length="10"></v-file-input> | ||
<v-switch v-model="account.newpage" label="不在新窗口打开页面(访问速度会更快。点更改信息后,按下f5生效)" | ||
color="primary" value="1" hide-details></v-switch> | ||
<v-switch v-model="detail.darkmode" v-show="0" label="夜间模式(点更改信息后,按下ctrl+r生效)" | ||
color="primary" value="1" hide-details></v-switch><br><br> | ||
<!-- <v-img :src="host.data+'/static/internalapi/asset/'+ (workview.image || detail.head || '6e2b0b1056aaa08419fb69a3d7aa5727.png')" :aspect-ratio="1" | ||
class="ma-5 pb-2"></v-img> --> | ||
<div v-if="waitRequest.cover==1">正在上传中……</div> | ||
<div v-if="waitRequest.cover==-1">上传成功</div> | ||
<v-btn color="accent" class="pa-2 mx-auto sd" v-on:click="account.update()" | ||
block> | ||
更改信息</v-btn> | ||
|
||
<br> | ||
<v-divider></v-divider><br> | ||
|
||
<v-text-field v-model="password2" | ||
:append-icon="show1 ? 'mdi-eye' : 'mdi-eye-off'" :rules="[pw]" | ||
:type="show1 ? 'text' : 'password'" name="input-2" label="旧密码" | ||
hide-details="auto" counter @click:append="show1 = !show1" id="a_opw"> | ||
</v-text-field> | ||
<v-text-field v-model="password3" | ||
:append-icon="show2 ? 'mdi-eye' : 'mdi-eye-off'" :rules="[pw]" | ||
:type="show2 ? 'text' : 'password'" name="input-3" label="新密码" | ||
hide-details="auto" counter @click:append="show2 = !show2" id="a_npw"> | ||
</v-text-field> | ||
<v-btn color="accent" class="pa-2 mx-auto sd" v-on:click="account.n()" block> | ||
更改密码 | ||
</v-btn> | ||
</v-card> | ||
</v-col> | ||
</v-row> | ||
</v-container> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<v-container v-if="viewmode=='flist'"> | ||
<v-row> | ||
<v-col class="mx-auto"> | ||
<v-row> | ||
<v-col v-for="j in user.flist" cols="6" sm="4" md="3" lg="2"> | ||
<s-usercard :user="j" :host="host"></s-usercard> | ||
</v-col> | ||
</v-row> | ||
</v-col> | ||
</v-row> | ||
</v-container> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<v-container v-if="viewmode=='forum'"> | ||
<v-row> | ||
<v-col cols="12"> | ||
<v-dialog v-model="forum.dialog" width="500"> | ||
<template v-slot:activator="{ on, attrs }"> | ||
<v-breadcrumbs | ||
:items="[{text:forum.studio.name,href:'#page=studio&id='+forum.studio.id},{text:'论坛',href:'#page=forum&sid='+forum.studio.id}]" | ||
divider=">"></v-breadcrumbs> | ||
<v-btn color="red lighten-2" dark v-bind="attrs" v-on="on"> | ||
发布帖子 | ||
</v-btn> | ||
</template> | ||
|
||
<v-card class="px-3"> | ||
<v-card-title class="text-h5 grey lighten-2"> | ||
帖子发出 | ||
</v-card-title> | ||
|
||
<v-text-field label="标题" id="ftitle"></v-text-field> | ||
<v-textarea label="帖子内容" value="发点什么吧" id="fcontext"></v-textarea> | ||
|
||
<v-divider></v-divider> | ||
|
||
<v-card-actions> | ||
<v-spacer></v-spacer> | ||
<v-btn color="primary" text @click="forum.send();" | ||
:disable="forum.sending"> | ||
发布 | ||
</v-btn> | ||
<v-btn color="primary" text @click="forum.dialog = false"> | ||
取消 | ||
</v-btn> | ||
</v-card-actions> | ||
</v-card> | ||
</v-dialog> | ||
</v-col> | ||
<v-col cols="12" color="white"> | ||
<v-card class="pa-6"> | ||
<div v-for="i in forum.list" :key="i"> | ||
<div class="my-7"> | ||
<a :href="'#page=post&id='+i.id" class="text-h6" | ||
v-text="i.title"></a><span style="color:#aaa" | ||
class="pl-4">#{{i.id}}</span><br> | ||
<div class="mt-1"> | ||
<a :href="'#page=user&id='+i.author"> | ||
<v-avatar size="20"> | ||
<img | ||
:src="host.data+'/static/internalapi/asset/'+(forum.user[i.author][0].head || '6e2b0b1056aaa08419fb69a3d7aa5727.png')"> | ||
</v-avatar>{{forum.user[i.author][0].nickname}} | ||
<span style="color:#aaa" | ||
class="pl-4">{{date(i.new_time)}}</span> | ||
</a> | ||
</div> | ||
</div> | ||
<!-- <v-divider></v-divider> --> | ||
</div> | ||
</v-card> | ||
</v-col> | ||
</v-row> | ||
</v-container> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<v-container v-if="viewmode=='index'" id="index"> | ||
<v-row> | ||
<v-col cols="12"> | ||
<div> | ||
<v-carousel height='auto'> | ||
<v-carousel-item v-for="i in lb" height='auto' :href="i.href"> | ||
<v-img :src="i.src"></v-img> | ||
</v-carousel-item> | ||
</v-carousel> | ||
</div> | ||
</v-col> | ||
<template v-for="n in rows"> | ||
<v-col class="mt-2" cols="12"> | ||
<v-icon>{{ n.icon }}</v-icon> | ||
<strong>{{ n.title }}</strong> | ||
<a class="float-right" href="#page=search&name=&author=&type=0&p=1&s=3"> | ||
<v-btn text> | ||
<v-icon>mdi-arrow-right</v-icon> | ||
更多 | ||
</v-btn> | ||
</a> | ||
</v-col> | ||
<v-col v-for="j in n.worklist" cols="6" sm="4" md="3" lg="2"> | ||
<s-workcard :work="j" :user="n.userlist[j.author.toString()][0]" :host="host"> | ||
</s-workcard> | ||
</v-col> | ||
|
||
</template> | ||
<v-col class="mt-2" cols="12" v-if="viewmode=='index' && user.list"> | ||
<v-icon>mdi-medal</v-icon> | ||
<strong>用户榜</strong> | ||
<a class="float-right" href="#page=search&name=&author=&type=1&p=1&s=1"> | ||
<v-btn text> | ||
<v-icon>mdi-arrow-right</v-icon> | ||
更多 | ||
</v-btn> | ||
</a> | ||
</v-col> | ||
<v-col v-if="user.list" v-for="j in user.list" :key="`${n}${j}`" cols="6" sm="4" md="3" | ||
lg="2"> | ||
<s-usercard :user="j" :host="host"></s-usercard> | ||
</v-col> | ||
<v-col class="mt-2" cols="12" v-if="viewmode=='index' && studio.ilist"> | ||
<v-icon>mdi-format-list-numbered</v-icon> | ||
<strong>工作室榜</strong> | ||
<a class="float-right" href="#page=search&name=&author=&type=2&p=1&s=2"> | ||
<v-btn text> | ||
<v-icon>mdi-arrow-right</v-icon> | ||
更多 | ||
</v-btn> | ||
</a> | ||
</v-col> | ||
<v-col v-if="viewmode=='index' && user.list" v-for="j in studio.ilist" :key="`${n}${j}`" | ||
cols="6" sm="4" md="3" lg="2"> | ||
<s-studiocard :studio="j" :host="host"> | ||
</s-usercard> | ||
</v-col> | ||
</v-row> | ||
</v-container> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<v-container v-if="viewmode=='message'"> | ||
<v-row> | ||
<v-col cols="12" sm="10" md="9" lg="7" class="mx-auto"> | ||
<v-card class="sd pa-8 my-12" v-if="user.message"> | ||
<span v-for="i in user.message"> | ||
<span v-html="i.message"></span> | ||
<v-btn icon class=" ml-2 float-right" v-on:click="user.delmsg(i.id)"> | ||
<v-icon>mdi-delete</v-icon> | ||
</v-btn> | ||
<span color="accent" class="text-h7 text--disabled ml-2 float-right"> | ||
<span>{{ i.time }}</span> | ||
</span> | ||
<br><br> | ||
</span> | ||
<div class="text-center my-3" v-if="user.msgtotal>0"> | ||
<v-pagination v-model="user.msgpage" :length="Math.ceil(user.msgtotal/20)" | ||
:total-visible="7"></v-pagination> | ||
</div> | ||
</v-card> | ||
</v-col> | ||
</v-row> | ||
</v-container> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<v-container v-if="viewmode=='myitem'"> | ||
<v-row> | ||
<v-col class="mx-auto"> | ||
<v-row> | ||
<v-col cols="12" md="6"> | ||
<v-card class="sd mx-auto pa-8 my-12"> | ||
我的物品 | ||
</v-card> | ||
</v-col> | ||
</v-row> | ||
</v-col> | ||
</v-row> | ||
</v-container> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<v-container v-if="viewmode=='mystudio'"> | ||
<v-row> | ||
<template> | ||
<v-col class="" cols="12"> | ||
我的工作室:<v-btn color="white" class="pa-2 text--secondary" elevation="0" | ||
v-on:click="studio.new()"> | ||
新建工作室</v-btn> | ||
</v-col> | ||
|
||
<v-col v-for="j in studio.my" :key="`${j}`" cols="12" sm="6" md="4" lg="3"> | ||
<s-studiocard :studio="j" :host="host"></s-studiocard> | ||
</v-col> | ||
|
||
</v-card> | ||
</template> | ||
</v-row> | ||
</v-container> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<v-container v-if="viewmode=='mywork'"> | ||
<v-row> | ||
<template> | ||
<v-col class="" cols="12"> | ||
我的作品:<v-btn color="white" class="pa-2 text--secondary" elevation="0" | ||
v-on:click="work.new()">新建作品 | ||
</v-btn> | ||
</v-col> | ||
|
||
<v-col v-for="j in mywork" cols="6" sm="4" md="3" lg="2"> | ||
<s-workcard :work="j" :host="host" :my="work"></s-workcard> | ||
</v-col> | ||
|
||
</v-card> | ||
</template> | ||
</v-row> | ||
</v-container> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<v-container v-if="viewmode=='post'"> | ||
<v-row> | ||
<v-col cols="12"> | ||
<v-breadcrumbs | ||
:items="[{text:forum.post.studio.name,href:'#page=studio&id='+forum.post.studio.id},{text:'论坛',href:'#page=forum&sid='+forum.post.studio.id},{text:forum.post.text.title}]" | ||
divider=">"></v-breadcrumbs> | ||
</v-col> | ||
<v-col class="mx-auto"> | ||
<v-card class="mx-auto pa-8 my-2"> | ||
<div class="text-h5">{{ forum.post.text.title }}<span style="color:#aaa" | ||
class="pl-4">#{{forum.post.text.id}}</span></div><br> | ||
<div><a :href="'#page=user&id='+forum.post.author.id" class="text-h6"> | ||
<v-avatar size="20"> | ||
<img | ||
:src="host.data+'/static/internalapi/asset/'+(forum.post.author.head || '6e2b0b1056aaa08419fb69a3d7aa5727.png')"> | ||
</v-avatar> | ||
{{ forum.post.author.nickname }} | ||
<span style="color:#888;font-size: 6px;" class="pl-4"> | ||
{{date(forum.post.text.new_time) }} | ||
</span> | ||
</a></div><br> | ||
<div v-html="forum.post.text.context2" class="pm"></div> | ||
</v-card> | ||
</v-col> | ||
<v-col cols="12"> | ||
<v-card class=" pa-5 sd"> | ||
<span color="accent" class="text-h5 text--primary" cols="24">评论</span><br><br> | ||
<s-c2 :comment="comment" :host="host" :detail="detail"></s-c2> | ||
<s-comment :comment="comment" :host="host" :detail="detail" type="3"> | ||
</s-comment> | ||
</v-card> | ||
</v-col> | ||
</v-row> | ||
</v-container> |
Oops, something went wrong.