@yorha2b-lab/autodev 1.0.37 β 1.0.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README_EN.md +6 -5
- package/package.json +1 -1
- package/templates/react/index.hbs +2 -2
package/README_EN.md
CHANGED
|
@@ -44,11 +44,12 @@ autodev init
|
|
|
44
44
|
```
|
|
45
45
|
|
|
46
46
|
> ### π‘ Zero-Config Quick Start (Simulation Mode)
|
|
47
|
-
> To allow YoRHa units to experience the construction power immediately, Demo Mode is enabled by default:
|
|
48
|
-
> No API_KEY required
|
|
49
|
-
> Drop any image into the screenShot directory (the system will ignore the image content and deploy a standard example.json construction package).
|
|
50
|
-
> Watch the Magic
|
|
51
|
-
>
|
|
47
|
+
> To allow YoRHa units to experience the construction power immediately, **Demo Mode** is enabled by default:
|
|
48
|
+
> 1. **No API_KEY required**. Simply run `autodev watch:page`.
|
|
49
|
+
> 2. Drop any image into the `screenShot` directory (the system will ignore the image content and deploy a standard `example.json` construction package).
|
|
50
|
+
> 3. **Watch the Magic**: The terminal will flash, and React code is physically assembled in seconds.
|
|
51
|
+
>
|
|
52
|
+
> *Note: To recognize actual screenshots, set `useDemo: false` in `config.js` and configure the environment variables above.*
|
|
52
53
|
|
|
53
54
|
Create a `.env` file and configure the following environment variables:
|
|
54
55
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
export default props => {
|
|
2
2
|
|
|
3
|
-
const query = formatQuery(Object.fromEntries(new URLSearchParams(location.search).entries()), formItems)
|
|
4
|
-
|
|
5
3
|
const [form] = Form.useForm()
|
|
6
4
|
const [modal, setModal] = useState({})
|
|
7
5
|
{{#if hasTabs}}
|
|
@@ -16,6 +14,8 @@ export default props => {
|
|
|
16
14
|
|
|
17
15
|
const initParams = {{#if hasTabs}}{ type: tabs[0].key }{{else}}{}{{/if}}
|
|
18
16
|
|
|
17
|
+
const query = formatQuery(Object.fromEntries(new URLSearchParams(location.search).entries()), {{#if hasTabs}}formItems[activeKey]{{else}}formItems{{/if}})
|
|
18
|
+
|
|
19
19
|
const { total, loading, dataSource, search, setSearch, refresh } = useTableQuery(
|
|
20
20
|
async params => await request('/api/{{fileName}}', { method: 'POST', body: params }),
|
|
21
21
|
response => ({ data: response?.data ?? [], total: response?.total ?? 0 }),
|