Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

demo: use adminlte style layout#32

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
TommyLemon merged 1 commit intoAPIJSON:masterfromzhangchunlin:master
Jun 20, 2019
Merged
Show file tree
Hide file tree
Changes fromall 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
5 changes: 5 additions & 0 deletionsdemo/apps/apijson_demo/static/layout.css
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
/* override uliweb_layout/layout/static/layout.css */
.main-footer {background-color: #3c8dbc; color: #e0e0e0;margin-left:0}
#layout-body .content-wrapper {border-left:none}
#layout-body.full .main-header .container { width: 100%; }
#layout-body.full .content-wrapper > .container { width: 100%; padding: 0; }
6 changes: 5 additions & 1 deletiondemo/apps/apijson_demo/templates/index.html
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
{{extend "layout_demo.html"}}

{{block content_header_title}}<h1>uliweb-apijson api examples</h1>{{end content_header_title}}

{{block content_main}}
{{use "ui.vue"}}
{{use "ui.iview"}}

<div id="app">
<div id="app" class='box'>
<div class="box-body">
<tabs v-model:value="tab_current" type="card" :animated="false">
<tab-pane label="apijson get" name="tab_get"></tab-pane>
<tab-pane label="apijson head" name="tab_head"></tab-pane>
Expand DownExpand Up@@ -96,6 +99,7 @@
<i-col span="8"><i-input v-model="response_data" type="textarea" readonly :autosize="{minRows: 5,maxRows: 30}" /></i-col>
</Row>
</div>
</div>
<script>
var vm = new Vue({
el: '#app',
Expand Down
6 changes: 5 additions & 1 deletiondemo/apps/tables/templates/Tables/list.html
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,23 @@
{{extend "Tables/layout.html"}}

{{block content_header_title}}<h1>apijson-table examples</h1>{{end content_header_title}}

{{block content_main}}
{{use "ui.vue"}}
{{use "ui.iview"}}
{{include "vue/inc_apijson_table.html"}}
{{if role!="ADMIN":}}
<div class="alert alert-warning" role="alert">You should <a class="btn btn-primary btn-sm" href="{{=url_for('uliweb_apps.login.views.login')}}" role="button">login</a> with user <strong>admin</strong> to view all the tables</div>
{{pass #if}}
<div id="app">
<div id="app" class='box'>
<div class="box-body">
<tabs v-model:value="tab_current" type="card">
<tab-pane v-for="item in tabs" :key="item" :label="item" :name="item">
<apijson-table :model_name="item" :config="apijson_tables[item]"></apijson-table>
</tab-pane>
</tabs>
</div>
</div>

<script>
var vm = new Vue({
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp