Browse Source

第三天

visuddhinanda 4 năm trước cách đây
mục cha
commit
2b7dd73d77

+ 28 - 1
README.md

@@ -1,7 +1,24 @@
 # [PCD-Suite](https://github.com/iapt-platform/PCD-Suite)的 Rust&React 重写版
 
+## 目录
+
+|目录|用途|备注|
+|-|-|-|
+|app|旧的项目目录||
+|dashboard|前端代码||
+|api|后端代码||
+|documents|开发文档||
+|docker|podman 启动脚本||
+|font|网站所使用的字体||
+|dicttext|字典数据文件csv格式||
+|docker|podman 启动脚本||
+|pali_title|三藏标题csv|更新csv文件后,运行install/***.php更新数据库|
+|phphtml|三藏原文数据|html格式,来自pced|
+|paliword|巴利文献单词表 |用三藏原文数据库导出的单词表生成|以后考虑服务器端生成|
+
 ## 安装
 
+MacOS
 ```bash
 cd mint; mkdir tmp; chown -R www:www tmp
 ```
@@ -9,7 +26,17 @@ cd mint; mkdir tmp; chown -R www:www tmp
 然后进入 http://localhost/app/install 开始安装
 
 ## 开发
-
+### 技术栈
+#### 前端
+- ant design pro
+- react
+- Tapescript
+
+#### 后端
+- PostgreSQL
+- PHP
+- Laravel
+  
 ### 工具
 
 #### 推荐使用 **VSCode**, 常用插件列表

+ 105 - 0
dashboard/src/pages/demo/day-3.tsx

@@ -0,0 +1,105 @@
+import { Form, Input, Button, Select,Checkbox } from 'antd';
+import { unstable_renderSubtreeIntoContainer } from 'react-dom';
+
+export default () => {
+    const [form] = Form.useForm();
+
+    const onUsernameChange=(value:string)=>{
+        console.log("username:",value);
+    }
+    const onGerderChange =(value:string)=>{
+        switch(value){
+            case 'male':
+                form.setFieldsValue({note:'hi,man!'});
+                return;
+            case 'female':
+                form.setFieldsValue({note:'hi,lady!'});
+                return;
+            case 'other':
+                form.setFieldsValue({note:"hi there!"});
+                return;
+        }
+    }
+  const onFinish = (values: any) => {
+    console.log('Success:', values);
+    const pwd1=form.getFieldValue("password");
+    const pwd2=form.getFieldValue("password2");
+    if(pwd1.length<6){
+        console.log("长度过短");
+    }
+    else if(pwd1!=pwd2){
+        console.log("两次密码不相同");
+    }
+  };
+
+  const onFill=()=>{
+    form.setFieldsValue({username:"wikipali"});
+    form.setFieldsValue({password:""});
+    form.setFieldsValue({password2:""});
+  }
+  const onFinishFailed = (errorInfo: any) => {
+    console.log('Failed:', errorInfo);
+  };
+
+  return (
+    <Form
+    form={form}
+      name="control-hooks"
+      labelCol={{ span: 8 }}
+      wrapperCol={{ span: 16 }}
+      initialValues={{ remember: true }}
+      onFinish={onFinish}
+      onFinishFailed={onFinishFailed}
+    >
+    <Form.Item
+        label="note"
+        name="note"
+        rules={[{ required: true }]}
+      >
+        <Input />
+      </Form.Item>
+
+      <Form.Item
+        label="用户名"
+        name="username"
+        rules={[{ required: true, message: 'Please input your username!' }]}
+      >
+        <Input onChange={onUsernameChange} />
+      </Form.Item>
+
+      <Form.Item
+        label="密码"
+        name="password"
+        rules={[{ required: true, message: 'Please input your password!' }]}
+      >
+        <Input.Password />
+      </Form.Item>
+      <Form.Item
+        label="重复密码"
+        name="password2"
+        rules={[{ required: true, message: 'Please input your password!' }]}
+      >
+        <Input.Password />
+      </Form.Item>
+
+<Form.Item
+name="gender" lable="性别" rules={[{reqired:true}]}>
+    <Select
+    placeholder="Select a option and change input text above"
+    onChange={onGerderChange}
+    allowClear
+    >
+        <Option value="male">男</Option>
+        <Option value="femail">女</Option>
+        <Option value="other">其他</Option>
+    </Select>
+</Form.Item>
+      <Form.Item wrapperCol={{ offset: 8, span: 16 }}>
+        <Button type="primary" htmlType="submit">
+          提交
+        </Button>
+        <Button type="link" htmlType="button" onClick={onFill}>填充</Button>
+      </Form.Item>
+    </Form>
+  );
+};

+ 0 - 0
deploy/.txt


+ 0 - 15
documents/course/值班通知.md

@@ -1,15 +0,0 @@
-
-今天Today
-2:30-7:00 LA
-5:30-10:00 NewYork
-16:00-20:30 缅甸
-17:30-22:00 北京
-为我的线上值班时间
-I will be on duty.
-我会进入zoom会议室,编写用户指南、预习课程等工作。
-I will enter the zoom meeting room, editing the user guide, and prepare for tomorrow class.
-有需要的尊者、贤友可以进入会议室讨论明天的课程内容以及软件的使用细节。
-If any Bhante and Dhamma Friends need my help(software or tomorrow class), can find me in the meeting room.
-- zoom https://us02web.zoom.us/j/82285613942?pwd=Y0pPcUU4cmpoTURhckRGUExtRUNRUT09
-- ZOOM ID:822 8561 3942
-- 密码Password:791203

+ 0 - 19
documents/course/课程历史链接.md

@@ -1,19 +0,0 @@
-## 课程回放Lesson Replays:
-- Outside Mainland China
-  - [youtube](https://www.youtube.com/playlist?list=PL_1iJBQvNPFHmQFWvzotYY3F6et83tFZN)
-  - [字幕投稿Subtitle distribute](https://www.youtube.com/timedtext_cs_panel?c=UClGNGi4ULgZafT_OIit_owA&tab=2)
-
-- 中国大陆地区
-  - [百度网盘](https://pan.baidu.com/s/1zjWdxydOMig4Zv213nsGiA)  提取码:q4k5 
-  - [优酷](https://list.youku.com/albumlist/show/id_52498274?spm=a2h9p.12367095.app.SECTION~MAIN~SECTION~MAIN~5~5~5!3~5~5!2~5~5~5~5~5!2~5~A)
-
-  
-## 其他参考资料Other Referance
-### Dhamma Talk on "The Significance of Āsāḷha Full Moon Day"
-by Sayadaw Kuṇḍadhāna on12th July 2020
-- Outside Mainland China [youtube](https://www.youtube.com/playlist?list=PL_qplOeoq4DtIh6XfsE4O9nCe198aXeTT) 
-- 中国大陆:[百度网盘](https://pan.baidu.com/s/1e35cNpw1RaiSePrZ_OA2Fg) 提取码:pali
-### wikipāḷi使用指南
-- Outside Mainland China [中文版](https://youtu.be/Ymwk-L8cNlY) [英文版](https://youtu.be/F2U9guv_0cM)
-- 中国大陆:[百度网盘](https://pan.baidu.com/s/1PtvCVBx5sqspflKhzisJzg) 提取码: snba
-

+ 0 - 26
documents/course/课程通知.md

@@ -1,26 +0,0 @@
-逐词解析转动正法车轮经 根本 义註 复註 的实战巴利语课堂。
- 
- Practial Class of Dhammacakkappavattanasutta mūla, aṭṭhakathā & tīkā word by word explaination
-
-主讲老师Teacher:U Kuṇḍadhāna Sayadaw
-
-授课地点Place:
-
-线下Offline:
-- 帕奥禅修中心(缅甸·土瓦dawei)
-Pa-auk Meditation Centre(Dawei, Myanmar)
-
-线上Online:
-- zoom https://us02web.zoom.us/j/82285613942?pwd=Y0pPcUU4cmpoTURhckRGUExtRUNRUT09
-- ZOOM ID:822 8561 3942
-- 密码Password:791203
-
-授课时间Time:
-- SUN MON TUE THR (3 from 4)
- - 18:30 L. A.
- - 21:30 NewYork
-- 周一 周二 周三 周五 (4选3)
- - 8:00 仰光
- - 9:30 北京
-
-技术支持Power by:www.wikipali.org