Skip to content

Commit

Permalink
mix - fix init
Browse files Browse the repository at this point in the history
  • Loading branch information
nhathoang989 committed Aug 6, 2023
1 parent be8b06c commit a39d5a9
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<div class="container py-4 w-100"><form id="frm-theme"><div class="text-center mb-4"><a href=""><img src="/mix-app/css/portal/img/mixcore-logo-green.svg" alt="Mixcore CMS" height="36"></a></div><div class="card card-md"><div class="card-body"><div ng-init="init()"><h1 class="lead mb-5 mt-3">You can start <strong>Mixcore</strong> with blank theme or with our default beautiful themes.</h1><tabs-v select-callback="selectPane(pane)"><pane-v header="Mixcore Store"><mix-store install-callback="install(data)"></mix-store></pane-v><pane-v header="Blank Theme"><h1>Blank Theme</h1><p>Choose this theme only if you want to build your theme from scratch.</p></pane-v><pane-v header="Upload your theme"><api-file form-name="'theme'" posted-file="theme"></api-file><small class="form-text text-muted">Mixcore Themes <a target="_blank" href="https://themes.mixcore.org/">list</a>.</small></pane-v></tabs-v></div></div></div><div class="row align-items-center mt-3"><div class="col-4"><div class="progress"><div class="progress-bar" style="width: 75%" role="progressbar" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100"><span class="visually-hidden">25% Complete</span></div></div></div><div class="col"><div class="btn-list justify-content-end" ng-if="canContinue"> <button ng-disabled="themeType ==='custom' && !form['theme'].files.length" class="btn btn-primary" style="min-width: 200px" ng-click="submit()">Continue</button></div></div></div></form></div>
<div class="container py-4 w-100"><form id="frm-theme"><div class="text-center mb-4"><a href=""><img src="/mix-app/css/portal/img/mixcore-logo-green.svg" alt="Mixcore CMS" height="36"></a></div><div class="card card-md"><div class="card-body"><div ng-init="init()"><h1 class="lead mb-5 mt-3">You can start <strong>Mixcore</strong> with blank theme or with our default beautiful themes.</h1><tabs-v select-callback="selectPane(pane)"><pane-v header="Blank Theme"><h1>Blank Theme</h1><p>Choose this theme only if you want to build your theme from scratch.</p></pane-v><pane-v header="Upload your theme"><api-file form-name="'theme'" posted-file="theme"></api-file><small class="form-text text-muted">Mixcore Themes <a target="_blank" href="https://themes.mixcore.org/">list</a>.</small></pane-v></tabs-v></div></div></div><div class="row align-items-center mt-3"><div class="col-4"><div class="progress"><div class="progress-bar" style="width: 75%" role="progressbar" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100"><span class="visually-hidden">25% Complete</span></div></div></div><div class="col"><div class="btn-list justify-content-end" ng-if="canContinue"> <button ng-disabled="themeType ==='custom' && !form['theme'].files.length" class="btn btn-primary" style="min-width: 200px" ng-click="submit()">Continue</button></div></div></div></form></div>
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<div class="btn-toolbar d-flex" role="group" aria-label=""><div ng-if="$ctrl.createUrl" class="btn-group flex-fill" role="group" aria-label="Basic example"><a ng-if="$ctrl.createUrl" href="{{$ctrl.createUrl}}" class="btn btn-primary text-white m-0 mb-3"><i class="fas fa-plus"></i> {{$ctrl.createText}}</a></div></div><div ng-init="$ctrl.init()" class="row"><div class="col-12"><div class="input-group mb-3"><div class="input-group-text" id="btnGroupAddon" ng-click="$ctrl.apply(0)"><i class="mi mi-Search" style="top: 0"></i></div><input ng-model="$ctrl.request.keyword" ng-enter="$ctrl.apply(0)" type="text" class="form-control" placeholder="Search keyword..." aria-label="Search keyword..." aria-describedby="btnGroupAddon"></div></div><div class="col-12"><div class="input-group mb-3"><div class="input-group-text" id="btnGroupAddon" ng-click="$ctrl.apply(0)"><i class="mi mi-Search" style="top: 0"></i></div><input ng-model="$ctrl.request.searchColumns" ng-enter="$ctrl.apply(0)" type="text" class="form-control" placeholder="Search Columns..." aria-label="Search Columns..." aria-describedby="btnGroupAddon"></div></div><div class="col-12"><div class="input-group mb-3"><select class="form-select" ng-model="$ctrl.request.searchMethod" ng-change="$ctrl.apply(0)"><option ng-repeat="item in $ctrl.searchMethods track by $index" value="{{item}}">{{item}}</option></select></div></div><div class="col-12"><div class="input-group mb-3"><select class="form-select" ng-model="$ctrl.request.status" ng-change="$ctrl.apply(0)"><option selected="selected" value="">All status</option><option ng-repeat="item in $ctrl.statuses track by $index" value="{{item}}">{{item}}</option></select> <select class="form-select" ng-model="$ctrl.request.orderBy" ng-change="$ctrl.apply(0)"><option ng-repeat="item in $ctrl.arrOrderby track by $index" value="{{item}}">{{item}}</option></select></div></div><div class="col-12"><div class="input-group mb-3"><select class="form-select" ng-model="$ctrl.request.direction" ng-change="$ctrl.apply(0)"><option ng-repeat="item in $ctrl.directions track by $index" value="{{item}}">{{item}}</option></select> <select class="form-select" ng-model="$ctrl.request.pageSize" ng-change="$ctrl.apply(0)"><option ng-repeat="item in $ctrl.pageSizes track by $index" value="{{item}}">{{item}}</option></select></div></div><div class="col-12"><div class="input-group"><input type="date" data-date-format="dd.MM.yyyy" ng-model="$ctrl.dateRange.fromDate" class="form-control" ng-change="$ctrl.updateDate()"> <input type="date" data-date-format="dd.MM.yyyy" ng-model="$ctrl.dateRange.toDate" class="form-control" ng-change="$ctrl.updateDate()"></div></div></div>
<div class="btn-toolbar d-flex" role="group" aria-label=""><div ng-if="$ctrl.createUrl" class="btn-group flex-fill" role="group" aria-label="Basic example"><a ng-if="$ctrl.createUrl" href="{{$ctrl.createUrl}}" class="btn btn-primary text-white m-0 mb-3"><i class="fas fa-plus"></i> {{$ctrl.createText}}</a></div></div><div ng-init="$ctrl.init()" class="row"><div class="col-12"><div class="input-group mb-3"><div class="input-group-text" id="btnGroupAddon" ng-click="$ctrl.apply(0)"><i class="mi mi-Search" style="top: 0"></i></div><input ng-model="$ctrl.request.keyword" ng-enter="$ctrl.apply(0)" type="text" class="form-control" placeholder="Search keyword..." aria-label="Search keyword..." aria-describedby="btnGroupAddon"></div></div><div class="col-12"><div class="input-group mb-3"><div class="input-group-text" id="btnGroupAddon" ng-click="$ctrl.apply(0)"><i class="mi mi-Search" style="top: 0"></i></div><input ng-model="$ctrl.request.searchColumns" ng-enter="$ctrl.apply(0)" type="text" class="form-control" placeholder="Search Columns..." aria-label="Search Columns..." aria-describedby="btnGroupAddon"></div></div><div class="col-12"><div class="input-group mb-3"><select class="form-select" ng-model="$ctrl.request.searchMethod" ng-change="$ctrl.apply(0)"><option ng-repeat="item in $ctrl.searchMethods track by $index" value="{{item}}">{{item}}</option></select> <input ng-model="$ctrl.request.pageIndex" ng-enter="$ctrl.apply()" type="text" class="form-control" placeholder="Search Columns..." aria-label="Search Columns..." aria-describedby="btnGroupAddon"></div></div><div class="col-12"><div class="input-group mb-3"><select class="form-select" ng-model="$ctrl.request.status" ng-change="$ctrl.apply(0)"><option selected="selected" value="">All status</option><option ng-repeat="item in $ctrl.statuses track by $index" value="{{item}}">{{item}}</option></select> <select class="form-select" ng-model="$ctrl.request.orderBy" ng-change="$ctrl.apply(0)"><option ng-repeat="item in $ctrl.arrOrderby track by $index" value="{{item}}">{{item}}</option></select></div></div><div class="col-12"><div class="input-group mb-3"><select class="form-select" ng-model="$ctrl.request.direction" ng-change="$ctrl.apply(0)"><option ng-repeat="item in $ctrl.directions track by $index" value="{{item}}">{{item}}</option></select> <select class="form-select" ng-model="$ctrl.request.pageSize" ng-change="$ctrl.apply(0)"><option ng-repeat="item in $ctrl.pageSizes track by $index" value="{{item}}">{{item}}</option></select></div></div><div class="col-12"><div class="input-group"><input type="date" data-date-format="dd.MM.yyyy" ng-model="$ctrl.dateRange.fromDate" class="form-control" ng-change="$ctrl.updateDate()"> <input type="date" data-date-format="dd.MM.yyyy" ng-model="$ctrl.dateRange.toDate" class="form-control" ng-change="$ctrl.updateDate()"></div></div></div>
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<modal-nav-datas ng-if="$ctrl.data && $ctrl.parentName && ($ctrl.parentId || $ctrl.guidParentId)" selected-ids="$ctrl.selectedIds" parent-id="$ctrl.parentId" guid-parent-id="$ctrl.guidParentId" parent-database-name="$ctrl.parentName" mix-database-name="$ctrl.mixDatabaseName" select-callback="$ctrl.loadData()"></modal-nav-datas><div class="border-left-0 border-bottom-0 border-right-0"><div class="card-header py-1"><span ng-bind="$ctrl.header"></span><div class="col-md-12 mb-3"><a href="{{$ctrl.createUrl}}" class="btn btn-sm btn-primary float-end px-4 me-2 text-white"><i class="fas fa-plus"></i> Create data</a></div><div class="row"><div class="col-md-1"><div class="form-check"><input type="checkbox" ng-model="$ctrl.selectedList.isSelectAll" ng-change="$ctrl.selectAll($ctrl.selectedList.isSelectAll)" class="form-check-input"></div></div><div ng-repeat="col in $ctrl.database.columns | filter:{ dataType: '!Reference'} | orderBy:'priority' track by $index" ng-if="$index < $ctrl.intShowColumn" class="col-md-2"><div class="input-group input-group-sm"><div class="input-group-text"><i class="fas fa-search"></i></div><input type="text" class="form-control" placeholder="{{col.displayName}}" ng-model="$ctrl.queries[col.systemName]" ng-enter="$ctrl.filter()"></div></div><label class="col-md-2">Created</label><div class="col-md-3"><div class="input-group input-group-sm"> <a class="btn" ng-click="$ctrl.filter()"><i class="fas fa-search"></i></a></div></div></div></div><div class="cardx"><div class=""><div class="p-3" role="alert" ng-if="!$ctrl.data.items"><i class="fas fa-exclamation-triangle text-warning me-3"></i> No data has been created for this table yet!</div><ul class="list-group list-group-flush" dnd-list="$ctrl.data.items" dnd-inserted="$ctrl.updateOrders(index)" ng-if="$ctrl.data"><li ng-repeat="item in $ctrl.data.items track by $index" dnd-draggable="item" dnd-type="'item'" dnd-effect-allowed="copyMove" dnd-selected="$ctrl.selectedItem = item" dnd-disable-if="!$ctrl.canDrag" dnd-dragstart="$ctrl.dragStart($index)" ng-class="{'selected': $ctrl.selectedItem === item}" class="list-group-item attr-set-value-item m-0"><div class="row"><div class="col-md-1 d-flex"><svg dnd-handle style="cursor: grab" xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-drag-drop-2 me-3" width="20" height="20" viewBox="0 0 24 24" stroke-width="1.5" stroke="#2c3e50" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><rect x="8" y="8" width="12" height="12" rx="2"/><line x1="4" y1="4" x2="4" y2="4.01"/><line x1="8" y1="4" x2="8" y2="4.01"/><line x1="12" y1="4" x2="12" y2="4.01"/><line x1="16" y1="4" x2="16" y2="4.01"/><line x1="4" y1="8" x2="4" y2="8.01"/><line x1="4" y1="12" x2="4" y2="12.01"/><line x1="4" y1="16" x2="4" y2="16.01"/></svg> <input type="checkbox" ng-model="item.isSelected" ng-change="$ctrl.select(item)" class="form-check-input"></div><div ng-if="$index < $ctrl.intShowColumn && column.dataType != 'Reference'" ng-repeat="column in $ctrl.database.columns | filter:{ dataType: '!Reference'} | orderBy: 'priority' track by $index" class="col-md-2"><mix-column-preview model="item[column.systemName]" column="column" max-length="50"></mix-column-preview></div><div class="col-md-2"><small class="text-black-50 align-middle" title="{{item.createdDateTime | utcToLocal:'dd.MM.yy hh:mm a'}}">{{item.createdDateTime | utcToLocal:'dd.MM.yy'}}</small></div><div class="col-md-3 border-0"><div class="dropdown float-lg-end ms-auto pe-1"><a href="javascript:;" class="cursor-pointer" id="dropdownTable2" data-bs-toggle="dropdown" aria-expanded="false"><i class="fa fa-ellipsis-h text-secondary" aria-hidden="true"></i></a><ul class="dropdown-menu px-2 py-3 ms-sm-n4 ms-n5" aria-labelledby="dropdownTable2"><li><a class="dropdown-item border-radius-md" ng-click="$ctrl.view(item)"><span class="fa fa-eye"></span> Preview</a></li><li ng-if="item.detailUrl"><a class="dropdown-item border-radius-md" target="_blank" href="{{item.detailUrl}}"><span class="fa fa-link"></span> Config</a></li><li><a ng-click="$ctrl.update(item)" class="dropdown-item border-radius-md"><span class="fa fa-pen"></span> Edit record</a></li><li><a class="dropdown-item border-radius-md" ng-if="$ctrl.onDuplicate" ng-click="$ctrl.duplicate(item.id)"><span class="fas fa-copy"></span> Copy record</a></li><li><a ng-click="$ctrl.delete(item)" class="dropdown-item border-radius-md"><span class="fas fa-trash-alt"></span> Delete record</a></li></ul></div><div class="btn-group btn-group-sm float-end me-3"><a class="btn btn-light" ng-click="$ctrl.view(item)"><span class="fa fa-eye"></span></a> <a ng-click="$ctrl.update(item)" class="btn btn-light"><span class="fa fa-pen"></span></a></div></div></div></li></ul></div></div></div>
<modal-nav-datas ng-if="$ctrl.data && $ctrl.parentName && ($ctrl.parentId || $ctrl.guidParentId)" selected-ids="$ctrl.selectedIds" parent-id="$ctrl.parentId" guid-parent-id="$ctrl.guidParentId" parent-database-name="$ctrl.parentName" mix-database-name="$ctrl.mixDatabaseName" select-callback="$ctrl.loadData()"></modal-nav-datas><div class="border-left-0 border-bottom-0 border-right-0"><div class="card-header py-1"><span ng-bind="$ctrl.header"></span><div class="col-md-12 mb-3"><a href="{{$ctrl.createUrl}}" class="btn btn-sm btn-primary float-end px-4 me-2 text-white"><i class="fas fa-plus"></i> Create data</a></div><div class="row"><div class="col-md-1"><div class="form-check"><input type="checkbox" ng-model="$ctrl.selectedList.isSelectAll" ng-change="$ctrl.selectAll($ctrl.selectedList.isSelectAll)" class="form-check-input"></div></div><div ng-repeat="col in $ctrl.database.columns | filter:{ dataType: '!Reference'} | orderBy:'priority' track by $index" ng-if="$index < $ctrl.intShowColumn" class="col-md-2"><div class="input-group input-group-sm"><div class="input-group-text"><i class="fas fa-search"></i></div><input type="text" class="form-control" placeholder="{{col.displayName}}" ng-model="$ctrl.queries[col.systemName]" ng-enter="$ctrl.filter()"></div></div><label class="col-md-2">Created</label><div class="col-md-3"><div class="input-group input-group-sm"> <a class="btn" ng-click="$ctrl.filter()"><i class="fas fa-search"></i></a></div></div></div></div><div class="cardx"><div class=""><div class="p-3" role="alert" ng-if="!$ctrl.data.items"><i class="fas fa-exclamation-triangle text-warning me-3"></i> No data has been created for this table yet!</div><ul class="list-group list-group-flush" dnd-list="$ctrl.data.items" dnd-inserted="$ctrl.updateOrders(index)" ng-if="$ctrl.data"><li ng-repeat="item in $ctrl.data.items track by $index" dnd-draggable="item" dnd-type="'item'" dnd-effect-allowed="copyMove" dnd-selected="$ctrl.selectedItem = item" dnd-disable-if="!$ctrl.canDrag" dnd-dragstart="$ctrl.dragStart($index)" ng-class="{'selected': $ctrl.selectedItem === item}" class="list-group-item attr-set-value-item m-0"><div class="row"><div class="col-md-1 d-flex"><svg dnd-handle style="cursor: grab" xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-drag-drop-2 me-3" width="20" height="20" viewBox="0 0 24 24" stroke-width="1.5" stroke="#2c3e50" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><rect x="8" y="8" width="12" height="12" rx="2"/><line x1="4" y1="4" x2="4" y2="4.01"/><line x1="8" y1="4" x2="8" y2="4.01"/><line x1="12" y1="4" x2="12" y2="4.01"/><line x1="16" y1="4" x2="16" y2="4.01"/><line x1="4" y1="8" x2="4" y2="8.01"/><line x1="4" y1="12" x2="4" y2="12.01"/><line x1="4" y1="16" x2="4" y2="16.01"/></svg> <input type="checkbox" ng-model="item.isSelected" ng-change="$ctrl.select(item)" class="form-check-input"></div><div ng-if="$index < $ctrl.intShowColumn && column.dataType != 'Reference'" ng-repeat="column in $ctrl.database.columns | filter:{ dataType: '!Reference'} | orderBy: 'priority' track by $index" class="col-md-2"><mix-column-preview model="item[column.systemName]" column="column" max-length="50"></mix-column-preview></div><div class="col-md-2"><small class="text-black-50 align-middle" title="{{item.createdDateTime | utcToLocal:'dd.MM.yy hh:mm a'}}">{{item.createdDateTime | utcToLocal:'dd.MM.yy hh:mm a'}}</small></div><div class="col-md-3 border-0"><div class="dropdown float-lg-end ms-auto pe-1"><a href="javascript:;" class="cursor-pointer" id="dropdownTable2" data-bs-toggle="dropdown" aria-expanded="false"><i class="fa fa-ellipsis-h text-secondary" aria-hidden="true"></i></a><ul class="dropdown-menu px-2 py-3 ms-sm-n4 ms-n5" aria-labelledby="dropdownTable2"><li><a class="dropdown-item border-radius-md" ng-click="$ctrl.view(item)"><span class="fa fa-eye"></span> Preview</a></li><li ng-if="item.detailUrl"><a class="dropdown-item border-radius-md" target="_blank" href="{{item.detailUrl}}"><span class="fa fa-link"></span> Config</a></li><li><a ng-click="$ctrl.update(item)" class="dropdown-item border-radius-md"><span class="fa fa-pen"></span> Edit record</a></li><li><a class="dropdown-item border-radius-md" ng-if="$ctrl.onDuplicate" ng-click="$ctrl.duplicate(item.id)"><span class="fas fa-copy"></span> Copy record</a></li><li><a ng-click="$ctrl.delete(item)" class="dropdown-item border-radius-md"><span class="fas fa-trash-alt"></span> Delete record</a></li></ul></div><div class="btn-group btn-group-sm float-end me-3"><a class="btn btn-light" ng-click="$ctrl.view(item)"><span class="fa fa-eye"></span></a> <a ng-click="$ctrl.update(item)" class="btn btn-light"><span class="fa fa-pen"></span></a></div></div></div></li></ul></div></div></div>
Loading

0 comments on commit a39d5a9

Please sign in to comment.