Skip to content
Merged

Sync #36

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Changelog

- 0.2.0(2019-09-17)
- setup: add fix utf8 for reading file
- **fix json response structure to be same as original apijson api (java)**
- demo: use menu to display example list
- **add association query support**
- 0.1.3(2019-08-06)
- demo: use admlte style layout
- apijson-table: add sort support
- apply_vars -> _apply_vars to avoid mapping to view; don't show db exception detail for security
- apijson-viewedit: remove custom_tcolumns_render_generator in apijson-viewedit; add custom_viewedit_componet block
- 0.1.2 (2019-05-27)
- **add @expr support in apijson_get array**
- more strict check with model name in get action; fix request_tag should get with tag not with model name
- add vue component apijson-viewedit
- apijson post/put/delete should get model name from request_tag setting; add NECESSARY support in _put_one
- add functions.get_apijson_table
- apijson-table: add custom_tcolumns_render_generator prop; deault component is input in add modal; add Notice top config
- 0.1.1 (2019-05-07)
- more strict check to tag_POST; support DISALLOW in apijson_put
- fix DISALLOW and NECESSARY get wrongly problem
- vue component apijson-table: change hook function names; change "type" to "component" in fields config; override modal footer, only cancel button; add checkbox render; add set deleted support
- 0.1.0 (2019-04-02)
- First workable release
2 changes: 2 additions & 0 deletions demo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,6 @@ uliweb runserver

Then you can access http://localhost:8000 to try demo.

Users in demo for test: **admin**/**usera**/**userb**/**userc** , password: **123**

![](doc/imgs/demo_screenshot.png)
10 changes: 5 additions & 5 deletions demo/apps/apijson_demo/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,35 +28,35 @@
<i-menu :active-name="0" @on-select="on_select_get" width="360px" ref='menu_get'>
<menu-group title="apijson get examples" v-if="tab_current==='tab_get'">
<menu-item v-for="(item,index) in request_get" :name="index" :key="index">
📋 {item.label}
<i class="fa fa-fw fa-file-code-o"></i> {item.label}
</menu-item>
</menu-group>
</i-menu>
<i-menu :active-name="0" @on-select="on_select_head" width="360px">
<menu-group title="apijson head examples" v-if="tab_current==='tab_head'">
<menu-item v-for="(item,index) in request_head" :name="index" :key="index">
📋 {item.label}
<i class="fa fa-fw fa-file-code-o"></i> {item.label}
</menu-item>
</menu-group>
</i-menu>
<i-menu :active-name="0" @on-select="on_select_post" width="360px">
<menu-group title="apijson post examples" v-if="tab_current==='tab_post'">
<menu-item v-for="(item,index) in request_post" :name="index" :key="index">
📋 {item.label}
<i class="fa fa-fw fa-file-code-o"></i> {item.label}
</menu-item>
</menu-group>
</i-menu>
<i-menu :active-name="0" @on-select="on_select_put" width="360px">
<menu-group title="apijson put examples" v-if="tab_current==='tab_put'">
<menu-item v-for="(item,index) in request_put" :name="index" :key="index">
📋 {item.label}
<i class="fa fa-fw fa-file-code-o"></i> {item.label}
</menu-item>
</menu-group>
</i-menu>
<i-menu :active-name="0" @on-select="on_select_delete" width="360px">
<menu-group title="apijson delete examples" v-if="tab_current==='tab_delete'">
<menu-item v-for="(item,index) in request_delete" :name="index" :key="index">
📋 {item.label}
<i class="fa fa-fw fa-file-code-o"></i> {item.label}
</menu-item>
</menu-group>
</i-menu>
Expand Down
Binary file modified demo/doc/imgs/demo_screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.