├── .gitignore
├── .history
├── .gitignore_20180425172609
├── .gitignore_20180429224700
├── .gitignore_20180429224726
└── .gitignore_20180429224746
├── .vscode
├── launch.json
└── settings.json
├── LICENSE
├── README.md
├── akvue
├── apps.sh
├── docs
├── img
│ ├── antdesign.jpeg
│ ├── applist.png
│ ├── mooa-app.jpg
│ └── sdkapp.png
└── roadmap.md
├── lerna.json
├── package-lock.json
├── package.json
├── packages
├── ak-app-dwh
│ ├── LICENSE
│ ├── README.md
│ ├── package.json
│ ├── src
│ │ ├── base
│ │ │ ├── DwhCodeTable.ts
│ │ │ ├── dwhBaseSource.ts
│ │ │ ├── dwhbasesource.ts
│ │ │ └── dwhcodetable.ts
│ │ ├── data
│ │ │ ├── dwh_HostComputer.ts
│ │ │ ├── dwh_hostcomputer.ts
│ │ │ ├── dwh_permission.ts
│ │ │ ├── dwh_search_tables.ts
│ │ │ ├── dwh_source.ts
│ │ │ ├── dwh_tables.ts
│ │ │ ├── dwh_task.ts
│ │ │ └── dwh_task_subscriptions.ts
│ │ ├── dwhApp.ts
│ │ ├── dwhapp.ts
│ │ ├── index.ts
│ │ └── plugs
│ │ │ └── source
│ │ │ ├── dwh_HostComputer.ts
│ │ │ ├── dwh_hostcomputer.ts
│ │ │ ├── dwh_permission.ts
│ │ │ ├── dwh_search_tables_source.ts
│ │ │ ├── dwh_source.ts
│ │ │ ├── dwh_tables.ts
│ │ │ ├── dwh_task.ts
│ │ │ └── dwh_task_subscriptions.ts
│ └── tsconfig.json
├── ak-app-sdk
│ ├── LICENSE
│ ├── README.md
│ ├── package.json
│ ├── src
│ │ ├── index.ts
│ │ ├── lib
│ │ │ └── tree.ts
│ │ ├── page
│ │ │ ├── AppDetailPage.ts
│ │ │ ├── CodePage.ts
│ │ │ ├── DiPage.ts
│ │ │ ├── DymicPage.ts
│ │ │ ├── VuePage.ts
│ │ │ ├── allapppage.ts
│ │ │ ├── allmenupage.ts
│ │ │ ├── appdetailpage.ts
│ │ │ ├── codepage.ts
│ │ │ ├── dipage.ts
│ │ │ ├── dymicpage.ts
│ │ │ ├── eventbuspage.ts
│ │ │ ├── formpage.ts
│ │ │ ├── mixintestpage.ts
│ │ │ ├── reactdemopage.tsx
│ │ │ ├── reactdemopage2.tsx
│ │ │ ├── testrx
│ │ │ │ ├── item.vue
│ │ │ │ ├── item1.vue
│ │ │ │ ├── items.vue
│ │ │ │ ├── list.vue
│ │ │ │ └── test.vue
│ │ │ ├── testrxpage.ts
│ │ │ ├── testvmpage.ts
│ │ │ ├── view
│ │ │ │ ├── IView.ts
│ │ │ │ ├── demoView.vue
│ │ │ │ ├── demoView2.vue
│ │ │ │ ├── iview.ts
│ │ │ │ └── normalvue.vue
│ │ │ ├── vuepage.ts
│ │ │ └── vuevlasspage.ts
│ │ ├── sdkApp.ts
│ │ ├── sdkapp.ts
│ │ └── vue-shim.d.ts
│ └── tsconfig.json
├── ak-dev-node
│ ├── LICENSE
│ ├── README.md
│ ├── build
│ │ ├── appcontext.d.ts
│ │ ├── appcontext.js
│ │ ├── buildapp.d.ts
│ │ └── buildapp.js
│ ├── package.json
│ ├── src
│ │ ├── build
│ │ │ ├── appcontext.ts
│ │ │ ├── buildapp.spec.ts
│ │ │ └── buildapp.ts
│ │ ├── test
│ │ │ └── fixtures
│ │ │ │ └── file.json
│ │ └── util
│ │ │ ├── fileutil.spec.ts
│ │ │ └── fileutil.ts
│ ├── tsconfig.json
│ └── util
│ │ ├── fileutil.d.ts
│ │ └── fileutil.js
├── ak-host
│ ├── README.md
│ ├── build
│ │ └── env.js
│ ├── package.json
│ ├── postcss.config.js
│ ├── public
│ │ ├── favicon.ico
│ │ ├── index.html
│ │ ├── lvw.ico
│ │ └── theme
│ │ │ ├── g.css
│ │ │ ├── r.css
│ │ │ └── y.css
│ ├── src
│ │ ├── .akvue.js
│ │ ├── app.vue
│ │ ├── assets
│ │ │ └── logo.png
│ │ ├── boot.js
│ │ ├── components
│ │ │ ├── HelloWorld.vue
│ │ │ ├── bread.vue
│ │ │ ├── device.vue
│ │ │ ├── form.vue
│ │ │ ├── header.vue
│ │ │ ├── menu-item.vue
│ │ │ ├── nav-header.vue
│ │ │ ├── nav-menu.vue
│ │ │ ├── nav.vue
│ │ │ ├── rich-form.vue
│ │ │ ├── tag.vue
│ │ │ ├── user.vue
│ │ │ ├── vue-tree
│ │ │ │ ├── brute.js
│ │ │ │ ├── checkbox.js
│ │ │ │ ├── clickoutside.js
│ │ │ │ ├── conextmenu.js
│ │ │ │ ├── contextmenu.vue
│ │ │ │ ├── dnd.js
│ │ │ │ ├── levenshtein.js
│ │ │ │ ├── node.js
│ │ │ │ ├── node.vue
│ │ │ │ ├── tree.js
│ │ │ │ ├── tree.vue
│ │ │ │ └── util.js
│ │ │ └── wf-user.vue
│ │ ├── images
│ │ │ ├── cropper-test.png
│ │ │ ├── logo-min.jpg
│ │ │ ├── logo.jpg
│ │ │ ├── lvw.ico
│ │ │ ├── lw-l.png
│ │ │ ├── lw-sm.png
│ │ │ └── lw2.png
│ │ ├── libs
│ │ │ ├── table2excel.js
│ │ │ └── util.js
│ │ ├── locale
│ │ │ ├── index.js
│ │ │ ├── locale.js
│ │ │ └── zh_CN.js
│ │ ├── main.ts
│ │ ├── pages
│ │ │ ├── data_integration
│ │ │ │ ├── data_source_add.vue
│ │ │ │ ├── data_source_manage.vue
│ │ │ │ ├── task_edit.vue
│ │ │ │ ├── task_schedule.vue
│ │ │ │ ├── task_submit.vue
│ │ │ │ └── task_update.vue
│ │ │ ├── data_management
│ │ │ │ ├── data_table_add.vue
│ │ │ │ ├── data_table_detail.vue
│ │ │ │ ├── data_table_edit.vue
│ │ │ │ ├── data_table_manage.vue
│ │ │ │ ├── data_table_search.vue
│ │ │ │ ├── sub_apply.vue
│ │ │ │ ├── sub_apply_complete.vue
│ │ │ │ ├── sub_auth.vue
│ │ │ │ ├── sub_detail.vue
│ │ │ │ ├── sub_permission_manage.vue
│ │ │ │ ├── sub_task_manage.vue
│ │ │ │ └── sub_task_update.vue
│ │ │ ├── home.vue
│ │ │ └── management
│ │ │ │ ├── app.vue
│ │ │ │ ├── asyncvue.js
│ │ │ │ ├── cluster.vue
│ │ │ │ ├── cluster_new.vue
│ │ │ │ └── container.vue
│ │ ├── router
│ │ │ ├── index.js
│ │ │ └── route.ts
│ │ ├── store
│ │ │ ├── config.ts
│ │ │ ├── index.js
│ │ │ └── modules
│ │ │ │ ├── app.js
│ │ │ │ ├── menu.js
│ │ │ │ └── user.js
│ │ ├── styles
│ │ │ ├── common.less
│ │ │ ├── fonts
│ │ │ │ ├── ionicons.eot
│ │ │ │ ├── ionicons.svg
│ │ │ │ ├── ionicons.ttf
│ │ │ │ └── ionicons.woff
│ │ │ ├── loading.less
│ │ │ └── login_bg.jpg
│ │ ├── views
│ │ │ ├── access
│ │ │ │ ├── access-test.vue
│ │ │ │ ├── access.less
│ │ │ │ └── access.vue
│ │ │ ├── advanced-router
│ │ │ │ ├── advanced-router.less
│ │ │ │ ├── argument-page.vue
│ │ │ │ ├── component
│ │ │ │ │ ├── expandRow.vue
│ │ │ │ │ ├── order-info.vue
│ │ │ │ │ └── shopping-info.vue
│ │ │ │ └── mutative-router.vue
│ │ │ ├── door.vue
│ │ │ ├── error-page
│ │ │ │ ├── 403.less
│ │ │ │ ├── 403.vue
│ │ │ │ ├── 404.less
│ │ │ │ ├── 404.vue
│ │ │ │ ├── 500.less
│ │ │ │ ├── 500.vue
│ │ │ │ ├── error-page.less
│ │ │ │ └── error-page.vue
│ │ │ ├── form
│ │ │ │ ├── article-publish
│ │ │ │ │ ├── article-publish.less
│ │ │ │ │ ├── article-publish.vue
│ │ │ │ │ ├── preview.less
│ │ │ │ │ └── preview.vue
│ │ │ │ └── work-flow
│ │ │ │ │ ├── work-flow.less
│ │ │ │ │ └── work-flow.vue
│ │ │ ├── home
│ │ │ │ ├── components
│ │ │ │ │ ├── countUp.vue
│ │ │ │ │ ├── dataSourcePie.vue
│ │ │ │ │ ├── inforCard.vue
│ │ │ │ │ ├── map.vue
│ │ │ │ │ ├── mapDataTable.vue
│ │ │ │ │ ├── serviceRequests.vue
│ │ │ │ │ ├── styles
│ │ │ │ │ │ ├── infor-card.less
│ │ │ │ │ │ └── to-do-list-item.less
│ │ │ │ │ ├── toDoListItem.vue
│ │ │ │ │ ├── userFlow.vue
│ │ │ │ │ └── visiteVolume.vue
│ │ │ │ ├── home.less
│ │ │ │ ├── home.vue
│ │ │ │ └── map-data
│ │ │ │ │ ├── china.json
│ │ │ │ │ ├── get-city-value.js
│ │ │ │ │ ├── get-geography-value.js
│ │ │ │ │ └── get-style-json.js
│ │ │ ├── international
│ │ │ │ ├── international.less
│ │ │ │ └── international.vue
│ │ │ ├── login.less
│ │ │ ├── login.vue
│ │ │ ├── main-components
│ │ │ │ ├── breadcrumb-nav.vue
│ │ │ │ ├── fullscreen.vue
│ │ │ │ ├── lockscreen
│ │ │ │ │ ├── components
│ │ │ │ │ │ ├── locking-page.vue
│ │ │ │ │ │ └── unlock.vue
│ │ │ │ │ ├── lockscreen.vue
│ │ │ │ │ └── styles
│ │ │ │ │ │ └── unlock.less
│ │ │ │ ├── message-tip.vue
│ │ │ │ ├── shrinkable-menu
│ │ │ │ │ ├── components
│ │ │ │ │ │ ├── sidebarMenu.vue
│ │ │ │ │ │ └── sidebarMenuShrink.vue
│ │ │ │ │ ├── shrinkable-menu.vue
│ │ │ │ │ └── styles
│ │ │ │ │ │ └── menu.less
│ │ │ │ ├── tags-page-opened.vue
│ │ │ │ └── theme-switch
│ │ │ │ │ ├── theme-switch.vue
│ │ │ │ │ └── theme
│ │ │ │ │ ├── g.css
│ │ │ │ │ ├── r.css
│ │ │ │ │ └── y.css
│ │ │ ├── main.less
│ │ │ ├── main.vue
│ │ │ ├── message
│ │ │ │ ├── message.less
│ │ │ │ └── message.vue
│ │ │ ├── my-components
│ │ │ │ ├── area-linkage
│ │ │ │ │ ├── area-linkage.less
│ │ │ │ │ ├── area-linkage.vue
│ │ │ │ │ ├── components
│ │ │ │ │ │ ├── al-cascader.vue
│ │ │ │ │ │ └── al-selector.vue
│ │ │ │ │ └── util
│ │ │ │ │ │ └── index.js
│ │ │ │ ├── count-to
│ │ │ │ │ ├── CountTo.vue
│ │ │ │ │ ├── count-to.less
│ │ │ │ │ └── count-to.vue
│ │ │ │ ├── draggable-list
│ │ │ │ │ ├── draggable-list.less
│ │ │ │ │ └── draggable-list.vue
│ │ │ │ ├── file-upload
│ │ │ │ │ ├── file-upload.vue
│ │ │ │ │ └── upload.less
│ │ │ │ ├── image-editor
│ │ │ │ │ ├── cropper.min.css
│ │ │ │ │ ├── image-editor.less
│ │ │ │ │ └── image-editor.vue
│ │ │ │ ├── markdown-editor
│ │ │ │ │ ├── markdown-editor.less
│ │ │ │ │ ├── markdown-editor.vue
│ │ │ │ │ └── simplemde.min.css
│ │ │ │ └── text-editor
│ │ │ │ │ ├── text-editor.vue
│ │ │ │ │ └── tinymce
│ │ │ │ │ ├── langs
│ │ │ │ │ ├── en_GB.js
│ │ │ │ │ └── zh_CN.GB2312.js
│ │ │ │ │ ├── plugins
│ │ │ │ │ ├── advlist
│ │ │ │ │ │ ├── index.js
│ │ │ │ │ │ ├── plugin.js
│ │ │ │ │ │ └── plugin.min.js
│ │ │ │ │ ├── anchor
│ │ │ │ │ │ ├── index.js
│ │ │ │ │ │ ├── plugin.js
│ │ │ │ │ │ └── plugin.min.js
│ │ │ │ │ ├── autolink
│ │ │ │ │ │ ├── index.js
│ │ │ │ │ │ ├── plugin.js
│ │ │ │ │ │ └── plugin.min.js
│ │ │ │ │ ├── autoresize
│ │ │ │ │ │ ├── index.js
│ │ │ │ │ │ ├── plugin.js
│ │ │ │ │ │ └── plugin.min.js
│ │ │ │ │ ├── autosave
│ │ │ │ │ │ ├── index.js
│ │ │ │ │ │ ├── plugin.js
│ │ │ │ │ │ └── plugin.min.js
│ │ │ │ │ ├── bbcode
│ │ │ │ │ │ ├── index.js
│ │ │ │ │ │ ├── plugin.js
│ │ │ │ │ │ └── plugin.min.js
│ │ │ │ │ ├── charmap
│ │ │ │ │ │ ├── index.js
│ │ │ │ │ │ ├── plugin.js
│ │ │ │ │ │ └── plugin.min.js
│ │ │ │ │ ├── code
│ │ │ │ │ │ ├── index.js
│ │ │ │ │ │ ├── plugin.js
│ │ │ │ │ │ └── plugin.min.js
│ │ │ │ │ ├── codesample
│ │ │ │ │ │ ├── css
│ │ │ │ │ │ │ └── prism.css
│ │ │ │ │ │ ├── index.js
│ │ │ │ │ │ ├── plugin.js
│ │ │ │ │ │ └── plugin.min.js
│ │ │ │ │ ├── colorpicker
│ │ │ │ │ │ ├── index.js
│ │ │ │ │ │ ├── plugin.js
│ │ │ │ │ │ └── plugin.min.js
│ │ │ │ │ ├── contextmenu
│ │ │ │ │ │ ├── index.js
│ │ │ │ │ │ ├── plugin.js
│ │ │ │ │ │ └── plugin.min.js
│ │ │ │ │ ├── directionality
│ │ │ │ │ │ ├── index.js
│ │ │ │ │ │ ├── plugin.js
│ │ │ │ │ │ └── plugin.min.js
│ │ │ │ │ ├── emoticons
│ │ │ │ │ │ ├── img
│ │ │ │ │ │ │ ├── smiley-cool.gif
│ │ │ │ │ │ │ ├── smiley-cry.gif
│ │ │ │ │ │ │ ├── smiley-embarassed.gif
│ │ │ │ │ │ │ ├── smiley-foot-in-mouth.gif
│ │ │ │ │ │ │ ├── smiley-frown.gif
│ │ │ │ │ │ │ ├── smiley-innocent.gif
│ │ │ │ │ │ │ ├── smiley-kiss.gif
│ │ │ │ │ │ │ ├── smiley-laughing.gif
│ │ │ │ │ │ │ ├── smiley-money-mouth.gif
│ │ │ │ │ │ │ ├── smiley-sealed.gif
│ │ │ │ │ │ │ ├── smiley-smile.gif
│ │ │ │ │ │ │ ├── smiley-surprised.gif
│ │ │ │ │ │ │ ├── smiley-tongue-out.gif
│ │ │ │ │ │ │ ├── smiley-undecided.gif
│ │ │ │ │ │ │ ├── smiley-wink.gif
│ │ │ │ │ │ │ └── smiley-yell.gif
│ │ │ │ │ │ ├── index.js
│ │ │ │ │ │ ├── plugin.js
│ │ │ │ │ │ └── plugin.min.js
│ │ │ │ │ ├── fullpage
│ │ │ │ │ │ ├── index.js
│ │ │ │ │ │ ├── plugin.js
│ │ │ │ │ │ └── plugin.min.js
│ │ │ │ │ ├── fullscreen
│ │ │ │ │ │ ├── index.js
│ │ │ │ │ │ ├── plugin.js
│ │ │ │ │ │ └── plugin.min.js
│ │ │ │ │ ├── help
│ │ │ │ │ │ ├── img
│ │ │ │ │ │ │ └── logo.png
│ │ │ │ │ │ ├── index.js
│ │ │ │ │ │ ├── plugin.js
│ │ │ │ │ │ └── plugin.min.js
│ │ │ │ │ ├── hr
│ │ │ │ │ │ ├── index.js
│ │ │ │ │ │ ├── plugin.js
│ │ │ │ │ │ └── plugin.min.js
│ │ │ │ │ ├── image
│ │ │ │ │ │ ├── index.js
│ │ │ │ │ │ ├── plugin.js
│ │ │ │ │ │ └── plugin.min.js
│ │ │ │ │ ├── imagetools
│ │ │ │ │ │ ├── index.js
│ │ │ │ │ │ ├── plugin.js
│ │ │ │ │ │ └── plugin.min.js
│ │ │ │ │ ├── importcss
│ │ │ │ │ │ ├── index.js
│ │ │ │ │ │ ├── plugin.js
│ │ │ │ │ │ └── plugin.min.js
│ │ │ │ │ ├── insertdatetime
│ │ │ │ │ │ ├── index.js
│ │ │ │ │ │ ├── plugin.js
│ │ │ │ │ │ └── plugin.min.js
│ │ │ │ │ ├── legacyoutput
│ │ │ │ │ │ ├── index.js
│ │ │ │ │ │ ├── plugin.js
│ │ │ │ │ │ └── plugin.min.js
│ │ │ │ │ ├── link
│ │ │ │ │ │ ├── index.js
│ │ │ │ │ │ ├── plugin.js
│ │ │ │ │ │ └── plugin.min.js
│ │ │ │ │ ├── lists
│ │ │ │ │ │ ├── index.js
│ │ │ │ │ │ ├── plugin.js
│ │ │ │ │ │ └── plugin.min.js
│ │ │ │ │ ├── media
│ │ │ │ │ │ ├── index.js
│ │ │ │ │ │ ├── plugin.js
│ │ │ │ │ │ └── plugin.min.js
│ │ │ │ │ ├── nonbreaking
│ │ │ │ │ │ ├── index.js
│ │ │ │ │ │ ├── plugin.js
│ │ │ │ │ │ └── plugin.min.js
│ │ │ │ │ ├── noneditable
│ │ │ │ │ │ ├── index.js
│ │ │ │ │ │ ├── plugin.js
│ │ │ │ │ │ └── plugin.min.js
│ │ │ │ │ ├── pagebreak
│ │ │ │ │ │ ├── index.js
│ │ │ │ │ │ ├── plugin.js
│ │ │ │ │ │ └── plugin.min.js
│ │ │ │ │ ├── paste
│ │ │ │ │ │ ├── index.js
│ │ │ │ │ │ ├── plugin.js
│ │ │ │ │ │ └── plugin.min.js
│ │ │ │ │ ├── preview
│ │ │ │ │ │ ├── index.js
│ │ │ │ │ │ ├── plugin.js
│ │ │ │ │ │ └── plugin.min.js
│ │ │ │ │ ├── print
│ │ │ │ │ │ ├── index.js
│ │ │ │ │ │ ├── plugin.js
│ │ │ │ │ │ └── plugin.min.js
│ │ │ │ │ ├── save
│ │ │ │ │ │ ├── index.js
│ │ │ │ │ │ ├── plugin.js
│ │ │ │ │ │ └── plugin.min.js
│ │ │ │ │ ├── searchreplace
│ │ │ │ │ │ ├── index.js
│ │ │ │ │ │ ├── plugin.js
│ │ │ │ │ │ └── plugin.min.js
│ │ │ │ │ ├── spellchecker
│ │ │ │ │ │ ├── index.js
│ │ │ │ │ │ ├── plugin.js
│ │ │ │ │ │ └── plugin.min.js
│ │ │ │ │ ├── tabfocus
│ │ │ │ │ │ ├── index.js
│ │ │ │ │ │ ├── plugin.js
│ │ │ │ │ │ └── plugin.min.js
│ │ │ │ │ ├── table
│ │ │ │ │ │ ├── index.js
│ │ │ │ │ │ ├── plugin.js
│ │ │ │ │ │ └── plugin.min.js
│ │ │ │ │ ├── template
│ │ │ │ │ │ ├── index.js
│ │ │ │ │ │ ├── plugin.js
│ │ │ │ │ │ └── plugin.min.js
│ │ │ │ │ ├── textcolor
│ │ │ │ │ │ ├── index.js
│ │ │ │ │ │ ├── plugin.js
│ │ │ │ │ │ └── plugin.min.js
│ │ │ │ │ ├── textpattern
│ │ │ │ │ │ ├── index.js
│ │ │ │ │ │ ├── plugin.js
│ │ │ │ │ │ └── plugin.min.js
│ │ │ │ │ ├── toc
│ │ │ │ │ │ ├── index.js
│ │ │ │ │ │ ├── plugin.js
│ │ │ │ │ │ └── plugin.min.js
│ │ │ │ │ ├── visualblocks
│ │ │ │ │ │ ├── css
│ │ │ │ │ │ │ └── visualblocks.css
│ │ │ │ │ │ ├── index.js
│ │ │ │ │ │ ├── plugin.js
│ │ │ │ │ │ └── plugin.min.js
│ │ │ │ │ ├── visualchars
│ │ │ │ │ │ ├── index.js
│ │ │ │ │ │ ├── plugin.js
│ │ │ │ │ │ └── plugin.min.js
│ │ │ │ │ └── wordcount
│ │ │ │ │ │ ├── index.js
│ │ │ │ │ │ ├── plugin.js
│ │ │ │ │ │ └── plugin.min.js
│ │ │ │ │ ├── skins
│ │ │ │ │ └── lightgray
│ │ │ │ │ │ ├── content.inline.min.css
│ │ │ │ │ │ ├── content.min.css
│ │ │ │ │ │ ├── content.mobile.min.css
│ │ │ │ │ │ ├── fonts
│ │ │ │ │ │ ├── tinymce-mobile.woff
│ │ │ │ │ │ ├── tinymce-small.eot
│ │ │ │ │ │ ├── tinymce-small.svg
│ │ │ │ │ │ ├── tinymce-small.ttf
│ │ │ │ │ │ ├── tinymce-small.woff
│ │ │ │ │ │ ├── tinymce.eot
│ │ │ │ │ │ ├── tinymce.svg
│ │ │ │ │ │ ├── tinymce.ttf
│ │ │ │ │ │ └── tinymce.woff
│ │ │ │ │ │ ├── img
│ │ │ │ │ │ ├── anchor.gif
│ │ │ │ │ │ ├── loader.gif
│ │ │ │ │ │ ├── object.gif
│ │ │ │ │ │ └── trans.gif
│ │ │ │ │ │ ├── skin.min.css
│ │ │ │ │ │ └── skin.mobile.min.css
│ │ │ │ │ └── themes
│ │ │ │ │ ├── inlite
│ │ │ │ │ ├── index.js
│ │ │ │ │ ├── theme.js
│ │ │ │ │ └── theme.min.js
│ │ │ │ │ └── modern
│ │ │ │ │ ├── index.js
│ │ │ │ │ ├── theme.js
│ │ │ │ │ └── theme.min.js
│ │ │ ├── own-space
│ │ │ │ ├── own-space.less
│ │ │ │ ├── own-space.vue
│ │ │ │ └── test.vue
│ │ │ └── tables
│ │ │ │ ├── components
│ │ │ │ ├── ExportExcel.vue
│ │ │ │ ├── canEditTable.vue
│ │ │ │ ├── dragableTable.vue
│ │ │ │ ├── editable-table.less
│ │ │ │ ├── multiPageTable.vue
│ │ │ │ ├── table.less
│ │ │ │ └── table_data.js
│ │ │ │ ├── data
│ │ │ │ ├── search.js
│ │ │ │ ├── table2csv.js
│ │ │ │ └── table2excel.js
│ │ │ │ ├── dragable-table.vue
│ │ │ │ ├── editable-table.vue
│ │ │ │ ├── exportable-table.vue
│ │ │ │ ├── searchable-table.vue
│ │ │ │ └── table-to-image.vue
│ │ └── vue-shim.d.ts
│ ├── tsconfig.json
│ └── vue.config.js
├── ak-lib-biz
│ ├── LICENSE
│ ├── README.md
│ ├── _apppage.vue
│ ├── package.json
│ ├── src
│ │ ├── BizPage.ts
│ │ ├── _apppage.vue
│ │ ├── bizpage.ts
│ │ ├── contract
│ │ │ ├── PageView.ts
│ │ │ ├── TableMeta.ts
│ │ │ ├── net.ts
│ │ │ ├── pageview.ts
│ │ │ └── tablemeta.ts
│ │ ├── index.ts
│ │ ├── insert
│ │ │ ├── InsertPage.ts
│ │ │ ├── Navi.vue
│ │ │ ├── insertpage.ts
│ │ │ ├── navi.vue
│ │ │ └── vmform
│ │ │ │ ├── vmform.ts
│ │ │ │ └── vmformvue.vue
│ │ ├── listpage
│ │ │ ├── ListForm.ts
│ │ │ ├── ListPage.ts
│ │ │ ├── SearchForm.ts
│ │ │ ├── bf.ts
│ │ │ ├── btnzone.vue
│ │ │ ├── col.vue
│ │ │ ├── col
│ │ │ │ ├── basecol.vue
│ │ │ │ ├── colcontent.vue
│ │ │ │ ├── registcol.ts
│ │ │ │ └── textcol.vue
│ │ │ ├── data.ts
│ │ │ ├── list.vue
│ │ │ ├── listbiz.vue
│ │ │ ├── listform.ts
│ │ │ ├── listmodule.ts
│ │ │ ├── listpage.ts
│ │ │ ├── listtable.vue
│ │ │ ├── search.vue
│ │ │ └── searchform.ts
│ │ ├── source
│ │ │ ├── BaseSource.ts
│ │ │ ├── ISource.ts
│ │ │ ├── basesource.ts
│ │ │ └── isource.ts
│ │ └── vue-shim.d.ts
│ └── tsconfig.json
├── ak-lib-col
│ ├── LICENSE
│ ├── README.md
│ ├── package.json
│ ├── src
│ │ ├── BaseCol.ts
│ │ ├── XXXCol.ts
│ │ ├── basecol.ts
│ │ ├── index.ts
│ │ ├── single
│ │ │ ├── DateTimeCol.ts
│ │ │ ├── DateTimeDetailCol.ts
│ │ │ ├── DetailCol.ts
│ │ │ ├── datetimecol.ts
│ │ │ ├── datetimedetailcol.ts
│ │ │ └── detailcol.ts
│ │ └── xxxcol.ts
│ └── tsconfig.json
├── ak-lib-comp
│ ├── LICENSE
│ ├── README.md
│ ├── package.json
│ ├── src
│ │ ├── buttons
│ │ │ ├── TeamButton.ts
│ │ │ ├── XXXCom.ts
│ │ │ ├── teambutton.ts
│ │ │ └── xxxcom.ts
│ │ ├── complex
│ │ │ ├── col.vue
│ │ │ ├── colcontent.vue
│ │ │ ├── form.vue
│ │ │ ├── ifrom.ts
│ │ │ └── itemfrom.vue
│ │ ├── inputtag
│ │ │ ├── InputTag.vue
│ │ │ ├── configInput.vue
│ │ │ └── inputtag.vue
│ │ ├── iview
│ │ │ ├── icon.vue
│ │ │ └── table.ts
│ │ ├── jsonxsd
│ │ │ └── jsonitem.ts
│ │ └── multi
│ │ │ ├── RadioSelector.vue
│ │ │ ├── TabSelector.ts
│ │ │ ├── radioSelector.vue
│ │ │ ├── radioselector.vue
│ │ │ ├── tabSelector.ts
│ │ │ └── tabselector.ts
│ └── tsconfig.json
├── ak-lib-react-web
│ ├── LICENSE
│ ├── README.md
│ ├── basereactpage.d.ts
│ ├── basereactpage.js
│ ├── package.json
│ ├── src
│ │ └── basereactpage.tsx
│ └── tsconfig.json
├── ak-lib-react
│ ├── LICENSE
│ ├── README.md
│ ├── package.json
│ ├── reactvmmixin.d.ts
│ ├── reactvmmixin.js
│ ├── reactvuemixin.d.ts
│ ├── reactvuemixin.js
│ ├── src
│ │ ├── reactvmmixin.tsx
│ │ ├── reactvuemixin.tsx
│ │ └── testdom.tsx
│ ├── testdom.d.ts
│ ├── testdom.js
│ └── tsconfig.json
├── ak-lib-sys
│ ├── LICENSE
│ ├── README.md
│ ├── node_modules
│ │ └── .bin
│ │ │ ├── npm-run-all
│ │ │ ├── run-p
│ │ │ ├── run-s
│ │ │ ├── shx
│ │ │ ├── tsc
│ │ │ └── tsserver
│ ├── package.json
│ ├── src
│ │ ├── Core.ts
│ │ ├── Dom.ts
│ │ ├── Ioc.ts
│ │ ├── Util.ts
│ │ ├── Vue.ts
│ │ ├── bootstrap.ts
│ │ ├── com
│ │ │ ├── BaseCom.ts
│ │ │ ├── ICom.ts
│ │ │ ├── basecom.ts
│ │ │ ├── icom.ts
│ │ │ └── index.ts
│ │ ├── core.ts
│ │ ├── dom.ts
│ │ ├── event
│ │ │ ├── IEvent.ts
│ │ │ ├── VueEvent.ts
│ │ │ ├── ievent.ts
│ │ │ ├── index.ts
│ │ │ └── vueevent.ts
│ │ ├── index.ts
│ │ ├── ioc.ts
│ │ ├── net
│ │ │ ├── Net.ts
│ │ │ ├── code.ts
│ │ │ ├── index.ts
│ │ │ └── net.ts
│ │ ├── util.ts
│ │ ├── vue-shim.d.ts
│ │ ├── vue.ts
│ │ └── vuemixin
│ │ │ ├── basecom.vue
│ │ │ ├── getmodule.vue
│ │ │ ├── modulecom.vue
│ │ │ ├── tipmixin.vue
│ │ │ └── uniidmixin.vue
│ └── tsconfig.json
└── ak-lib-web
│ ├── LICENSE
│ ├── README.md
│ ├── package.json
│ ├── src
│ ├── DefaultPage.ts
│ ├── IPage.ts
│ ├── app
│ │ ├── BaseApp.ts
│ │ ├── IApp.ts
│ │ ├── IMenu.ts
│ │ ├── appget.ts
│ │ ├── appuse.ts
│ │ ├── baseapp.ts
│ │ ├── iapp.ts
│ │ └── imenu.ts
│ ├── basepage.ts
│ ├── defaultpage.ts
│ ├── hull.vue
│ ├── ipage.ts
│ └── vue
│ │ ├── VuePage.ts
│ │ └── vuepage.ts
│ └── tsconfig.json
├── postcss.config.js
├── tsconfig.json
└── yarn.lock
/.gitignore:
--------------------------------------------------------------------------------
1 | # Logs
2 | logs
3 | *.log
4 | npm-debug.log*
5 | yarn-debug.log*
6 | yarn-error.log*
7 |
8 | # Runtime data
9 | pids
10 | *.pid
11 | *.seed
12 | *.pid.lock
13 |
14 | # Directory for instrumented libs generated by jscoverage/JSCover
15 | lib-cov
16 |
17 | # Coverage directory used by tools like istanbul
18 | coverage
19 |
20 | # nyc test coverage
21 | .nyc_output
22 |
23 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
24 | .grunt
25 |
26 | # Bower dependency directory (https://bower.io/)
27 | bower_components
28 |
29 | # node-waf configuration
30 | .lock-wscript
31 |
32 | # Compiled binary addons (http://nodejs.org/api/addons.html)
33 | build/Release
34 |
35 | # Dependency directories
36 | node_modules/
37 | jspm_packages/
38 |
39 | # Typescript v1 declaration files
40 | typings/
41 |
42 | # Optional npm cache directory
43 | .npm
44 |
45 | # Optional eslint cache
46 | .eslintcache
47 |
48 | # Optional REPL history
49 | .node_repl_history
50 |
51 | # Output of 'npm pack'
52 | *.tgz
53 |
54 | # Yarn Integrity file
55 | .yarn-integrity
56 |
57 | # dotenv environment variables file
58 | .env
59 |
60 | .mui/
61 |
62 | .history/
63 | packages/apps/
64 | packages/arwen/
65 | yarn.lock
66 | package.lock
67 |
--------------------------------------------------------------------------------
/.history/.gitignore_20180425172609:
--------------------------------------------------------------------------------
1 | # Logs
2 | logs
3 | *.log
4 | npm-debug.log*
5 | yarn-debug.log*
6 | yarn-error.log*
7 |
8 | # Runtime data
9 | pids
10 | *.pid
11 | *.seed
12 | *.pid.lock
13 |
14 | # Directory for instrumented libs generated by jscoverage/JSCover
15 | lib-cov
16 |
17 | # Coverage directory used by tools like istanbul
18 | coverage
19 |
20 | # nyc test coverage
21 | .nyc_output
22 |
23 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
24 | .grunt
25 |
26 | # Bower dependency directory (https://bower.io/)
27 | bower_components
28 |
29 | # node-waf configuration
30 | .lock-wscript
31 |
32 | # Compiled binary addons (http://nodejs.org/api/addons.html)
33 | build/Release
34 |
35 | # Dependency directories
36 | node_modules/
37 | jspm_packages/
38 |
39 | # Typescript v1 declaration files
40 | typings/
41 |
42 | # Optional npm cache directory
43 | .npm
44 |
45 | # Optional eslint cache
46 | .eslintcache
47 |
48 | # Optional REPL history
49 | .node_repl_history
50 |
51 | # Output of 'npm pack'
52 | *.tgz
53 |
54 | # Yarn Integrity file
55 | .yarn-integrity
56 |
57 | # dotenv environment variables file
58 | .env
59 |
60 | .mui/
61 |
62 | packages/ak-mui-host/src/pages/.umi/
63 |
64 |
--------------------------------------------------------------------------------
/.history/.gitignore_20180429224700:
--------------------------------------------------------------------------------
1 | # Logs
2 | logs
3 | *.log
4 | npm-debug.log*
5 | yarn-debug.log*
6 | yarn-error.log*
7 |
8 | # Runtime data
9 | pids
10 | *.pid
11 | *.seed
12 | *.pid.lock
13 |
14 | # Directory for instrumented libs generated by jscoverage/JSCover
15 | lib-cov
16 |
17 | # Coverage directory used by tools like istanbul
18 | coverage
19 |
20 | # nyc test coverage
21 | .nyc_output
22 |
23 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
24 | .grunt
25 |
26 | # Bower dependency directory (https://bower.io/)
27 | bower_components
28 |
29 | # node-waf configuration
30 | .lock-wscript
31 |
32 | # Compiled binary addons (http://nodejs.org/api/addons.html)
33 | build/Release
34 |
35 | # Dependency directories
36 | node_modules/
37 | jspm_packages/
38 |
39 | # Typescript v1 declaration files
40 | typings/
41 |
42 | # Optional npm cache directory
43 | .npm
44 |
45 | # Optional eslint cache
46 | .eslintcache
47 |
48 | # Optional REPL history
49 | .node_repl_history
50 |
51 | # Output of 'npm pack'
52 | *.tgz
53 |
54 | # Yarn Integrity file
55 | .yarn-integrity
56 |
57 | # dotenv environment variables file
58 | .env
59 |
60 | .mui/
61 |
62 | packages/ak-mui-host/src/pages/.umi/
63 |
64 | .history
65 |
66 |
--------------------------------------------------------------------------------
/.history/.gitignore_20180429224726:
--------------------------------------------------------------------------------
1 | # Logs
2 | logs
3 | *.log
4 | npm-debug.log*
5 | yarn-debug.log*
6 | yarn-error.log*
7 |
8 | # Runtime data
9 | pids
10 | *.pid
11 | *.seed
12 | *.pid.lock
13 |
14 | # Directory for instrumented libs generated by jscoverage/JSCover
15 | lib-cov
16 |
17 | # Coverage directory used by tools like istanbul
18 | coverage
19 |
20 | # nyc test coverage
21 | .nyc_output
22 |
23 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
24 | .grunt
25 |
26 | # Bower dependency directory (https://bower.io/)
27 | bower_components
28 |
29 | # node-waf configuration
30 | .lock-wscript
31 |
32 | # Compiled binary addons (http://nodejs.org/api/addons.html)
33 | build/Release
34 |
35 | # Dependency directories
36 | node_modules/
37 | jspm_packages/
38 |
39 | # Typescript v1 declaration files
40 | typings/
41 |
42 | # Optional npm cache directory
43 | .npm
44 |
45 | # Optional eslint cache
46 | .eslintcache
47 |
48 | # Optional REPL history
49 | .node_repl_history
50 |
51 | # Output of 'npm pack'
52 | *.tgz
53 |
54 | # Yarn Integrity file
55 | .yarn-integrity
56 |
57 | # dotenv environment variables file
58 | .env
59 |
60 | .mui/
61 |
62 | packages/ak-mui-host/src/pages/.umi/
63 |
64 | .history
65 |
66 | .umi
67 |
68 |
--------------------------------------------------------------------------------
/.history/.gitignore_20180429224746:
--------------------------------------------------------------------------------
1 | # Logs
2 | logs
3 | *.log
4 | npm-debug.log*
5 | yarn-debug.log*
6 | yarn-error.log*
7 |
8 | # Runtime data
9 | pids
10 | *.pid
11 | *.seed
12 | *.pid.lock
13 |
14 | # Directory for instrumented libs generated by jscoverage/JSCover
15 | lib-cov
16 |
17 | # Coverage directory used by tools like istanbul
18 | coverage
19 |
20 | # nyc test coverage
21 | .nyc_output
22 |
23 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
24 | .grunt
25 |
26 | # Bower dependency directory (https://bower.io/)
27 | bower_components
28 |
29 | # node-waf configuration
30 | .lock-wscript
31 |
32 | # Compiled binary addons (http://nodejs.org/api/addons.html)
33 | build/Release
34 |
35 | # Dependency directories
36 | node_modules/
37 | jspm_packages/
38 |
39 | # Typescript v1 declaration files
40 | typings/
41 |
42 | # Optional npm cache directory
43 | .npm
44 |
45 | # Optional eslint cache
46 | .eslintcache
47 |
48 | # Optional REPL history
49 | .node_repl_history
50 |
51 | # Output of 'npm pack'
52 | *.tgz
53 |
54 | # Yarn Integrity file
55 | .yarn-integrity
56 |
57 | # dotenv environment variables file
58 | .env
59 |
60 |
61 | packages/ak-mui-host/src/pages/.umi
62 |
63 | .history
64 |
65 | .umi
66 |
67 |
--------------------------------------------------------------------------------
/.vscode/launch.json:
--------------------------------------------------------------------------------
1 | {
2 | // 使用 IntelliSense 了解相关属性。
3 | // 悬停以查看现有属性的描述。
4 | // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
5 | "version": "0.2.0",
6 | "configurations": [
7 | {
8 | "type": "node",
9 | "request": "launch",
10 | "name": "启动程序",
11 | "cwd": "${workspaceFolder}/packages/hull",
12 | "program": "${workspaceFolder}/node_modules/@vue/cli-service/bin/vue-cli-service",
13 | "args": [
14 | "serve",
15 | "--open"
16 | ]
17 | }
18 | ]
19 | }
--------------------------------------------------------------------------------
/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "git.ignoreLimitWarning": true,
3 | "npm-scripts.showStartNotification": false
4 | }
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2018
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/akvue:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lusess123/akvue/d1075090b37fa67f360efe06cc1f0ab9f9564962/akvue
--------------------------------------------------------------------------------
/apps.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | export http_proxy=http://127.0.0.1:1087;export https_proxy=http://127.0.0.1:1087;
3 | dire="akvue"
4 | [ -d "$dire" ] && rm -rf "$dire"
5 | #mkdir "$dire" && cd "$dire"
6 |
7 |
8 | echo `pwd`
9 |
10 | git clone https://github.com/lusess123/akvue.git
11 |
12 | cd $dire/packages
13 |
14 | dire2="apps"
15 | [ -d "$dire2" ] && rm -rf "$dire2"
16 | mkdir "$dire2" && cd "$dire2"
17 |
18 | dire1="arwen"
19 | [ -d "$dire1" ] && rm -rf "$dire1"
20 | mkdir "$dire1" && cd "$dire1"
21 |
22 |
23 | git init
24 | git remote add -f hello git@git.lvwan.cc:lwcloud/arwen.git
25 | git config core.sparsecheckout true
26 | echo arwen-base/ >> .git/info/sparse-checkout
27 | echo ak-app-arwen-centrol/ >> .git/info/sparse-checkout
28 |
29 | git pull hello hello
30 | #cd packages/apps
31 | code .
32 | cd ./../../../
33 |
34 | yarn
35 |
36 | npm run lerna
37 | npm run serve-host
38 |
39 | echo `pwd`
40 |
41 | #code .
42 |
--------------------------------------------------------------------------------
/docs/img/antdesign.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lusess123/akvue/d1075090b37fa67f360efe06cc1f0ab9f9564962/docs/img/antdesign.jpeg
--------------------------------------------------------------------------------
/docs/img/applist.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lusess123/akvue/d1075090b37fa67f360efe06cc1f0ab9f9564962/docs/img/applist.png
--------------------------------------------------------------------------------
/docs/img/mooa-app.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lusess123/akvue/d1075090b37fa67f360efe06cc1f0ab9f9564962/docs/img/mooa-app.jpg
--------------------------------------------------------------------------------
/docs/img/sdkapp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lusess123/akvue/d1075090b37fa67f360efe06cc1f0ab9f9564962/docs/img/sdkapp.png
--------------------------------------------------------------------------------
/docs/roadmap.md:
--------------------------------------------------------------------------------
1 | #roadmap
2 |
3 | ## future
4 |
5 | - VSCode插件,package 文件夹右键菜单,一键生成和编译
6 | - 脚手架工具
--------------------------------------------------------------------------------
/lerna.json:
--------------------------------------------------------------------------------
1 | {
2 |
3 | "lerna": "2.9.0",
4 | "npmClient": "yarn",
5 | "useWorkspaces": true,
6 |
7 | "version": "0.0.0"
8 | }
9 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "private": true,
3 | "scripts": {
4 | "buildlib": "npm-run-all build-sys build-react build-react-web build-comp build-web build-col build-biz build-sdk build-dwh ",
5 | "build-sys": "cd packages/ak-lib-sys;npm run rebuild ;cd ..;echo 'sys库生成成功'",
6 | "build-comp": "cd packages/ak-lib-comp;npm run rebuild ;cd ..",
7 | "build-web": "cd packages/ak-lib-web;npm run rebuild ;cd ..",
8 | "build-col": "cd packages/ak-lib-col;npm run rebuild ;cd ..",
9 | "build-biz": "cd packages/ak-lib-biz;npm run rebuild ;cd ..",
10 | "build-sdk": "cd packages/ak-app-sdk;npm run rebuild ;cd ..",
11 | "build-dwh": "cd packages/ak-app-dwh;npm run rebuild ;cd ..",
12 | "build-react": "cd packages/ak-lib-react;npm run rebuild ;cd ..",
13 | "build-react-web": "cd packages/ak-lib-react-web;npm run rebuild ;cd ..",
14 | "serve-host": "cd packages/ak-host;npm run serve ;cd ..",
15 | "lerna": "lerna bootstrap"
16 | },
17 | "workspaces": [
18 | "packages/*",
19 | "packages/apps/*",
20 | "packages/apps/arwen/*"
21 | ],
22 | "devDependencies": {
23 | "lerna": "^2.9.0",
24 | "npm-run-all": "^4.1.2"
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/packages/ak-app-dwh/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2018
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/packages/ak-app-dwh/README.md:
--------------------------------------------------------------------------------
1 | # 平台的sdk项目,作为demo,文档,监控,和测试
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/packages/ak-app-dwh/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "ak-app-dwh",
3 | "version": "0.0.1",
4 | "description": "数仓管理系统",
5 | "main": "index.js",
6 | "types": "index.d.ts",
7 | "scripts": {
8 | "test": "echo \"Error: no test specified\" && exit 1",
9 | "tsc": " tsc",
10 | "clean_js": " find . -name \"*.js\" -o -name \"*.d.ts\" -o -name \"base\" -o -name \"data\" -o -name \"plugs\" -o -name \"js\" |grep -v \"src/\" |grep -v \"node_modules/\" | xargs rm -rf",
11 | "deljs": "shx rm -rf js",
12 | "copy": "shx mv ./js/* .",
13 | "copyvue": "cd src;find ./ -name \"*.vue\" | xargs -I{} rsync -R \"{}\" ../js/;cd ..;",
14 | "build": "npm-run-all clean_js tsc copyvue copy deljs ",
15 | "rebuild": "npm-run-all clean_js tsc copyvue copy deljs "
16 | },
17 | "repository": {
18 | "type": "git",
19 | "url": "git+https://github.com/lusess123/akvue.git"
20 | },
21 | "author": "zyk2003xxx@163.com",
22 | "license": "ISC",
23 | "bugs": {
24 | "url": "https://github.com/lusess123/akvue/issues"
25 | },
26 | "homepage": "https://github.com/lusess123/akvue/packages/ak-app-dwh#readme",
27 | "dependencies": {
28 | "ak-lib-web":"*",
29 | "ak-lib-biz":"*"
30 | },
31 | "devDependencies": {
32 | "npm-run-all": "^4.1.2",
33 | "shx": "^0.2.2",
34 | "typescript": "^2.6.2"
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/packages/ak-app-dwh/src/data/dwh_HostComputer.ts:
--------------------------------------------------------------------------------
1 |
2 | import {Column } from "ak-lib-biz/src/contract/tablemeta";
3 |
4 | export class dwh_HostComputer {
5 | @Column({DisplayName:"主键编号",ControlType:"hidden"})
6 | id:string ;
7 | @Column({DisplayName:"状态"})
8 | state:number ;
9 | @Column({DisplayName:"名称",Search:{}})
10 | cnname:string ;
11 | @Column({DisplayName:"角色"})
12 | role:number ;
13 | @Column({DisplayName:"上一检测信号",Width:"100"})
14 | lastcheck:string ;
15 | @Column({DisplayName:"平均负载"})
16 | avgload:string ;
17 | @Column({DisplayName:"磁盘使用情况"})
18 | diskuser:string ;
19 | @Column({DisplayName:"物理内存"})
20 | phymomery:string ;
21 | @Column({DisplayName:"交换空间"})
22 | exchangespace:string ;
23 |
24 | }
--------------------------------------------------------------------------------
/packages/ak-app-dwh/src/data/dwh_hostcomputer.ts:
--------------------------------------------------------------------------------
1 |
2 | import {Column } from "ak-lib-biz/src/contract/tablemeta";
3 |
4 | export class dwh_HostComputer {
5 | @Column({DisplayName:"主键编号",ControlType:"hidden"})
6 | id:string ;
7 | @Column({DisplayName:"状态"})
8 | state:number ;
9 | @Column({DisplayName:"名称",Search:{}})
10 | cnname:string ;
11 | @Column({DisplayName:"角色"})
12 | role:number ;
13 | @Column({DisplayName:"上一检测信号",Width:"100"})
14 | lastcheck:string ;
15 | @Column({DisplayName:"平均负载"})
16 | avgload:string ;
17 | @Column({DisplayName:"磁盘使用情况"})
18 | diskuser:string ;
19 | @Column({DisplayName:"物理内存"})
20 | phymomery:string ;
21 | @Column({DisplayName:"交换空间"})
22 | exchangespace:string ;
23 |
24 | }
--------------------------------------------------------------------------------
/packages/ak-app-dwh/src/data/dwh_permission.ts:
--------------------------------------------------------------------------------
1 |
2 | import {Column } from "ak-lib-biz/src/contract/tablemeta";
3 | export class dwh_permission {
4 | @Column({DisplayName:"单号"})
5 | id:string ;
6 | @Column({DisplayName:"",Search:{IsNavi:true},Options:{RegName:"_subscriptionsTabNavi"},ControlType:"Tab",ShowPage:"None"})
7 | tab :number ;
8 | @Column({DisplayName:"数据源"})
9 | source_name:string ;
10 | @Column({DisplayName:"表名"})
11 | table_name:string;
12 | @Column({DisplayName:"集群名"})
13 | cluster_name:string;
14 | @Column({DisplayName:"订阅类型",ControlType:"radio",Options:{RegName:"permission"}})
15 | type: number;
16 | @Column({DisplayName:"申请时间",Search:{ControlType:"DateTime"}})
17 | apply_time:number;
18 | @Column({DisplayName:"订阅名",Search:{}})
19 | name :string ;
20 | @Column({DisplayName:"授权账号"})
21 | auth_user_name:string ;
22 |
23 | @Column({DisplayName:"权限级别",Options:{RegName:"permission_level"},Search:{},ControlType:"radio"})
24 | level:string ;
25 |
26 | @Column({DisplayName:"处理结果",Options:{RegName:"permission_state"},Search:{},ControlType:"radio"})
27 | state:number ;
28 | }
--------------------------------------------------------------------------------
/packages/ak-app-dwh/src/data/dwh_search_tables.ts:
--------------------------------------------------------------------------------
1 |
2 | import {Column } from "ak-lib-biz/src/contract/tablemeta";
3 |
4 | export class dwh_search_tables {
5 | @Column({DisplayName:"编号",ControlType:"Hidden"})
6 | id:string ;
7 | @Column({DisplayName:"英文名",Search:{}})
8 | name :string ;
9 | @Column({DisplayName:"中文名"})
10 | cnname :string ;
11 | // @Column({DisplayName:"表类型",Options:{RegName:"_Type"},ControlType:"radio"})
12 | // type :number ;
13 | @Column({DisplayName:"集群名称"})
14 | cluster_name:string ;
15 | @Column({DisplayName:"负责人"})
16 | owner_name:string;
17 |
18 | @Column({DisplayName:"更新时间",ControlType:"DateTime"})
19 | update_time:number;
20 |
21 | @Column({DisplayName:"描述"})
22 | description:string;
23 |
24 | @Column({DisplayName:"数据源名称", Width:"110", Search:{}})
25 | source_name:string ;
26 | @Column({DisplayName:"级别",ControlType:"radio",Options:{RegName:"table_level"}})
27 | level:number ;
28 | @Column({DisplayName:"订阅数"})
29 | total_sub_count:number;
30 | }
--------------------------------------------------------------------------------
/packages/ak-app-dwh/src/data/dwh_source.ts:
--------------------------------------------------------------------------------
1 |
2 |
3 | import {Column } from "ak-lib-biz/src/contract/tablemeta";
4 |
5 | export class dwh_source {
6 | @Column({DisplayName:"单号"})
7 | id:string ;
8 | @Column({DisplayName:"数据源名称",Search:{}})
9 | source_name:string ;
10 | @Column({DisplayName:"数据源类型",Search:{},ControlType:"radio",Options:{RegName:"source_type"}})
11 | type: number;
12 | @Column({DisplayName:"连接信息"})
13 | config:string;
14 | @Column({DisplayName:"数据源描述"})
15 | description:string;
16 | @Column({DisplayName:"创建人"})
17 | creator_cnname:string;
18 | @Column({DisplayName:"时间"})
19 | update_time:number;
20 | }
--------------------------------------------------------------------------------
/packages/ak-app-dwh/src/data/dwh_task.ts:
--------------------------------------------------------------------------------
1 |
2 | import {Column } from "ak-lib-biz/src/contract/tablemeta";
3 |
4 |
5 | export class dwh_task {
6 | @Column({DisplayName:"编号",ControlType:"Hidden"})
7 | id:string ;
8 | @Column({DisplayName:"任务名称",Search:{}})
9 | name :string ;
10 | @Column({DisplayName:"修改日期"})
11 | update_time :number ;
12 | @Column({DisplayName:"任务类型",ControlType:"radio",Options:{RegName:"task_type"},Search:{}})
13 | type: number;
14 | @Column({DisplayName:"责任人",Search:{}})
15 | owner_cnname :string ;
16 | @Column({DisplayName:"状态",ControlType:"radio",Options:{RegName:"task_state"},Search:{}})
17 | state: number;
18 | @Column({DisplayName:"报警设置"})
19 | alarm_config:string ;
20 | @Column({DisplayName:"集群"})
21 | culster:string ;
22 | @Column({DisplayName:"我的任务",ControlType:"radio",Options:{RegName:"yesOrNo"},Search:{}})
23 | isown: number;
24 | }
--------------------------------------------------------------------------------
/packages/ak-app-dwh/src/data/dwh_task_subscriptions.ts:
--------------------------------------------------------------------------------
1 |
2 | import {Column } from "ak-lib-biz/src/contract/tablemeta";
3 | export class dwh_task_subscriptions {
4 | @Column({DisplayName:"编号",ControlType:"Hidden"})
5 | id:string ;
6 | @Column({DisplayName:"订阅名",Search:{}})
7 | name :string ;
8 | @Column({DisplayName:"订阅者",Search:{}})
9 | owner_cnname:string;
10 | //优先级?
11 | @Column({DisplayName:"优先级"})
12 | priority:number;
13 | @Column({DisplayName:"订阅类型",Search:{},ControlType:"radio",Options:{RegName:"permission"}})
14 | type: number;
15 | @Column({DisplayName:"订阅状态",Search:{},ControlType:"radio",Options:{RegName:"subscriptionsState"}})
16 | state: number;
17 | @Column({DisplayName:"订阅事件"})
18 | sub_time:number;
19 | @Column({DisplayName:"表名",Search:{}})
20 | table_name:string;
21 | @Column({DisplayName:"数据源"})
22 | source_name:string ;
23 | @Column({DisplayName:"描述"})
24 | description:string ;
25 | config:string ;
26 | @Column({DisplayName:"延迟"})
27 | delay:string ;
28 |
29 |
30 | }
--------------------------------------------------------------------------------
/packages/ak-app-dwh/src/index.ts:
--------------------------------------------------------------------------------
1 | import * as aa from "./plugs/source/dwh_search_tables_source"; aa ;
2 | import * as bb from "./plugs/source/dwh_tables"; bb;
3 | import * as cc from "./plugs/source/dwh_permission";cc;
4 | import * as dd from "./plugs/source/dwh_source";dd;
5 | import * as ee from "./plugs/source/dwh_task_subscriptions";ee;
6 |
7 | import * as ee1 from "./plugs/source/dwh_hostcomputer";ee1;
8 | import * as ee2 from "./plugs/source/dwh_task";ee2;
9 | import * as app from "./dwhapp"; app ;
10 | //import * as ee3 from "./plugs/source/dwh_task_subscriptions";ee3;
11 |
--------------------------------------------------------------------------------
/packages/ak-app-dwh/src/plugs/source/dwh_HostComputer.ts:
--------------------------------------------------------------------------------
1 | import {BaseSource} from "ak-lib-biz/src/source/basesource";
2 | import { ioc } from "ak-lib-sys/src/";
3 | import {dwhBaseSource} from "./../../base/dwhbasesource";
4 |
5 | import * as dt from "../../data/dwh_hostcomputer";dt;
6 | @ioc.PlugIn({BaseType:"ISource",RegName:"dwh_HostComputer",Author:"zhengyukun",Doc:"主机管理的数据源插件"})
7 | export class dwh_HostComputersource extends dwhBaseSource {
8 | Title:string = "主机管理";
9 | ModelName:string = "dwh_HostComputer";
10 | Url: string = "/dwh/data/tables";
11 | }
12 |
13 |
--------------------------------------------------------------------------------
/packages/ak-app-dwh/src/plugs/source/dwh_hostcomputer.ts:
--------------------------------------------------------------------------------
1 | import {BaseSource} from "ak-lib-biz/src/source/basesource";
2 | import { ioc } from "ak-lib-sys/src/";
3 | import {dwhBaseSource} from "./../../base/dwhbasesource";
4 |
5 | import * as dt from "../../data/dwh_hostcomputer";dt;
6 | @ioc.PlugIn({BaseType:"ISource",RegName:"dwh_HostComputer",Author:"zhengyukun",Doc:"主机管理的数据源插件"})
7 | export class dwh_HostComputersource extends dwhBaseSource {
8 | Title:string = "主机管理";
9 | ModelName:string = "dwh_HostComputer";
10 | Url: string = "/dwh/data/tables";
11 | }
12 |
13 |
--------------------------------------------------------------------------------
/packages/ak-app-dwh/src/plugs/source/dwh_permission.ts:
--------------------------------------------------------------------------------
1 | import {BaseSource} from "ak-lib-biz/src/source/basesource";
2 | import { ioc } from "ak-lib-sys/src";
3 | import {dwhBaseSource} from "./../../base/dwhbasesource";
4 |
5 | import * as dt from "./../../data/dwh_permission";dt;
6 |
7 | @ioc.PlugIn({BaseType:"ISource",RegName:"dwh_permissionSource",Author:"zhengyukun",Doc:"订阅权限管理的数据源插件"})
8 | export class dwh_permissionSource extends dwhBaseSource {
9 | Title:string = "订阅权限";
10 | ModelName:string = "dwh_permission";
11 | Url: string = "/dwh/subscriptions/";
12 | }
13 |
14 |
--------------------------------------------------------------------------------
/packages/ak-app-dwh/src/plugs/source/dwh_search_tables_source.ts:
--------------------------------------------------------------------------------
1 | import {BaseSource} from "ak-lib-biz/src/source/BaseSource";
2 | import { ioc,net } from "ak-lib-sys/src";
3 | import {dwhBaseSource} from "./../../base/dwhbasesource";
4 |
5 | import {dwh_search_tables} from "./../../data/dwh_search_tables";dwh_search_tables;
6 | @ioc.PlugIn({BaseType:"ISource",RegName:"dwh_search_tables_source",Author:"zhengyukun",Doc:"搜索数据表的数据源插件"})
7 | export class dwh_search_tables_source extends dwhBaseSource {
8 | Title:string = "数据表";
9 | ModelName:string = "dwh_search_tables";
10 | Url: string = "/dwh/data/tables";
11 |
12 | protected setFormConfig(){
13 | super.setFormConfig();
14 | //this.SourceObj
15 | this.PageView.DataButtons = {
16 |
17 | "apply":{
18 | Text:"申请订阅授权",
19 | Name:"apply"
20 | }
21 | } ;
22 |
23 | // DataButtons:
24 | }
25 | }
26 |
27 |
--------------------------------------------------------------------------------
/packages/ak-app-dwh/src/plugs/source/dwh_source.ts:
--------------------------------------------------------------------------------
1 | import {BaseSource} from "ak-lib-biz/src/source/basesource";
2 | import { ioc } from "ak-lib-sys/src";
3 | import {dwhBaseSource} from "./../../base/dwhbasesource";
4 |
5 | import * as dt from "./../../data/dwh_source";dt;
6 | @ioc.PlugIn({BaseType:"ISource",RegName:"dwh_source",Author:"zhengyukun",Doc:"数据源管理的数据源插件"})
7 | export class dwh_source_source extends dwhBaseSource {
8 | Title:string = "数据源管理";
9 | ModelName:string = "dwh_source";
10 | Url: string = "/dwh/data/sources";
11 | }
12 |
13 |
--------------------------------------------------------------------------------
/packages/ak-app-dwh/src/plugs/source/dwh_task.ts:
--------------------------------------------------------------------------------
1 | import {BaseSource} from "ak-lib-biz/src/source/basesource";
2 | import { ioc } from "ak-lib-sys/src";
3 | import {dwhBaseSource} from "./../../base/dwhbasesource";
4 |
5 | import * as dt from "./../../data/dwh_task";dt;
6 | @ioc.PlugIn({BaseType:"ISource",RegName:"dwh_task",Author:"zhengyukun",Doc:"调度任务的数据源插件"})
7 | export class dwh_tasksource extends dwhBaseSource {
8 | Title:string = "调度任务";
9 | ModelName:string = "dwh_task";
10 | Url: string = "/dwh/data/tables";
11 | }
12 |
13 |
--------------------------------------------------------------------------------
/packages/ak-app-dwh/src/plugs/source/dwh_task_subscriptions.ts:
--------------------------------------------------------------------------------
1 | import {BaseSource} from "ak-lib-biz/src/source/basesource";
2 | import { ioc } from "ak-lib-sys/src";
3 | import {dwhBaseSource} from "./../../base/dwhbasesource";
4 |
5 | import * as dt from "./../../data/dwh_task_subscriptions";dt;
6 | @ioc.PlugIn({BaseType:"ISource",RegName:"dwh_task_subscriptions",Author:"zhengyukun",Doc:"订阅任务管理的数据源"})
7 | export class dwh_task_subscriptions_source extends dwhBaseSource {
8 | Title:string = "数据表管理";
9 | ModelName:string = "dwh_task_subscriptions";
10 | Url: string = "/dwh/subscriptions";
11 | }
12 |
13 |
--------------------------------------------------------------------------------
/packages/ak-app-dwh/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | // 与 Vue 的浏览器支持保持一致
4 | "target": "es2015",
5 | // 这可以对 `this` 上的数据属性进行更严格的推断
6 | //"strict": true,
7 | "noImplicitAny":false,
8 | // "declarationDir":"./sys.d.ts",
9 | // 如果使用 webpack 2+ 或 rollup,可以利用 tree-shake:
10 | "module": "es2015",
11 | "moduleResolution": "node",
12 | "declaration":true,
13 | // "outFile": "./dist/aksys.js",
14 | // 启用 vue-class-component 及 vuex-class 需要开启此选项
15 | "experimentalDecorators": true,
16 | "emitDecoratorMetadata":true ,
17 | "lib": [ "es6", "dom" ],
18 | "outDir": "./js/",
19 |
20 | // 启用 vuex-class 需要开启此选项
21 | "strictFunctionTypes": false,
22 |
23 | //"allowJs":true,
24 | "allowSyntheticDefaultImports":true
25 |
26 | },
27 | "include": [
28 | "./src/**/*.ts"
29 | ]
30 | }
31 |
--------------------------------------------------------------------------------
/packages/ak-app-sdk/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2018
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/packages/ak-app-sdk/README.md:
--------------------------------------------------------------------------------
1 | # 平台的sdk项目,作为demo,文档,监控,和测试
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/packages/ak-app-sdk/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "ak-app-sdk",
3 | "version": "0.0.1",
4 | "description": "平台的sdk项目,作为demo,文档,监控,和测试",
5 | "main": "index.js",
6 | "types": "index.d.ts",
7 | "scripts": {
8 | "test": "echo \"Error: no test specified\" && exit 1",
9 | "tsc": " tsc",
10 | "clean_js": " find . -name \"*.js\" -o -name \"*.d.ts\" -o -name \"page\" -o -name \"js\" |grep -v \"src/\" |grep -v \"node_modules/\" | xargs rm -rf",
11 | "deljs": "shx rm -rf js",
12 | "copy": "shx mv ./js/* .",
13 | "copyvue": "cd src;find ./ -name \"*.vue\" | xargs -I{} rsync -R \"{}\" ../js/;cd ..;",
14 | "build": "npm-run-all tsc copyvue copy deljs ",
15 | "rebuild": "npm-run-all clean_js build "
16 | },
17 | "repository": {
18 | "type": "git",
19 | "url": "git+https://github.com/lusess123/akvue.git"
20 | },
21 | "author": "zyk2003xxx@163.com",
22 | "license": "ISC",
23 | "bugs": {
24 | "url": "https://github.com/lusess123/akvue/issues"
25 | },
26 | "homepage": "https://github.com/lusess123/akvue/packages/ak-app-sdk#readme",
27 | "dependencies": {
28 | "ak-lib-react": "*",
29 | "ak-lib-react-web": "*",
30 | "ak-lib-sys": "*",
31 | "ant-design-pro": "^1.2.1",
32 | "antd": "^3.3.0",
33 | "react-jsonschema-form": "*",
34 | "lodash":"*"
35 | },
36 | "devDependencies": {
37 | "npm-run-all": "^4.1.2",
38 | "shx": "^0.2.2",
39 | "typescript": "^2.6.2"
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/packages/ak-app-sdk/src/index.ts:
--------------------------------------------------------------------------------
1 |
2 | import * as codepgae from "./page/codepage";codepgae;
3 | import * as sdkapp from "./sdkapp"; sdkapp;
4 | import * as appDetailPage from "./page/appdetailpage"; appDetailPage;
5 | import * as vueclassPage from "./page/vuevlasspage"; vueclassPage ;
6 | import * as Di from "./page/dipage"; Di ;
7 | import * as dymic from "./page/dymicpage"; dymic ;
8 |
9 | import * as formPage from "./page/formpage"; formPage ;
10 | import * as testRxPage from "./page/testrxpage"; testRxPage ;
11 |
12 | import * as mixintestPage from "./page/mixintestpage"; mixintestPage ;
13 | import * as testvmpage from "./page/testvmpage";testvmpage;
14 | import * as eventbuspage from "./page/eventbuspage";eventbuspage;
15 | import * as reactpage from "./page/reactdemopage";reactpage;
16 | import * as reactpage2 from "./page/reactdemopage2";reactpage2;
17 | require("./page/allmenupage");
18 | require("./page/allapppage")
19 |
--------------------------------------------------------------------------------
/packages/ak-app-sdk/src/lib/tree.ts:
--------------------------------------------------------------------------------
1 | export interface ITreeNode {
2 |
3 | title : string;
4 | expand?: boolean;
5 | disabled?: boolean;
6 | disableCheckbox?: boolean;
7 | selected?: boolean;
8 | checked?: boolean;
9 | children?: ITreeNode[];
10 | obj?:any;
11 | render?: (h : any, renderObj : IRenderObj) => any;
12 |
13 | }
14 |
15 | export interface IRenderObj {
16 | root : ITreeNode[],
17 | node : any,
18 | data : ITreeNode
19 | }
--------------------------------------------------------------------------------
/packages/ak-app-sdk/src/page/DiPage.ts:
--------------------------------------------------------------------------------
1 |
2 |
3 | import { core, ioc, vue, util } from "ak-lib-sys/src";
4 | import { BasePage } from "ak-lib-web/src/basepage";
5 |
6 | //import {Container} from "typedi";
7 |
8 |
9 | @vue.com(`
DiPage{{vm.IsPage}}
`)
10 | @ioc.PlugIn({ RegName: "DiPage", BaseType: "IPage", CreateDate: "2018-02-04", Doc: "Di页面插件" })
11 | export class DiPage extends BasePage {
12 |
13 | public Title: string = "Di";
14 | IsPage = "";
15 | protected loadPage() {
16 |
17 | // core
18 | // let someClass1 = Container.get(SomeClass);
19 | // someClass1.someMethod();
20 | // let someClass2 = Container.get(SomeClass);
21 | // this.IsPage = someClass1 === someClass2 ? "同一个":"不同个"
22 | }
23 |
24 | }
25 |
26 |
27 | class SomeClass {
28 |
29 | someMethod() {
30 | // alert(123);
31 | }
32 |
33 | }
34 |
35 |
36 | //someClass.someMethod();
--------------------------------------------------------------------------------
/packages/ak-app-sdk/src/page/dipage.ts:
--------------------------------------------------------------------------------
1 |
2 |
3 | import { core, ioc, vue, util } from "ak-lib-sys/src";
4 | import { BasePage } from "ak-lib-web/src/basepage";
5 |
6 | //import {Container} from "typedi";
7 |
8 |
9 | @vue.com(`DiPage{{vm.IsPage}}
`)
10 | @ioc.PlugIn({ RegName: "DiPage", BaseType: "IPage", CreateDate: "2018-02-04", Doc: "Di页面插件" })
11 | export class DiPage extends BasePage {
12 |
13 | public Title: string = "Di";
14 | IsPage = "";
15 | protected loadPage() {
16 |
17 | // core
18 | // let someClass1 = Container.get(SomeClass);
19 | // someClass1.someMethod();
20 | // let someClass2 = Container.get(SomeClass);
21 | // this.IsPage = someClass1 === someClass2 ? "同一个":"不同个"
22 | }
23 |
24 | }
25 |
26 |
27 | class SomeClass {
28 |
29 | someMethod() {
30 | // alert(123);
31 | }
32 |
33 | }
34 |
35 |
36 | //someClass.someMethod();
--------------------------------------------------------------------------------
/packages/ak-app-sdk/src/page/mixintestpage.ts:
--------------------------------------------------------------------------------
1 |
2 |
3 | import { core, ioc, vue, util } from "ak-lib-sys/src";
4 | import { BasePage } from "ak-lib-web/src/basepage";
5 |
6 | import {BaseCom} from "ak-lib-sys/src/com/basecom"
7 | import BaseComVue from "ak-lib-sys/src/vuemixin/basecom.vue"
8 |
9 |
10 | @vue.com(`
11 |
mixintestPage
12 |
13 |
14 |
15 |
16 | `,{
17 |
18 | components:{
19 | BaseComVue
20 | }
21 | })
22 |
23 |
24 | @ioc.PlugIn({ RegName: "mixintestPage", BaseType: "IPage", CreateDate: "2018-02-27", Doc: "mixintest页面插件" })
25 | export class mixintestPage extends BasePage {
26 |
27 | public Title: string = "mixintest";
28 | public BaseComObj : BaseCom = null;
29 |
30 | protected loadPage() {
31 | //alert();
32 | this.BaseComObj = new BaseCom({
33 | UniId:this.UniId
34 | });
35 | }
36 |
37 | }
38 |
--------------------------------------------------------------------------------
/packages/ak-app-sdk/src/page/testrx/item.vue:
--------------------------------------------------------------------------------
1 |
2 | fff123
3 |
4 |
5 |
6 |
7 |
12 |
13 |
16 |
--------------------------------------------------------------------------------
/packages/ak-app-sdk/src/page/testrx/item1.vue:
--------------------------------------------------------------------------------
1 |
2 | fff123
3 |
4 | 计算属性: {{btnText}}{{col}}
5 |
6 |
7 |
8 |
46 |
47 |
50 |
--------------------------------------------------------------------------------
/packages/ak-app-sdk/src/page/testrx/items.vue:
--------------------------------------------------------------------------------
1 |
2 | fff123
3 |
4 |
5 |
6 |
7 |
8 |
9 |
16 |
17 |
20 |
--------------------------------------------------------------------------------
/packages/ak-app-sdk/src/page/testrx/test.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
16 |
--------------------------------------------------------------------------------
/packages/ak-app-sdk/src/page/view/IView.ts:
--------------------------------------------------------------------------------
1 | export interface IView
2 | {
3 | Title?:string ;
4 | }
--------------------------------------------------------------------------------
/packages/ak-app-sdk/src/page/view/iview.ts:
--------------------------------------------------------------------------------
1 | export interface IView
2 | {
3 | Title?:string ;
4 | }
--------------------------------------------------------------------------------
/packages/ak-app-sdk/src/page/view/normalvue.vue:
--------------------------------------------------------------------------------
1 |
2 | ddd123{{vm.aaa}}
3 |
4 |
5 |
13 |
14 |
17 |
--------------------------------------------------------------------------------
/packages/ak-app-sdk/src/vue-shim.d.ts:
--------------------------------------------------------------------------------
1 | declare module '*.vue' {
2 | import Vue from 'vue'
3 | export default Vue
4 | export function registComponent(name:string ,com:any);
5 | }
6 |
7 |
8 |
--------------------------------------------------------------------------------
/packages/ak-app-sdk/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compileOnSave": true,
3 | "compilerOptions": {
4 | // 与 Vue 的浏览器支持保持一致
5 | "target": "es2015",
6 | // 这可以对 `this` 上的数据属性进行更严格的推断
7 | //"strict": true,
8 | "noImplicitAny":false,
9 | // "declarationDir":"./sys.d.ts",
10 | // 如果使用 webpack 2+ 或 rollup,可以利用 tree-shake:
11 | "module": "es2015",
12 | "moduleResolution": "node",
13 | "jsx": "react",
14 | "declaration":true,
15 | // "outFile": "./dist/aksys.js",
16 | // 启用 vue-class-component 及 vuex-class 需要开启此选项
17 | "experimentalDecorators": true,
18 | "emitDecoratorMetadata":true ,
19 | "lib": [ "es6", "dom" ],
20 | "outDir": "./js/",
21 |
22 | // 启用 vuex-class 需要开启此选项
23 | "strictFunctionTypes": false,
24 |
25 | //"allowJs":true,
26 | "allowSyntheticDefaultImports":true,
27 |
28 |
29 | },
30 | "include": [
31 | "./src/**/*.ts",
32 | "./src/**/*.tsx",
33 | "./src/**/*.vue"
34 | ]
35 | }
36 |
--------------------------------------------------------------------------------
/packages/ak-dev-node/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2018
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/packages/ak-dev-node/README.md:
--------------------------------------------------------------------------------
1 | # 平台的sdk项目,作为demo,文档,监控,和测试
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/packages/ak-dev-node/build/appcontext.d.ts:
--------------------------------------------------------------------------------
1 | export declare const getBasePath: string;
2 |
--------------------------------------------------------------------------------
/packages/ak-dev-node/build/appcontext.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | Object.defineProperty(exports, "__esModule", { value: true });
3 | const path = require("path");
4 | console.log("appcontext....");
5 | const _BasePath = path.resolve("");
6 | exports.getBasePath = _BasePath;
7 |
--------------------------------------------------------------------------------
/packages/ak-dev-node/build/buildapp.d.ts:
--------------------------------------------------------------------------------
1 | export declare const getApps: () => string[];
2 |
--------------------------------------------------------------------------------
/packages/ak-dev-node/build/buildapp.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | Object.defineProperty(exports, "__esModule", { value: true });
3 | const fileutil_1 = require("./../util/fileutil");
4 | const appcontext = require("./appcontext");
5 | const path = require("path");
6 | exports.getApps = () => {
7 | const _strs = fileutil_1.getFilesByDir(path.resolve(appcontext.getBasePath, ".."));
8 | // var _package = require("./../../package.json"); var name = _package.name; var
9 | // version = _package.version; console.log(name + " "+ version);
10 | return _strs.concat(fileutil_1.getFilesByDir(path.resolve(appcontext.getBasePath, "..", "apps", "arwen"))).filter((str) => {
11 | if (str.toUpperCase().indexOf("AK-APP") == 0) {
12 | return true;
13 | }
14 | });
15 | };
16 |
--------------------------------------------------------------------------------
/packages/ak-dev-node/src/build/appcontext.ts:
--------------------------------------------------------------------------------
1 | import * as path from "path"
2 |
3 | console.log("appcontext....");
4 | const _BasePath:string = path.resolve("");
5 |
6 | export const getBasePath :string= _BasePath;
--------------------------------------------------------------------------------
/packages/ak-dev-node/src/build/buildapp.spec.ts:
--------------------------------------------------------------------------------
1 | import * as buildapp from "./buildapp"
2 |
3 |
4 | describe("buildapp app构建类",()=>{
5 | it("getapps ",()=>{
6 |
7 | const _res = buildapp.getApps();
8 | console.log(_res);
9 | expect(_res).toContain("ak-app-sdk");
10 | })
11 | });
--------------------------------------------------------------------------------
/packages/ak-dev-node/src/build/buildapp.ts:
--------------------------------------------------------------------------------
1 | import {getFilesByDir} from "./../util/fileutil"
2 | import * as appcontext from "./appcontext"
3 | import * as path from "path"
4 |
5 | export const getApps = () : string[] => {
6 | const _strs = getFilesByDir(path.resolve(appcontext.getBasePath, ".."));
7 | // var _package = require("./../../package.json"); var name = _package.name; var
8 | // version = _package.version; console.log(name + " "+ version);
9 |
10 | return _strs.concat(getFilesByDir(path.resolve(appcontext.getBasePath, "..","apps","arwen"))).filter((str) => {
11 | if (str.toUpperCase().indexOf("AK-APP") == 0 ) {
12 | return true;
13 | }
14 | })
15 | }
--------------------------------------------------------------------------------
/packages/ak-dev-node/src/test/fixtures/file.json:
--------------------------------------------------------------------------------
1 | 123
2 |
--------------------------------------------------------------------------------
/packages/ak-dev-node/src/util/fileutil.spec.ts:
--------------------------------------------------------------------------------
1 | import * as ff from "./fileutil"
2 | import * as path from "path"
3 | import * as appcontext from "./../build/appcontext"
4 |
5 |
6 | describe("fileutil 文件操作工具类",()=>{
7 |
8 | it('文件文本读取', () => {
9 |
10 | const _path = path.resolve(appcontext.getBasePath,"src/test/fixtures/file.json");
11 | const _res = ff.getStringByFileName(_path);
12 | console.log(_res);
13 | expect( _res.trim()).toBe("123");
14 | });
15 |
16 | it('getFilesByDir',()=>{
17 | const _path = path.resolve("./src/test/fixtures/");
18 | const _res = ff.getFilesByDir(_path);
19 | expect( _res[0]).toBe('file.json');
20 | })
21 | });
--------------------------------------------------------------------------------
/packages/ak-dev-node/src/util/fileutil.ts:
--------------------------------------------------------------------------------
1 | import * as efs from "fs-extra";
2 |
3 | export const getStringByFileName = (fileName: string): string => {
4 | const _res = efs.readFileSync(fileName, { encoding: "utf-8" });
5 | return _res ;
6 | }
7 |
8 | export const getFilesByDir = (dirPath:string)=>{
9 | return efs.readdirSync(dirPath);
10 | }
--------------------------------------------------------------------------------
/packages/ak-dev-node/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | // 与 Vue 的浏览器支持保持一致
4 | "target": "es2015",
5 | // 这可以对 `this` 上的数据属性进行更严格的推断
6 | //"strict": true,
7 | "noImplicitAny":false,
8 | // "declarationDir":"./sys.d.ts",
9 | // 如果使用 webpack 2+ 或 rollup,可以利用 tree-shake:
10 | "module": "commonjs",
11 | "moduleResolution": "node",
12 | "declaration":true,
13 | // "outFile": "./dist/aksys.js",
14 | // 启用 vue-class-component 及 vuex-class 需要开启此选项
15 | "experimentalDecorators": true,
16 | "emitDecoratorMetadata":true ,
17 | "lib": [ "es6", "dom" ],
18 | "outDir": "./js/",
19 |
20 | // 启用 vuex-class 需要开启此选项
21 | "strictFunctionTypes": false,
22 |
23 | //"allowJs":true,
24 | "allowSyntheticDefaultImports":true
25 |
26 | },
27 | "include": [
28 | "./src/**/*.ts"
29 | ],
30 | "exclude": [
31 | "./src/**/*.spec.ts",
32 | "./src/test/**/*.*"
33 | ]
34 | }
35 |
--------------------------------------------------------------------------------
/packages/ak-dev-node/util/fileutil.d.ts:
--------------------------------------------------------------------------------
1 | export declare const getStringByFileName: (fileName: string) => string;
2 | export declare const getFilesByDir: (dirPath: string) => string[];
3 |
--------------------------------------------------------------------------------
/packages/ak-dev-node/util/fileutil.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | Object.defineProperty(exports, "__esModule", { value: true });
3 | const efs = require("fs-extra");
4 | exports.getStringByFileName = (fileName) => {
5 | const _res = efs.readFileSync(fileName, { encoding: "utf-8" });
6 | return _res;
7 | };
8 | exports.getFilesByDir = (dirPath) => {
9 | return efs.readdirSync(dirPath);
10 | };
11 |
--------------------------------------------------------------------------------
/packages/ak-host/README.md:
--------------------------------------------------------------------------------
1 | # akvue 的宿主环境
2 |
3 |
4 |
--------------------------------------------------------------------------------
/packages/ak-host/build/env.js:
--------------------------------------------------------------------------------
1 | export default "development";
--------------------------------------------------------------------------------
/packages/ak-host/postcss.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | plugins: {
3 | 'autoprefixer': {browsers: 'last 5 version'}
4 | }
5 | }
--------------------------------------------------------------------------------
/packages/ak-host/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lusess123/akvue/d1075090b37fa67f360efe06cc1f0ab9f9564962/packages/ak-host/public/favicon.ico
--------------------------------------------------------------------------------
/packages/ak-host/public/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | iView admin
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/packages/ak-host/public/lvw.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lusess123/akvue/d1075090b37fa67f360efe06cc1f0ab9f9564962/packages/ak-host/public/lvw.ico
--------------------------------------------------------------------------------
/packages/ak-host/src/.akvue.js:
--------------------------------------------------------------------------------
1 | import * as sdk from "ak-app-sdk/src/index";sdk;
2 | import * as dwh from "ak-app-dwh/src/index";dwh;
3 |
--------------------------------------------------------------------------------
/packages/ak-host/src/app.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
25 |
26 |
45 |
--------------------------------------------------------------------------------
/packages/ak-host/src/assets/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lusess123/akvue/d1075090b37fa67f360efe06cc1f0ab9f9564962/packages/ak-host/src/assets/logo.png
--------------------------------------------------------------------------------
/packages/ak-host/src/boot.js:
--------------------------------------------------------------------------------
1 | import akvue from './.akvue'
2 | export const load = async (a) => {
3 |
4 | await akvue();
5 |
6 | a();
7 | }
--------------------------------------------------------------------------------
/packages/ak-host/src/components/bread.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | {{route.meta.title}}
5 |
6 |
7 |
8 |
9 |
29 |
30 |
--------------------------------------------------------------------------------
/packages/ak-host/src/components/menu-item.vue:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lusess123/akvue/d1075090b37fa67f360efe06cc1f0ab9f9564962/packages/ak-host/src/components/menu-item.vue
--------------------------------------------------------------------------------
/packages/ak-host/src/components/nav.vue:
--------------------------------------------------------------------------------
1 |
2 |
10 |
11 |
12 |
27 |
28 |
--------------------------------------------------------------------------------
/packages/ak-host/src/components/vue-tree/brute.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by nihilism on 01/11/2017.
3 | */
4 |
5 | const find = function (a, arr) {
6 | let index = -1
7 | for (let i = 0; i < arr.length; i++) {
8 | if (a.data().id === arr[i].id) {
9 | index = i
10 | break
11 | }
12 | }
13 | return index
14 | }
15 |
16 | const arrayDiff = function (arr1, arr2) {
17 | let sameIds = []
18 | let delIds = []
19 | let newIds = []
20 | let idxList = []
21 | for (let i = 0; i < arr1.length; i++) {
22 | const index = find(arr1[i], arr2)
23 | if (index > -1) {
24 | sameIds.push({ left: arr1[i], right: arr2[index] })
25 | idxList.push(i)
26 | } else {
27 | delIds.push(arr1[i])
28 | }
29 | }
30 |
31 | // check arr2 to find items to add
32 | for (let i = 0; i < arr2.length; i++) {
33 | if (idxList.indexOf(i) < 0) {
34 | newIds.push(arr2[i])
35 | }
36 | }
37 |
38 | return { DEL: delIds, SAME: sameIds, ADD: newIds }
39 | }
40 |
41 | export default arrayDiff
42 |
--------------------------------------------------------------------------------
/packages/ak-host/src/components/vue-tree/checkbox.js:
--------------------------------------------------------------------------------
1 | class CheckBox {
2 | install (tree) {
3 | this.addProperties(tree)
4 | this.addClickHook(tree)
5 | }
6 | addProperties (tree) {
7 | tree.addNodeProperties('checked', [0, 1, 2], ['fa fa-check-square-o', 'fa fa-square-o', 'fa fa-minus-square-o'])
8 | }
9 | addClickHook (tree) {
10 | tree.addClickHook('checked')
11 | }
12 | }
13 |
14 | export default CheckBox
15 |
--------------------------------------------------------------------------------
/packages/ak-host/src/components/vue-tree/clickoutside.js:
--------------------------------------------------------------------------------
1 | export default {
2 | bind (el, binding, vnode) {
3 | function documentHandler (e) {
4 | if (el.contains(e.target)) {
5 | return false
6 | }
7 | if (binding.expression) {
8 | binding.value(e)
9 | }
10 | }
11 | el.__vueClickOutside__ = documentHandler
12 | document.addEventListener('click', documentHandler)
13 | },
14 | update () {
15 |
16 | },
17 | unbind (el, binding) {
18 | document.removeEventListener('click', el.__vueClickOutside__)
19 | delete el.__vueClickOutside__
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/packages/ak-host/src/components/vue-tree/conextmenu.js:
--------------------------------------------------------------------------------
1 | class ContextMenu {
2 | install (tree) {
3 | this.init(tree)
4 | }
5 | init (tree) {
6 | this.supportedActions = ['add', 'delete']
7 | this.ctx = tree.contextmenu = {callback: {}, actions: this.supportedActions, show: false}
8 | this.setEmit()
9 | }
10 | addActions (actions) {
11 | if (!!actions && actions.length) {
12 | this.ctx.actions = actions
13 | }
14 | }
15 | addActionCallback (action, callback) {
16 | // TODO: add callback checker
17 | this.ctx.callback[action] = callback
18 | }
19 | setEmit () {
20 | this.ctx.emit = (e) => {
21 | this.ctx.show = false
22 | setTimeout(() => {
23 | this.ctx.show = true
24 | this.ctx.target = e
25 | })
26 | }
27 | }
28 | }
29 |
30 | export default new ContextMenu()
31 |
--------------------------------------------------------------------------------
/packages/ak-host/src/components/vue-tree/dnd.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lusess123/akvue/d1075090b37fa67f360efe06cc1f0ab9f9564962/packages/ak-host/src/components/vue-tree/dnd.js
--------------------------------------------------------------------------------
/packages/ak-host/src/images/cropper-test.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lusess123/akvue/d1075090b37fa67f360efe06cc1f0ab9f9564962/packages/ak-host/src/images/cropper-test.png
--------------------------------------------------------------------------------
/packages/ak-host/src/images/logo-min.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lusess123/akvue/d1075090b37fa67f360efe06cc1f0ab9f9564962/packages/ak-host/src/images/logo-min.jpg
--------------------------------------------------------------------------------
/packages/ak-host/src/images/logo.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lusess123/akvue/d1075090b37fa67f360efe06cc1f0ab9f9564962/packages/ak-host/src/images/logo.jpg
--------------------------------------------------------------------------------
/packages/ak-host/src/images/lvw.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lusess123/akvue/d1075090b37fa67f360efe06cc1f0ab9f9564962/packages/ak-host/src/images/lvw.ico
--------------------------------------------------------------------------------
/packages/ak-host/src/images/lw-l.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lusess123/akvue/d1075090b37fa67f360efe06cc1f0ab9f9564962/packages/ak-host/src/images/lw-l.png
--------------------------------------------------------------------------------
/packages/ak-host/src/images/lw-sm.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lusess123/akvue/d1075090b37fa67f360efe06cc1f0ab9f9564962/packages/ak-host/src/images/lw-sm.png
--------------------------------------------------------------------------------
/packages/ak-host/src/images/lw2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lusess123/akvue/d1075090b37fa67f360efe06cc1f0ab9f9564962/packages/ak-host/src/images/lw2.png
--------------------------------------------------------------------------------
/packages/ak-host/src/locale/index.js:
--------------------------------------------------------------------------------
1 | import Vue from 'vue';
2 | import Locales from './locale';
3 | import zhLocale from 'iview/src/locale/lang/zh-CN';
4 | import enLocale from 'iview/src/locale/lang/en-US';
5 | import zhTLocale from 'iview/src/locale/lang/zh-TW';
6 |
7 | // 自动设置语言
8 | const navLang = navigator.language;
9 | const localLang = (navLang === 'zh-CN' || navLang === 'en-US') ? navLang : false;
10 | const lang = window.localStorage.lang || localLang || 'zh-CN';
11 |
12 | Vue.config.lang = lang;
13 |
14 | // 多语言配置
15 | const locales = Locales;
16 | const mergeZH = Object.assign(zhLocale, locales['zh-CN']);
17 | const mergeEN = Object.assign(enLocale, locales['en-US']);
18 | const mergeTW = Object.assign(zhTLocale, locales['zh-TW']);
19 | Vue.locale('zh-CN', mergeZH);
20 | Vue.locale('en-US', mergeEN);
21 | Vue.locale('zh-TW', mergeTW);
22 |
--------------------------------------------------------------------------------
/packages/ak-host/src/locale/zh_CN.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by nihilism on 03/06/2017.
3 | */
4 |
5 | const HTTP_MESSAGE = {
6 | unauthorized: '您未认证或者未登录,即将跳转到登录界面'
7 | }
8 |
9 | const message = {
10 | HTTP_MESSAGE
11 | }
12 |
13 | export default message
14 |
--------------------------------------------------------------------------------
/packages/ak-host/src/pages/home.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
31 |
32 |
42 |
43 |
--------------------------------------------------------------------------------
/packages/ak-host/src/pages/management/asyncvue.js:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | export default{
6 |
7 | culterSearch:resolve => require(['./../data_management/data_table_search.vue'], resolve),
8 | culterManage:resolve => require(['./cluster.vue'], resolve),
9 | culterNew:resolve => require(['./cluster_new.vue'], resolve)
10 | }
--------------------------------------------------------------------------------
/packages/ak-host/src/pages/management/container.vue:
--------------------------------------------------------------------------------
1 |
2 |
9 |
--------------------------------------------------------------------------------
/packages/ak-host/src/router/index.js:
--------------------------------------------------------------------------------
1 | import Vue from 'vue';
2 | import VueRouter from 'vue-router';
3 | import * as route from './route';
4 | import { setGlobRoute } from 'ak-lib-sys/src/vue'
5 |
6 |
7 | Vue.use(VueRouter);
8 | console.log([route.MainRoutes , ...route.RootRoutes]);
9 | // 路由配置
10 | const RouterConfig = {
11 | // mode: 'history',
12 | routes: [route.MainRoutes , ...route.RootRoutes]
13 | };
14 |
15 | const router1 = new VueRouter(RouterConfig);
16 |
17 | setGlobRoute(router1);
18 |
19 | export const router = router1;
20 |
21 |
--------------------------------------------------------------------------------
/packages/ak-host/src/router/route.ts:
--------------------------------------------------------------------------------
1 | import Main from './../views/main.vue';
2 | import hull from 'ak-lib-web/src/hull.vue';
3 |
4 | import getapps from "ak-lib-web/src/app/appget";
5 |
6 | const _getMainRoute = () => {
7 |
8 |
9 | const _apps = getapps();
10 | let MainRoute = [];
11 | let RootRoute = [];
12 |
13 | _apps.forEach(a => {
14 | if (a.MainRoute) {
15 | MainRoute = MainRoute.concat(a.MainRoute)
16 | }
17 | if (a.RootRoute) {
18 | RootRoute = RootRoute.concat(a.RootRoute)
19 | }
20 | });
21 | //core.alert(_routes);
22 | return {MainRoute,RootRoute};
23 | // _apps.
24 | }
25 |
26 | const _routes = _getMainRoute();
27 |
28 | export const MainRoutes = {
29 |
30 | path : '/',
31 | name : 'root',
32 | redirect : '/web/allapppage',
33 | component : Main,
34 | children : [
35 |
36 | {
37 | path: '/web',
38 | name: 'web',
39 | component: hull
40 | }, {
41 | path: '/web/:pagename',
42 | name: 'web0',
43 | component: hull
44 | }, {
45 | path: '/web/:pagename/:p1',
46 | name: 'web1',
47 | component: hull
48 | }, {
49 | path: '/web/:pagename/:p1/:p2',
50 | name: 'web2',
51 | component: hull
52 | }, {
53 | path: '/web/:pagename/:p1/:p2/:p3',
54 | name: 'web3',
55 | component: hull
56 | },
57 | ..._routes.MainRoute
58 |
59 | ]
60 | }
61 |
62 | export const RootRoutes = _routes.RootRoute;
63 |
--------------------------------------------------------------------------------
/packages/ak-host/src/store/config.ts:
--------------------------------------------------------------------------------
1 | import app from './modules/app';
2 | import user from './modules/user';
3 |
4 | export default {
5 | state: {
6 | //
7 | },
8 | mutations: {
9 | //
10 | },
11 | actions: {
12 |
13 | },
14 | modules:{
15 | app,user
16 | }
17 | }
--------------------------------------------------------------------------------
/packages/ak-host/src/store/index.js:
--------------------------------------------------------------------------------
1 | import Vue from 'vue';
2 | import Vuex from 'vuex';
3 |
4 | import config from './config'
5 |
6 | Vue.use(Vuex);
7 |
8 | const store = new Vuex.Store(config);
9 |
10 | export default store;
11 |
--------------------------------------------------------------------------------
/packages/ak-host/src/store/modules/user.js:
--------------------------------------------------------------------------------
1 | import Cookies from 'js-cookie';
2 |
3 | const user = {
4 | state: {a:234},
5 | mutations: {
6 | logout (state, vm) {
7 | Cookies.remove('user');
8 | Cookies.remove('password');
9 | Cookies.remove('access');
10 | // 恢复默认样式
11 | let themeLink = document.querySelector('link[name="theme"]');
12 | themeLink.setAttribute('href', '');
13 | // 清空打开的页面等数据,但是保存主题数据
14 | let theme = '';
15 | if (localStorage.theme) {
16 | theme = localStorage.theme;
17 | }
18 | localStorage.clear();
19 | if (theme) {
20 | localStorage.theme = theme;
21 | }
22 | }
23 | }
24 | };
25 |
26 | export default user;
27 |
--------------------------------------------------------------------------------
/packages/ak-host/src/styles/common.less:
--------------------------------------------------------------------------------
1 | .margin-top-8{
2 | margin-top: 8px;
3 | }
4 | .margin-top-10{
5 | margin-top: 10px;
6 | }
7 | .margin-top-20{
8 | margin-top: 20px;
9 | }
10 | .margin-left-10{
11 | margin-left: 10px;
12 | }
13 | .margin-bottom-10{
14 | margin-bottom: 10px;
15 | }
16 | .margin-bottom-100{
17 | margin-bottom: 100px;
18 | }
19 | .margin-right-10{
20 | margin-right: 10px;
21 | }
22 | .padding-left-6{
23 | padding-left: 6px;
24 | }
25 | .padding-left-8{
26 | padding-left: 5px;
27 | }
28 | .padding-left-10{
29 | padding-left: 10px;
30 | }
31 | .padding-left-20{
32 | padding-left: 20px;
33 | }
34 | .height-100{
35 | height: 100%;
36 | }
37 | .height-120px{
38 | height: 100px;
39 | }
40 | .height-200px{
41 | height: 200px;
42 | }
43 | .height-492px{
44 | height: 492px;
45 | }
46 | .height-460px{
47 | height: 460px;
48 | }
49 | .line-gray{
50 | height: 0;
51 | border-bottom: 2px solid #dcdcdc;
52 | }
53 | .notwrap{
54 | word-break:keep-all;
55 | white-space:nowrap;
56 | overflow: hidden;
57 | text-overflow: ellipsis;
58 | }
59 | .padding-left-5{
60 | padding-left: 10px;
61 | }
62 | [v-cloak]{
63 | display: none;
64 | }
65 |
66 | .acs-mesg
67 | {
68 | box-shadow:1px 2px 3px 1px #eee;
69 | position: "absolute";
70 | opacity:0.5;
71 | background:black;
72 | }
--------------------------------------------------------------------------------
/packages/ak-host/src/styles/fonts/ionicons.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lusess123/akvue/d1075090b37fa67f360efe06cc1f0ab9f9564962/packages/ak-host/src/styles/fonts/ionicons.eot
--------------------------------------------------------------------------------
/packages/ak-host/src/styles/fonts/ionicons.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lusess123/akvue/d1075090b37fa67f360efe06cc1f0ab9f9564962/packages/ak-host/src/styles/fonts/ionicons.ttf
--------------------------------------------------------------------------------
/packages/ak-host/src/styles/fonts/ionicons.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lusess123/akvue/d1075090b37fa67f360efe06cc1f0ab9f9564962/packages/ak-host/src/styles/fonts/ionicons.woff
--------------------------------------------------------------------------------
/packages/ak-host/src/styles/loading.less:
--------------------------------------------------------------------------------
1 | .demo-spin-icon-load{
2 | animation: ani-demo-spin 1s linear infinite;
3 | }
4 | @keyframes ani-demo-spin {
5 | from { transform: rotate(0deg);}
6 | 50% { transform: rotate(180deg);}
7 | to { transform: rotate(360deg);}
8 | }
--------------------------------------------------------------------------------
/packages/ak-host/src/styles/login_bg.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lusess123/akvue/d1075090b37fa67f360efe06cc1f0ab9f9564962/packages/ak-host/src/styles/login_bg.jpg
--------------------------------------------------------------------------------
/packages/ak-host/src/views/access/access-test.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 当前用户的权限值是 0 时,才可以看到这个页面。
5 |
6 |
7 |
8 |
9 |
14 |
15 |
18 |
--------------------------------------------------------------------------------
/packages/ak-host/src/views/access/access.less:
--------------------------------------------------------------------------------
1 | .access{
2 | &-user-con{
3 | height: 200px;
4 | }
5 | &-current-user-con{
6 | text-align: center;
7 | padding-top: 10px;
8 | img{
9 | display: block;
10 | width: 100px;
11 | height: 100px;
12 | border: 2px solid #dddde2;
13 | border-radius: 50%;
14 | margin: 0px auto 10px;
15 | }
16 | p{
17 | display: block;
18 | padding: 20px 0 0;
19 | b{
20 | margin: 0 10px;
21 | color: #2d8cf0;
22 | }
23 | }
24 | }
25 | &-change-access-con{
26 | &-row{
27 | height: 200px;
28 | }
29 | }
30 | }
--------------------------------------------------------------------------------
/packages/ak-host/src/views/advanced-router/advanced-router.less:
--------------------------------------------------------------------------------
1 | .advanced-router{
2 | height: 240px !important;
3 | &-tip-p{
4 | padding: 10px 0;
5 | }
6 | }
--------------------------------------------------------------------------------
/packages/ak-host/src/views/error-page/403.vue:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
7 |
8 |
9 | 4
10 | You don't have permission
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
35 |
--------------------------------------------------------------------------------
/packages/ak-host/src/views/error-page/404.vue:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
7 |
8 |
9 | 44
10 | YOU LOOK LOST
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
35 |
--------------------------------------------------------------------------------
/packages/ak-host/src/views/error-page/500.vue:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
7 |
8 |
9 |
10 | 5
11 |
12 | Oops! the server is wrong
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
37 |
--------------------------------------------------------------------------------
/packages/ak-host/src/views/error-page/error-page.less:
--------------------------------------------------------------------------------
1 | .error-page{
2 | &-show{
3 | width: 100%;
4 | height: 180px;
5 | transform: scale(0.4);
6 | }
7 | &-cover{
8 | position: absolute;
9 | width: 100%;
10 | height: 100%;
11 | left: 0;
12 | top: 0;
13 | }
14 | &-intro-con{
15 | height: 180px;
16 | p{
17 | display: block;
18 | width: 100%;
19 | text-align: center;
20 | }
21 | }
22 | }
--------------------------------------------------------------------------------
/packages/ak-host/src/views/form/article-publish/preview.less:
--------------------------------------------------------------------------------
1 | .preview{
2 | &-main{
3 | width: 100%;
4 | height: 100%;
5 | background: #d7e1ed;
6 | }
7 | &-header{
8 | padding-right: 20px;
9 | height: 60px;
10 | background: #4a5161;
11 | text-align: right;
12 | ul{
13 | display: inline-block !important;
14 | }
15 | }
16 | &-placeholderCon{
17 | height: 200px;
18 | }
19 | &-placeholder{
20 | height: 40px;
21 | margin-bottom: 10px;
22 | background: #9fafd4;
23 | border-radius: 3px;
24 | }
25 | &-tags-con{
26 | padding: 5px 0;
27 | margin: 10px 0;
28 | }
29 | &-tip{
30 | font-size: 12px;
31 | color: #c3c3c3;
32 | }
33 | &-content-con{
34 | border-top: 1px solid #edeff1;
35 | border-bottom: 1px solid #edeff1;
36 | padding: 12px 0 20px;
37 | margin-bottom: 20px;
38 | }
39 | &-classifition-con{
40 | padding: 5px 0;
41 | }
42 | &-classifition-item{
43 | margin-right: 8px;
44 | }
45 | &-publish-time{
46 | font-size: 12px;
47 | color: gray;
48 | margin-top: 5px;
49 | }
50 | }
--------------------------------------------------------------------------------
/packages/ak-host/src/views/form/work-flow/work-flow.less:
--------------------------------------------------------------------------------
1 | .step{
2 | &-header-con{
3 | text-align: center;
4 | h3{
5 | margin: 10px 0;
6 | }
7 | h5{
8 | margin: 0 0 5px;
9 | }
10 | }
11 | &-content{
12 | padding: 5px 20px 26px;
13 | margin-bottom: 20px;
14 | border-bottom: 1px solid #dbdddf;
15 | }
16 | &-form{
17 | padding-bottom: 10px;
18 | border-bottom: 1px solid #dbdddf;
19 | margin-bottom: 20px;
20 | }
21 | }
--------------------------------------------------------------------------------
/packages/ak-host/src/views/home/components/mapDataTable.vue:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
32 |
--------------------------------------------------------------------------------
/packages/ak-host/src/views/home/components/styles/infor-card.less:
--------------------------------------------------------------------------------
1 | .infor-card-icon-con{
2 | height: 100%;
3 | }
4 | .height-100{
5 | height: 100%;
6 | }
7 | .infor-card-con{
8 | height: 100px;
9 | }
10 | .infor-intro-text{
11 | font-size:12px;
12 | font-weight:500;
13 | color:#C8C8C8;
14 | }
--------------------------------------------------------------------------------
/packages/ak-host/src/views/home/components/styles/to-do-list-item.less:
--------------------------------------------------------------------------------
1 | .to-do-list-item-text{
2 | word-break:keep-all;
3 | white-space:nowrap;
4 | overflow: hidden;
5 | text-overflow: ellipsis;
6 | font-weight: 500;
7 | cursor: pointer;
8 | height: 36px;
9 |
10 | .height-100{
11 | height: 100%;
12 | }
13 | .infor-icon-row{
14 | color: #c8c8c8;
15 | }
16 | }
17 | .hasDid{
18 | text-decoration: line-through;
19 | color: gray;
20 | font-weight: 100;
21 | }
--------------------------------------------------------------------------------
/packages/ak-host/src/views/home/components/toDoListItem.vue:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 | {{ content }}
15 |
16 |
17 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/packages/ak-host/src/views/home/home.less:
--------------------------------------------------------------------------------
1 | .user-infor{
2 | height: 135px;
3 | }
4 | .avator-img{
5 | display: block;
6 | width: 80%;
7 | max-width: 100px;
8 | height: auto;
9 | }
10 | .card-user-infor-name{
11 | font-size: 2em;
12 | color: #2d8cf0;
13 | }
14 | .card-title{
15 | color: #abafbd;
16 | }
17 | .made-child-con-middle{
18 | height: 100%;
19 | }
20 | .to-do-list-con{
21 | height: 145px;
22 | overflow: auto;
23 | }
24 | .to-do-item{
25 | padding: 2px;
26 | }
27 | .infor-card-con{
28 | height: 100px;
29 | }
30 | .infor-card-icon-con{
31 | height: 100%;
32 | color: white;
33 | border-radius: 3px 0 0 3px;
34 | }
35 | .map-con{
36 | height: 305px;
37 | }
38 | .map-incon{
39 | height: 100%;
40 | }
41 | .data-source-row{
42 | height: 200px;
43 | }
44 | .line-chart-con{
45 | height: 150px;
46 | }
47 |
--------------------------------------------------------------------------------
/packages/ak-host/src/views/home/map-data/get-city-value.js:
--------------------------------------------------------------------------------
1 | export default [
2 | {name: '海门', value: 45},
3 | {name: '鄂尔多斯', value: 34},
4 | {name: '招远', value: 47},
5 | {name: '舟山', value: 22},
6 | {name: '齐齐哈尔', value: 74},
7 | {name: '广州', value: 138},
8 | {name: '盐城', value: 15},
9 | {name: '北京', value: 250},
10 | {name: '深圳', value: 141},
11 | {name: '赤峰', value: 16},
12 | {name: '青岛', value: 89},
13 | {name: '乳山', value: 18},
14 | {name: '金昌', value: 34},
15 | {name: '泉州', value: 21},
16 | {name: '莱西', value: 66},
17 | {name: '日照', value: 45},
18 | {name: '胶南', value: 23},
19 | {name: '南通', value: 54},
20 | {name: '拉萨', value: 22},
21 | {name: '云浮', value: 78},
22 | {name: '梅州', value: 23},
23 | {name: '文登', value: 78},
24 | {name: '上海', value: 218}
25 | ];
26 |
--------------------------------------------------------------------------------
/packages/ak-host/src/views/home/map-data/get-geography-value.js:
--------------------------------------------------------------------------------
1 | export default {
2 | '海门': [121.15, 31.89],
3 | '鄂尔多斯': [109.781327, 39.608266],
4 | '招远': [120.38, 37.35],
5 | '舟山': [122.207216, 29.985295],
6 | '齐齐哈尔': [123.97, 47.33],
7 | '广州': [113.23, 23.16],
8 | '盐城': [120.13, 33.38],
9 | '赤峰': [118.87, 42.28],
10 | '深圳': [114.07, 22.62],
11 | '青岛': [120.33, 36.07],
12 | '北京': [116.46, 39.92],
13 | '乳山': [121.52, 36.89],
14 | '金昌': [102.188043, 38.520089],
15 | '泉州': [118.58, 24.93],
16 | '莱西': [120.53, 36.86],
17 | '日照': [119.46, 35.42],
18 | '胶南': [119.97, 35.88],
19 | '南通': [121.05, 32.08],
20 | '拉萨': [91.11, 29.97],
21 | '云浮': [112.02, 22.93],
22 | '梅州': [116.1, 24.55],
23 | '文登': [122.05, 37.2],
24 | '上海': [121.48, 31.22]
25 | };
26 |
--------------------------------------------------------------------------------
/packages/ak-host/src/views/international/international.less:
--------------------------------------------------------------------------------
1 | .switch-language{
2 | &-row1{
3 | height: 240px !important;
4 | }
5 | &-tip{
6 | font-size: 12px;
7 | color: gray;
8 | margin-top: 30px;
9 | }
10 | }
--------------------------------------------------------------------------------
/packages/ak-host/src/views/login.less:
--------------------------------------------------------------------------------
1 | .login{
2 | width: 100%;
3 | height: 100%;
4 | background-image: url('https://file.iviewui.com/iview-admin/login_bg.jpg');
5 | background-size: cover;
6 | background-position: center;
7 | position: relative;
8 | &-con{
9 | position: absolute;
10 | right: 160px;
11 | top: 50%;
12 | transform: translateY(-60%);
13 | width: 300px;
14 | &-header{
15 | font-size: 16px;
16 | font-weight: 300;
17 | text-align: center;
18 | padding: 30px 0;
19 | }
20 | .form-con{
21 | padding: 10px 0 0;
22 | }
23 | .login-tip{
24 | font-size: 10px;
25 | text-align: center;
26 | color: #c3c3c3;
27 | }
28 | }
29 | }
--------------------------------------------------------------------------------
/packages/ak-host/src/views/main-components/message-tip.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
31 |
--------------------------------------------------------------------------------
/packages/ak-host/src/views/main-components/shrinkable-menu/styles/menu.less:
--------------------------------------------------------------------------------
1 | .ivu-shrinkable-menu{
2 | height: 100%;
3 | width: 100%;
4 | }
5 | .fa-2 {
6 | font-size: 2em;
7 | }
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/area-linkage/area-linkage.less:
--------------------------------------------------------------------------------
1 | .area-linkage-page{
2 | &-row1{
3 | height: 366px !important;
4 | }
5 | &-row2{
6 | height: 112px !important;
7 | }
8 | }
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/area-linkage/util/index.js:
--------------------------------------------------------------------------------
1 | let util = {};
2 |
3 | util.levelArr = [0, 1, 2, 3];
4 |
5 | util.oneOf = (item, arr) => {
6 | return arr.some(i => {
7 | return i === item;
8 | });
9 | };
10 | util.getIndex = (list, name) => {
11 | for (const i in list) {
12 | if (list[i] === name) {
13 | return i;
14 | }
15 | }
16 | };
17 |
18 | util.dataType = ['all', 'code', 'name'];
19 |
20 | util.checkLevel = val => {
21 | return util.oneOf(val, util.levelArr);
22 | };
23 |
24 | export default util;
25 |
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/count-to/count-to.less:
--------------------------------------------------------------------------------
1 | .countto-page-row{
2 | height: 200px;
3 | }
4 | .count-to-con{
5 | display: block;
6 | width: 100%;
7 | text-align: center;
8 | }
9 | .pre-code-show-con p{
10 | height: 30px;
11 | margin: 0;
12 | }
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/draggable-list/draggable-list.less:
--------------------------------------------------------------------------------
1 | .iview-admin-draggable-list{
2 | height: 100%;
3 | }
4 | .iview-admin-draggable-list li{
5 | padding: 9px;
6 | border: 1px solid #e7ebee;
7 | border-radius: 3px;
8 | margin-bottom: 5px;
9 | cursor: pointer;
10 | position: relative;
11 | transition: all .2s;
12 | }
13 | .iview-admin-draggable-list li:hover{
14 | color: #87b4ee;
15 | border-color: #87b4ee;
16 | transition: all .2s;
17 | }
18 | .iview-admin-draggable-delete{
19 | height: 100%;
20 | position: absolute;
21 | right: -8px;
22 | top: 0px;
23 | display: none;
24 | }
25 | .iview-admin-draggable-list li:hover .iview-admin-draggable-delete{
26 | display: block;
27 | }
28 | .placeholder-style{
29 | display: block !important;
30 | color: transparent;
31 | border-style: dashed !important;
32 | }
33 | .delte-item-animation{
34 | opacity: 0;
35 | transition: all .2s;
36 | }
37 | .iview-admin-draggable-list{
38 | overflow: auto
39 | }
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/file-upload/upload.less:
--------------------------------------------------------------------------------
1 | .admin-upload-list{
2 | display: inline-block;
3 | width: 60px;
4 | height: 60px;
5 | text-align: center;
6 | line-height: 60px;
7 | border: 1px solid transparent;
8 | border-radius: 4px;
9 | overflow: hidden;
10 | background: #fff;
11 | position: relative;
12 | box-shadow: 0 1px 1px rgba(0,0,0,.2);
13 | margin-right: 4px;
14 | }
15 | .admin-upload-list img{
16 | width: 100%;
17 | height: 100%;
18 | }
19 | .admin-upload-list-cover{
20 | display: none;
21 | position: absolute;
22 | top: 0;
23 | bottom: 0;
24 | left: 0;
25 | right: 0;
26 | background: rgba(0,0,0,.6);
27 | }
28 | .admin-upload-list:hover .admin-upload-list-cover{
29 | display: block;
30 | }
31 | .admin-upload-list-cover i{
32 | color: #fff;
33 | font-size: 20px;
34 | cursor: pointer;
35 | margin: 0 2px;
36 | }
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/markdown-editor/markdown-editor.less:
--------------------------------------------------------------------------------
1 | .CodeMirror, .CodeMirror-scroll {
2 | min-height: 600px !important;
3 | }
4 | .CodeMirror{
5 | height: 400px;
6 | }
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/markdown-editor/markdown-editor.vue:
--------------------------------------------------------------------------------
1 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
34 |
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/advlist/index.js:
--------------------------------------------------------------------------------
1 | // Exports the "advlist" plugin for usage with module loaders
2 | // Usage:
3 | // CommonJS:
4 | // require('tinymce/plugins/advlist')
5 | // ES2015:
6 | // import 'tinymce/plugins/advlist'
7 | require('./plugin.js');
8 |
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/anchor/index.js:
--------------------------------------------------------------------------------
1 | // Exports the "anchor" plugin for usage with module loaders
2 | // Usage:
3 | // CommonJS:
4 | // require('tinymce/plugins/anchor')
5 | // ES2015:
6 | // import 'tinymce/plugins/anchor'
7 | require('./plugin.js');
8 |
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/autolink/index.js:
--------------------------------------------------------------------------------
1 | // Exports the "autolink" plugin for usage with module loaders
2 | // Usage:
3 | // CommonJS:
4 | // require('tinymce/plugins/autolink')
5 | // ES2015:
6 | // import 'tinymce/plugins/autolink'
7 | require('./plugin.js');
8 |
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/autoresize/index.js:
--------------------------------------------------------------------------------
1 | // Exports the "autoresize" plugin for usage with module loaders
2 | // Usage:
3 | // CommonJS:
4 | // require('tinymce/plugins/autoresize')
5 | // ES2015:
6 | // import 'tinymce/plugins/autoresize'
7 | require('./plugin.js');
8 |
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/autosave/index.js:
--------------------------------------------------------------------------------
1 | // Exports the "autosave" plugin for usage with module loaders
2 | // Usage:
3 | // CommonJS:
4 | // require('tinymce/plugins/autosave')
5 | // ES2015:
6 | // import 'tinymce/plugins/autosave'
7 | require('./plugin.js');
8 |
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/bbcode/index.js:
--------------------------------------------------------------------------------
1 | // Exports the "bbcode" plugin for usage with module loaders
2 | // Usage:
3 | // CommonJS:
4 | // require('tinymce/plugins/bbcode')
5 | // ES2015:
6 | // import 'tinymce/plugins/bbcode'
7 | require('./plugin.js');
8 |
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/charmap/index.js:
--------------------------------------------------------------------------------
1 | // Exports the "charmap" plugin for usage with module loaders
2 | // Usage:
3 | // CommonJS:
4 | // require('tinymce/plugins/charmap')
5 | // ES2015:
6 | // import 'tinymce/plugins/charmap'
7 | require('./plugin.js');
8 |
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/code/index.js:
--------------------------------------------------------------------------------
1 | // Exports the "code" plugin for usage with module loaders
2 | // Usage:
3 | // CommonJS:
4 | // require('tinymce/plugins/code')
5 | // ES2015:
6 | // import 'tinymce/plugins/code'
7 | require('./plugin.js');
8 |
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/codesample/index.js:
--------------------------------------------------------------------------------
1 | // Exports the "codesample" plugin for usage with module loaders
2 | // Usage:
3 | // CommonJS:
4 | // require('tinymce/plugins/codesample')
5 | // ES2015:
6 | // import 'tinymce/plugins/codesample'
7 | require('./plugin.js');
8 |
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/colorpicker/index.js:
--------------------------------------------------------------------------------
1 | // Exports the "colorpicker" plugin for usage with module loaders
2 | // Usage:
3 | // CommonJS:
4 | // require('tinymce/plugins/colorpicker')
5 | // ES2015:
6 | // import 'tinymce/plugins/colorpicker'
7 | require('./plugin.js');
8 |
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/contextmenu/index.js:
--------------------------------------------------------------------------------
1 | // Exports the "contextmenu" plugin for usage with module loaders
2 | // Usage:
3 | // CommonJS:
4 | // require('tinymce/plugins/contextmenu')
5 | // ES2015:
6 | // import 'tinymce/plugins/contextmenu'
7 | require('./plugin.js');
8 |
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/directionality/index.js:
--------------------------------------------------------------------------------
1 | // Exports the "directionality" plugin for usage with module loaders
2 | // Usage:
3 | // CommonJS:
4 | // require('tinymce/plugins/directionality')
5 | // ES2015:
6 | // import 'tinymce/plugins/directionality'
7 | require('./plugin.js');
8 |
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/emoticons/img/smiley-cool.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lusess123/akvue/d1075090b37fa67f360efe06cc1f0ab9f9564962/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/emoticons/img/smiley-cool.gif
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/emoticons/img/smiley-cry.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lusess123/akvue/d1075090b37fa67f360efe06cc1f0ab9f9564962/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/emoticons/img/smiley-cry.gif
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/emoticons/img/smiley-embarassed.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lusess123/akvue/d1075090b37fa67f360efe06cc1f0ab9f9564962/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/emoticons/img/smiley-embarassed.gif
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/emoticons/img/smiley-foot-in-mouth.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lusess123/akvue/d1075090b37fa67f360efe06cc1f0ab9f9564962/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/emoticons/img/smiley-foot-in-mouth.gif
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/emoticons/img/smiley-frown.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lusess123/akvue/d1075090b37fa67f360efe06cc1f0ab9f9564962/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/emoticons/img/smiley-frown.gif
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/emoticons/img/smiley-innocent.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lusess123/akvue/d1075090b37fa67f360efe06cc1f0ab9f9564962/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/emoticons/img/smiley-innocent.gif
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/emoticons/img/smiley-kiss.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lusess123/akvue/d1075090b37fa67f360efe06cc1f0ab9f9564962/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/emoticons/img/smiley-kiss.gif
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/emoticons/img/smiley-laughing.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lusess123/akvue/d1075090b37fa67f360efe06cc1f0ab9f9564962/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/emoticons/img/smiley-laughing.gif
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/emoticons/img/smiley-money-mouth.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lusess123/akvue/d1075090b37fa67f360efe06cc1f0ab9f9564962/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/emoticons/img/smiley-money-mouth.gif
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/emoticons/img/smiley-sealed.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lusess123/akvue/d1075090b37fa67f360efe06cc1f0ab9f9564962/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/emoticons/img/smiley-sealed.gif
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/emoticons/img/smiley-smile.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lusess123/akvue/d1075090b37fa67f360efe06cc1f0ab9f9564962/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/emoticons/img/smiley-smile.gif
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/emoticons/img/smiley-surprised.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lusess123/akvue/d1075090b37fa67f360efe06cc1f0ab9f9564962/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/emoticons/img/smiley-surprised.gif
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/emoticons/img/smiley-tongue-out.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lusess123/akvue/d1075090b37fa67f360efe06cc1f0ab9f9564962/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/emoticons/img/smiley-tongue-out.gif
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/emoticons/img/smiley-undecided.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lusess123/akvue/d1075090b37fa67f360efe06cc1f0ab9f9564962/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/emoticons/img/smiley-undecided.gif
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/emoticons/img/smiley-wink.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lusess123/akvue/d1075090b37fa67f360efe06cc1f0ab9f9564962/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/emoticons/img/smiley-wink.gif
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/emoticons/img/smiley-yell.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lusess123/akvue/d1075090b37fa67f360efe06cc1f0ab9f9564962/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/emoticons/img/smiley-yell.gif
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/emoticons/index.js:
--------------------------------------------------------------------------------
1 | // Exports the "emoticons" plugin for usage with module loaders
2 | // Usage:
3 | // CommonJS:
4 | // require('tinymce/plugins/emoticons')
5 | // ES2015:
6 | // import 'tinymce/plugins/emoticons'
7 | require('./plugin.js');
8 |
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/fullpage/index.js:
--------------------------------------------------------------------------------
1 | // Exports the "fullpage" plugin for usage with module loaders
2 | // Usage:
3 | // CommonJS:
4 | // require('tinymce/plugins/fullpage')
5 | // ES2015:
6 | // import 'tinymce/plugins/fullpage'
7 | require('./plugin.js');
8 |
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/fullscreen/index.js:
--------------------------------------------------------------------------------
1 | // Exports the "fullscreen" plugin for usage with module loaders
2 | // Usage:
3 | // CommonJS:
4 | // require('tinymce/plugins/fullscreen')
5 | // ES2015:
6 | // import 'tinymce/plugins/fullscreen'
7 | require('./plugin.js');
8 |
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/help/img/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lusess123/akvue/d1075090b37fa67f360efe06cc1f0ab9f9564962/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/help/img/logo.png
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/help/index.js:
--------------------------------------------------------------------------------
1 | // Exports the "help" plugin for usage with module loaders
2 | // Usage:
3 | // CommonJS:
4 | // require('tinymce/plugins/help')
5 | // ES2015:
6 | // import 'tinymce/plugins/help'
7 | require('./plugin.js');
8 |
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/hr/index.js:
--------------------------------------------------------------------------------
1 | // Exports the "hr" plugin for usage with module loaders
2 | // Usage:
3 | // CommonJS:
4 | // require('tinymce/plugins/hr')
5 | // ES2015:
6 | // import 'tinymce/plugins/hr'
7 | require('./plugin.js');
8 |
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/image/index.js:
--------------------------------------------------------------------------------
1 | // Exports the "image" plugin for usage with module loaders
2 | // Usage:
3 | // CommonJS:
4 | // require('tinymce/plugins/image')
5 | // ES2015:
6 | // import 'tinymce/plugins/image'
7 | require('./plugin.js');
8 |
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/imagetools/index.js:
--------------------------------------------------------------------------------
1 | // Exports the "imagetools" plugin for usage with module loaders
2 | // Usage:
3 | // CommonJS:
4 | // require('tinymce/plugins/imagetools')
5 | // ES2015:
6 | // import 'tinymce/plugins/imagetools'
7 | require('./plugin.js');
8 |
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/importcss/index.js:
--------------------------------------------------------------------------------
1 | // Exports the "importcss" plugin for usage with module loaders
2 | // Usage:
3 | // CommonJS:
4 | // require('tinymce/plugins/importcss')
5 | // ES2015:
6 | // import 'tinymce/plugins/importcss'
7 | require('./plugin.js');
8 |
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/insertdatetime/index.js:
--------------------------------------------------------------------------------
1 | // Exports the "insertdatetime" plugin for usage with module loaders
2 | // Usage:
3 | // CommonJS:
4 | // require('tinymce/plugins/insertdatetime')
5 | // ES2015:
6 | // import 'tinymce/plugins/insertdatetime'
7 | require('./plugin.js');
8 |
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/legacyoutput/index.js:
--------------------------------------------------------------------------------
1 | // Exports the "legacyoutput" plugin for usage with module loaders
2 | // Usage:
3 | // CommonJS:
4 | // require('tinymce/plugins/legacyoutput')
5 | // ES2015:
6 | // import 'tinymce/plugins/legacyoutput'
7 | require('./plugin.js');
8 |
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/link/index.js:
--------------------------------------------------------------------------------
1 | // Exports the "link" plugin for usage with module loaders
2 | // Usage:
3 | // CommonJS:
4 | // require('tinymce/plugins/link')
5 | // ES2015:
6 | // import 'tinymce/plugins/link'
7 | require('./plugin.js');
8 |
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/lists/index.js:
--------------------------------------------------------------------------------
1 | // Exports the "lists" plugin for usage with module loaders
2 | // Usage:
3 | // CommonJS:
4 | // require('tinymce/plugins/lists')
5 | // ES2015:
6 | // import 'tinymce/plugins/lists'
7 | require('./plugin.js');
8 |
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/media/index.js:
--------------------------------------------------------------------------------
1 | // Exports the "media" plugin for usage with module loaders
2 | // Usage:
3 | // CommonJS:
4 | // require('tinymce/plugins/media')
5 | // ES2015:
6 | // import 'tinymce/plugins/media'
7 | require('./plugin.js');
8 |
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/nonbreaking/index.js:
--------------------------------------------------------------------------------
1 | // Exports the "nonbreaking" plugin for usage with module loaders
2 | // Usage:
3 | // CommonJS:
4 | // require('tinymce/plugins/nonbreaking')
5 | // ES2015:
6 | // import 'tinymce/plugins/nonbreaking'
7 | require('./plugin.js');
8 |
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/noneditable/index.js:
--------------------------------------------------------------------------------
1 | // Exports the "noneditable" plugin for usage with module loaders
2 | // Usage:
3 | // CommonJS:
4 | // require('tinymce/plugins/noneditable')
5 | // ES2015:
6 | // import 'tinymce/plugins/noneditable'
7 | require('./plugin.js');
8 |
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/pagebreak/index.js:
--------------------------------------------------------------------------------
1 | // Exports the "pagebreak" plugin for usage with module loaders
2 | // Usage:
3 | // CommonJS:
4 | // require('tinymce/plugins/pagebreak')
5 | // ES2015:
6 | // import 'tinymce/plugins/pagebreak'
7 | require('./plugin.js');
8 |
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/paste/index.js:
--------------------------------------------------------------------------------
1 | // Exports the "paste" plugin for usage with module loaders
2 | // Usage:
3 | // CommonJS:
4 | // require('tinymce/plugins/paste')
5 | // ES2015:
6 | // import 'tinymce/plugins/paste'
7 | require('./plugin.js');
8 |
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/preview/index.js:
--------------------------------------------------------------------------------
1 | // Exports the "preview" plugin for usage with module loaders
2 | // Usage:
3 | // CommonJS:
4 | // require('tinymce/plugins/preview')
5 | // ES2015:
6 | // import 'tinymce/plugins/preview'
7 | require('./plugin.js');
8 |
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/print/index.js:
--------------------------------------------------------------------------------
1 | // Exports the "print" plugin for usage with module loaders
2 | // Usage:
3 | // CommonJS:
4 | // require('tinymce/plugins/print')
5 | // ES2015:
6 | // import 'tinymce/plugins/print'
7 | require('./plugin.js');
8 |
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/save/index.js:
--------------------------------------------------------------------------------
1 | // Exports the "save" plugin for usage with module loaders
2 | // Usage:
3 | // CommonJS:
4 | // require('tinymce/plugins/save')
5 | // ES2015:
6 | // import 'tinymce/plugins/save'
7 | require('./plugin.js');
8 |
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/searchreplace/index.js:
--------------------------------------------------------------------------------
1 | // Exports the "searchreplace" plugin for usage with module loaders
2 | // Usage:
3 | // CommonJS:
4 | // require('tinymce/plugins/searchreplace')
5 | // ES2015:
6 | // import 'tinymce/plugins/searchreplace'
7 | require('./plugin.js');
8 |
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/spellchecker/index.js:
--------------------------------------------------------------------------------
1 | // Exports the "spellchecker" plugin for usage with module loaders
2 | // Usage:
3 | // CommonJS:
4 | // require('tinymce/plugins/spellchecker')
5 | // ES2015:
6 | // import 'tinymce/plugins/spellchecker'
7 | require('./plugin.js');
8 |
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/tabfocus/index.js:
--------------------------------------------------------------------------------
1 | // Exports the "tabfocus" plugin for usage with module loaders
2 | // Usage:
3 | // CommonJS:
4 | // require('tinymce/plugins/tabfocus')
5 | // ES2015:
6 | // import 'tinymce/plugins/tabfocus'
7 | require('./plugin.js');
8 |
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/table/index.js:
--------------------------------------------------------------------------------
1 | // Exports the "table" plugin for usage with module loaders
2 | // Usage:
3 | // CommonJS:
4 | // require('tinymce/plugins/table')
5 | // ES2015:
6 | // import 'tinymce/plugins/table'
7 | require('./plugin.js');
8 |
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/template/index.js:
--------------------------------------------------------------------------------
1 | // Exports the "template" plugin for usage with module loaders
2 | // Usage:
3 | // CommonJS:
4 | // require('tinymce/plugins/template')
5 | // ES2015:
6 | // import 'tinymce/plugins/template'
7 | require('./plugin.js');
8 |
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/textcolor/index.js:
--------------------------------------------------------------------------------
1 | // Exports the "textcolor" plugin for usage with module loaders
2 | // Usage:
3 | // CommonJS:
4 | // require('tinymce/plugins/textcolor')
5 | // ES2015:
6 | // import 'tinymce/plugins/textcolor'
7 | require('./plugin.js');
8 |
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/textpattern/index.js:
--------------------------------------------------------------------------------
1 | // Exports the "textpattern" plugin for usage with module loaders
2 | // Usage:
3 | // CommonJS:
4 | // require('tinymce/plugins/textpattern')
5 | // ES2015:
6 | // import 'tinymce/plugins/textpattern'
7 | require('./plugin.js');
8 |
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/toc/index.js:
--------------------------------------------------------------------------------
1 | // Exports the "toc" plugin for usage with module loaders
2 | // Usage:
3 | // CommonJS:
4 | // require('tinymce/plugins/toc')
5 | // ES2015:
6 | // import 'tinymce/plugins/toc'
7 | require('./plugin.js');
8 |
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/visualblocks/index.js:
--------------------------------------------------------------------------------
1 | // Exports the "visualblocks" plugin for usage with module loaders
2 | // Usage:
3 | // CommonJS:
4 | // require('tinymce/plugins/visualblocks')
5 | // ES2015:
6 | // import 'tinymce/plugins/visualblocks'
7 | require('./plugin.js');
8 |
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/visualchars/index.js:
--------------------------------------------------------------------------------
1 | // Exports the "visualchars" plugin for usage with module loaders
2 | // Usage:
3 | // CommonJS:
4 | // require('tinymce/plugins/visualchars')
5 | // ES2015:
6 | // import 'tinymce/plugins/visualchars'
7 | require('./plugin.js');
8 |
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/plugins/wordcount/index.js:
--------------------------------------------------------------------------------
1 | // Exports the "wordcount" plugin for usage with module loaders
2 | // Usage:
3 | // CommonJS:
4 | // require('tinymce/plugins/wordcount')
5 | // ES2015:
6 | // import 'tinymce/plugins/wordcount'
7 | require('./plugin.js');
8 |
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/skins/lightgray/content.mobile.min.css:
--------------------------------------------------------------------------------
1 | .tinymce-mobile-unfocused-selections .tinymce-mobile-unfocused-selection{position:absolute;display:inline-block;background-color:green;opacity:.5}body{-webkit-text-size-adjust:none}body img{max-width:96vw}body table img{max-width:95%}
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/skins/lightgray/fonts/tinymce-mobile.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lusess123/akvue/d1075090b37fa67f360efe06cc1f0ab9f9564962/packages/ak-host/src/views/my-components/text-editor/tinymce/skins/lightgray/fonts/tinymce-mobile.woff
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/skins/lightgray/fonts/tinymce-small.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lusess123/akvue/d1075090b37fa67f360efe06cc1f0ab9f9564962/packages/ak-host/src/views/my-components/text-editor/tinymce/skins/lightgray/fonts/tinymce-small.eot
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/skins/lightgray/fonts/tinymce-small.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lusess123/akvue/d1075090b37fa67f360efe06cc1f0ab9f9564962/packages/ak-host/src/views/my-components/text-editor/tinymce/skins/lightgray/fonts/tinymce-small.ttf
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/skins/lightgray/fonts/tinymce-small.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lusess123/akvue/d1075090b37fa67f360efe06cc1f0ab9f9564962/packages/ak-host/src/views/my-components/text-editor/tinymce/skins/lightgray/fonts/tinymce-small.woff
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/skins/lightgray/fonts/tinymce.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lusess123/akvue/d1075090b37fa67f360efe06cc1f0ab9f9564962/packages/ak-host/src/views/my-components/text-editor/tinymce/skins/lightgray/fonts/tinymce.eot
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/skins/lightgray/fonts/tinymce.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lusess123/akvue/d1075090b37fa67f360efe06cc1f0ab9f9564962/packages/ak-host/src/views/my-components/text-editor/tinymce/skins/lightgray/fonts/tinymce.ttf
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/skins/lightgray/fonts/tinymce.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lusess123/akvue/d1075090b37fa67f360efe06cc1f0ab9f9564962/packages/ak-host/src/views/my-components/text-editor/tinymce/skins/lightgray/fonts/tinymce.woff
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/skins/lightgray/img/anchor.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lusess123/akvue/d1075090b37fa67f360efe06cc1f0ab9f9564962/packages/ak-host/src/views/my-components/text-editor/tinymce/skins/lightgray/img/anchor.gif
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/skins/lightgray/img/loader.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lusess123/akvue/d1075090b37fa67f360efe06cc1f0ab9f9564962/packages/ak-host/src/views/my-components/text-editor/tinymce/skins/lightgray/img/loader.gif
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/skins/lightgray/img/object.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lusess123/akvue/d1075090b37fa67f360efe06cc1f0ab9f9564962/packages/ak-host/src/views/my-components/text-editor/tinymce/skins/lightgray/img/object.gif
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/skins/lightgray/img/trans.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lusess123/akvue/d1075090b37fa67f360efe06cc1f0ab9f9564962/packages/ak-host/src/views/my-components/text-editor/tinymce/skins/lightgray/img/trans.gif
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/themes/inlite/index.js:
--------------------------------------------------------------------------------
1 | // Exports the "inlite" theme for usage with module loaders
2 | // Usage:
3 | // CommonJS:
4 | // require('tinymce/themes/inlite')
5 | // ES2015:
6 | // import 'tinymce/themes/inlite'
7 | require('./theme.js');
8 |
--------------------------------------------------------------------------------
/packages/ak-host/src/views/my-components/text-editor/tinymce/themes/modern/index.js:
--------------------------------------------------------------------------------
1 | // Exports the "modern" theme for usage with module loaders
2 | // Usage:
3 | // CommonJS:
4 | // require('tinymce/themes/modern')
5 | // ES2015:
6 | // import 'tinymce/themes/modern'
7 | require('./theme.js');
8 |
--------------------------------------------------------------------------------
/packages/ak-host/src/views/own-space/own-space.less:
--------------------------------------------------------------------------------
1 | .own-space{
2 | &-btn-box{
3 | margin-bottom: 10px;
4 | button{
5 | padding-left: 0;
6 | span{
7 | color: #2D8CF0;
8 | transition: all .2s;
9 | }
10 | span:hover{
11 | color: #0C25F1;
12 | transition: all .2s;
13 | }
14 | }
15 | }
16 | &-tra{
17 | width:10px;
18 | height:10px;
19 | transform:rotate(45deg);
20 | position:absolute;
21 | top:50%;
22 | margin-top:-6px;
23 | left:-3px;
24 | box-shadow:0 0 2px 3px rgba(0,0,0,.1);
25 | background-color:white;z-index:100;
26 | }
27 | &-input-identifycode-con{
28 | position:absolute;
29 | width:200px;
30 | height:100px;
31 | right:-220px;
32 | top:50%;
33 | margin-top:-50px;
34 | border-radius:4px;
35 | box-shadow:0 0 2px 3px rgba(0,0,0,.1);
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/packages/ak-host/src/views/own-space/test.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
16 |
--------------------------------------------------------------------------------
/packages/ak-host/src/views/tables/components/ExportExcel.vue:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
22 |
--------------------------------------------------------------------------------
/packages/ak-host/src/views/tables/components/dragableTable.vue:
--------------------------------------------------------------------------------
1 |
2 |
11 |
12 |
13 |
51 |
52 |
--------------------------------------------------------------------------------
/packages/ak-host/src/views/tables/components/editable-table.less:
--------------------------------------------------------------------------------
1 | .show-edit-btn{
2 | display: none;
3 | margin-left: -10px;
4 | }
5 | .ivu-table-cell:hover .show-edit-btn{
6 | display: inline-block;
7 | }
--------------------------------------------------------------------------------
/packages/ak-host/src/views/tables/data/search.js:
--------------------------------------------------------------------------------
1 | export const columns1 = [
2 | {
3 | key: 'name',
4 | title: '姓名'
5 | },
6 | {
7 | key: 'tel',
8 | title: '电话号码'
9 | }
10 | ];
11 |
12 | export const searchTable1 = [
13 | {
14 | name: 'Aresn',
15 | tel: '17712345678'
16 | },
17 | {
18 | name: 'Lison',
19 | tel: '17787654321'
20 | },
21 | {
22 | name: 'Lili',
23 | tel: '12212345678'
24 | },
25 | {
26 | name: 'Lucy',
27 | tel: '13312345678'
28 | }
29 | ];
30 |
31 | export const searchTable2 = [
32 | {
33 | name: 'Aresn',
34 | tel: '17712345678'
35 | },
36 | {
37 | name: 'Lison',
38 | tel: '17787654321'
39 | },
40 | {
41 | name: 'Lili',
42 | tel: '12212345678'
43 | },
44 | {
45 | name: 'Lucy',
46 | tel: '13312345678'
47 | }
48 | ];
49 |
50 | export const searchTable3 = [
51 | {
52 | name: 'Aresn',
53 | tel: '17712345678'
54 | },
55 | {
56 | name: 'Lison',
57 | tel: '17787654321'
58 | },
59 | {
60 | name: 'Lili',
61 | tel: '12212345678'
62 | },
63 | {
64 | name: 'Lucy',
65 | tel: '13312345678'
66 | }
67 | ];
68 |
--------------------------------------------------------------------------------
/packages/ak-host/src/vue-shim.d.ts:
--------------------------------------------------------------------------------
1 | declare module '*.vue' {
2 | import Vue from 'vue'
3 | export default Vue
4 | export function registComponent(name:string ,com:any);
5 | }
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/packages/ak-host/tsconfig.json:
--------------------------------------------------------------------------------
1 |
2 | {
3 | "compilerOptions": {
4 | "experimentalDecorators": true,
5 | "allowJs": true,
6 | "target": "es2015",
7 | "module": "esnext",
8 | "strict": false,
9 | "jsx": "react",
10 | "moduleResolution": "node",
11 | "noImplicitAny":false,
12 | "allowSyntheticDefaultImports": true,
13 | "emitDecoratorMetadata":true ,
14 | // 启用 vuex-class 需要开启此选项
15 | "strictFunctionTypes": false,
16 | "lib": [ "es6", "dom" ],
17 | "declaration": false,
18 | "sourceMap": true,
19 | "baseUrl": "./src/framework/",
20 | "types": [
21 | "node",
22 | ],
23 | "paths": {
24 | "@/*": [
25 | "src/*"
26 | ]
27 | }
28 | },
29 | "include": [
30 | "src/**/*.ts",
31 | "src/**/*.vue",
32 | "tests/**/*.ts"
33 | ],
34 | "exclude": [
35 | "node_modules"
36 | ]
37 | }
38 |
39 |
40 |
--------------------------------------------------------------------------------
/packages/ak-lib-biz/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2018
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/packages/ak-lib-biz/README.md:
--------------------------------------------------------------------------------
1 | # 基于akvue的,对某个业务对象 CURD 的可配置UI组件
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/packages/ak-lib-biz/_apppage.vue:
--------------------------------------------------------------------------------
1 |
2 | {{vm.getPageName()}}
3 |
4 |
5 |
35 | //
36 |
39 |
--------------------------------------------------------------------------------
/packages/ak-lib-biz/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "ak-lib-biz",
3 | "version": "0.0.1",
4 | "description": "基于akvue的,对某个业务对象 CURD 的可配置UI组件",
5 | "main": "index.js",
6 | "types": "index.d.ts",
7 | "scripts": {
8 | "test": "echo \"Error: no test specified\" && exit 1",
9 | "tsc": " tsc",
10 | "clean_js": " find . -name \"*.js\" -o -name \"*.d.ts\" -o -name \"contract\" -o -name \"insert\" -o -name \"listpage\" -o -name \"source\" -o -name \"js\" |grep -v \"src/\" |grep -v \"node_modules/\" | xargs rm -rf",
11 | "deljs": "shx rm -rf js",
12 | "copy": "shx mv ./js/* .",
13 | "copyvue": "cd src;find ./ -name \"*.vue\" | xargs -I{} rsync -R \"{}\" ../js/;cd ..;",
14 | "build": "npm-run-all clean_js tsc copyvue copy deljs ",
15 | "rebuild": "npm-run-all clean_js tsc copyvue copy deljs "
16 | },
17 | "repository": {
18 | "type": "git",
19 | "url": "git+ https://github.com/lusess123/akvue.git"
20 | },
21 | "author": "zyk2003xxx@163.com",
22 | "license": "ISC",
23 | "bugs": {
24 | "url": "https://github.com/lusess123/akvue/issues"
25 | },
26 | "homepage": "https://github.com/lusess123/akvue/packages/ak-lib-biz#readme",
27 | "dependencies": {
28 | "ak-lib-sys":"*",
29 | "ak-lib-col":"*",
30 | "ak-lib-comp":"*"
31 | },
32 | "devDependencies": {
33 | "npm-run-all": "^4.1.2",
34 | "shx": "^0.2.2",
35 | "typescript": "*"
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/packages/ak-lib-biz/src/_apppage.vue:
--------------------------------------------------------------------------------
1 |
2 | {{vm.getPageName()}}
3 |
4 |
5 |
35 | //
36 |
39 |
--------------------------------------------------------------------------------
/packages/ak-lib-biz/src/contract/TableMeta.ts:
--------------------------------------------------------------------------------
1 | import * as PageViewFile from './pageview';
2 |
3 | export let TableMetaDict: PageViewFile.IForms = {
4 |
5 |
6 | };
7 |
8 | export function Column(config: PageViewFile.IColumn = {}) {
9 | return function (target: any, key: string) {
10 | let _config = { ...{Name:key,DisplayName:key}, ...config, ...{ Name: key } };
11 | //debugger;
12 | let _cons: string[] = target.constructor.toString().match(/function\s*([^(]*)\(/);
13 | if (!_cons || _cons.length <= 1) {
14 | _cons = target.constructor.toString().match(/class\s*([^{\s]*)/);
15 |
16 | }
17 | if (_cons && _cons.length > 1) {
18 | const _tableName: string = _cons[1];
19 | if (!TableMetaDict[_tableName]) TableMetaDict[_tableName] =
20 | {
21 | Columns: []
22 |
23 | };
24 | TableMetaDict[_tableName].Columns.push(_config);
25 | }
26 |
27 | }
28 | }
29 | //
--------------------------------------------------------------------------------
/packages/ak-lib-biz/src/contract/tablemeta.ts:
--------------------------------------------------------------------------------
1 | import * as PageViewFile from './pageview';
2 |
3 | export let TableMetaDict: PageViewFile.IForms = {
4 |
5 |
6 | };
7 |
8 | export function Column(config: PageViewFile.IColumn = {}) {
9 | return function (target: any, key: string) {
10 | let _config = { ...{Name:key,DisplayName:key}, ...config, ...{ Name: key } };
11 | //debugger;
12 | let _cons: string[] = target.constructor.toString().match(/function\s*([^(]*)\(/);
13 | if (!_cons || _cons.length <= 1) {
14 | _cons = target.constructor.toString().match(/class\s*([^{\s]*)/);
15 |
16 | }
17 | if (_cons && _cons.length > 1) {
18 | const _tableName: string = _cons[1];
19 | if (!TableMetaDict[_tableName]) TableMetaDict[_tableName] =
20 | {
21 | Columns: []
22 |
23 | };
24 | TableMetaDict[_tableName].Columns.push(_config);
25 | }
26 |
27 | }
28 | }
29 | //
--------------------------------------------------------------------------------
/packages/ak-lib-biz/src/index.ts:
--------------------------------------------------------------------------------
1 | import * as _listpage from "./listpage/listpage";_listpage;
2 | //import * as _appPage from "./_apppage.vue";_appPage;
3 | import * as insertPage from './insert/insertpage' ; insertPage
4 | //import * as _listpage1 from "./listpage1/ListPage";_listpage1;
5 | //alert("app -index-done ");
6 |
7 | import { core ,ioc } from "ak-lib-sys/src";
8 |
9 | //alert(core.alert(ioc.Ioc.Current().IocModel()));
10 |
11 | core.log("listpage",{info:"app index ",sign:"app"});
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/packages/ak-lib-biz/src/insert/Navi.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
16 |
17 |
20 |
--------------------------------------------------------------------------------
/packages/ak-lib-biz/src/insert/navi.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
16 |
17 |
20 |
--------------------------------------------------------------------------------
/packages/ak-lib-biz/src/insert/vmform/vmformvue.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
21 |
22 |
25 |
--------------------------------------------------------------------------------
/packages/ak-lib-biz/src/listpage/col.vue:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lusess123/akvue/d1075090b37fa67f360efe06cc1f0ab9f9564962/packages/ak-lib-biz/src/listpage/col.vue
--------------------------------------------------------------------------------
/packages/ak-lib-biz/src/listpage/col/basecol.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
14 |
15 |
17 |
--------------------------------------------------------------------------------
/packages/ak-lib-biz/src/listpage/col/colcontent.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
找不到{{ColumnConfig.ControlType}} 控件
5 |
6 |
7 |
8 |
23 |
24 |
27 |
--------------------------------------------------------------------------------
/packages/ak-lib-biz/src/listpage/col/registcol.ts:
--------------------------------------------------------------------------------
1 | import Textcol from "./textcol.vue";
2 |
3 | export default {
4 | Textcol
5 | };
--------------------------------------------------------------------------------
/packages/ak-lib-biz/src/listpage/col/textcol.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
11 |
12 |
14 |
--------------------------------------------------------------------------------
/packages/ak-lib-biz/src/listpage/data.ts:
--------------------------------------------------------------------------------
1 | export type dict = {
2 | [index:string]:T
3 | }
4 |
5 | export type controlType = "Text"|"DateTime"|"Combo" |"Radio"|"Detail"|"Hidden";
6 |
7 | export type column = {
8 | DisplayName :string ,
9 | Name :string ,
10 | ControlType : controlType
11 | }
12 |
13 | export type btn = {
14 | Name :string ,
15 | DisplayName ?:string ;
16 | Kind?: "single"|"page"|"batch";
17 | GroupName?:string ;
18 | Icon ?:string ;
19 | }
20 |
21 | export type btnGroup = {
22 | Name ?:string ;
23 | DisplayName ?:string ;
24 | Icon?:string ;
25 | }
26 |
27 | export type form = {
28 | Columns? : column[],
29 | Name :string ,
30 | DisplayName? :string ,
31 | BtnGroups ?: dict,
32 | Btns?:dict
33 | }
34 |
35 |
36 |
37 |
38 |
39 | export type pageview ={
40 | Data? : dict ,
41 | SearchForm? : form ,
42 | ListForm? : form ,
43 | Title?:string ;
44 | }
--------------------------------------------------------------------------------
/packages/ak-lib-biz/src/listpage/list.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
29 |
30 |
33 |
--------------------------------------------------------------------------------
/packages/ak-lib-biz/src/listpage/listbiz.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | {{vm.Title + " 列表"}}
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
52 |
53 |
55 |
--------------------------------------------------------------------------------
/packages/ak-lib-biz/src/listpage/listtable.vue:
--------------------------------------------------------------------------------
1 |
2 |
11 |
12 |
13 |
29 |
30 |
33 |
--------------------------------------------------------------------------------
/packages/ak-lib-biz/src/listpage/search.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
40 |
41 |
46 |
--------------------------------------------------------------------------------
/packages/ak-lib-biz/src/source/ISource.ts:
--------------------------------------------------------------------------------
1 |
2 |
3 | import * as pageView from "../contract/pageview";
4 |
5 | export interface ISource
6 | {
7 | PageView : pageView.IPageView ;
8 |
9 | asyncLoadData():Promise;
10 | initData();
11 | asyncSearch(postData):Promise;
12 | decode(regName,val):string;
13 | readonly getSearchColumns :pageView.IColumn[];
14 | readonly getListFormColumns:pageView.IColumn[];
15 | readonly getListFormData:any[];
16 | readonly getDataButtonsList:pageView.IDataButton[];
17 | readonly getPagerData:any;
18 |
19 | readonly getDataRowKey:string;
20 |
21 | command(name:string ,ids?:string[]);
22 |
23 | readonly getColumnGroupsByPageStyle:pageView.IColumnGroup[];
24 |
25 | setSource(pageStyle:string,obj:any);
26 |
27 | }
--------------------------------------------------------------------------------
/packages/ak-lib-biz/src/source/isource.ts:
--------------------------------------------------------------------------------
1 |
2 |
3 | import * as pageView from "../contract/pageview";
4 |
5 | export interface ISource
6 | {
7 | PageView : pageView.IPageView ;
8 |
9 | asyncLoadData():Promise;
10 | initData();
11 | asyncSearch(postData):Promise;
12 | decode(regName,val):string;
13 | readonly getSearchColumns :pageView.IColumn[];
14 | readonly getListFormColumns:pageView.IColumn[];
15 | readonly getListFormData:any[];
16 | readonly getDataButtonsList:pageView.IDataButton[];
17 | readonly getPagerData:any;
18 |
19 | readonly getDataRowKey:string;
20 |
21 | command(name:string ,ids?:string[]);
22 |
23 | readonly getColumnGroupsByPageStyle:pageView.IColumnGroup[];
24 |
25 | setSource(pageStyle:string,obj:any);
26 |
27 | }
--------------------------------------------------------------------------------
/packages/ak-lib-biz/src/vue-shim.d.ts:
--------------------------------------------------------------------------------
1 | declare module '*.vue' {
2 | import Vue from 'vue'
3 | export default Vue
4 | }
5 |
6 |
7 |
--------------------------------------------------------------------------------
/packages/ak-lib-biz/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | // 与 Vue 的浏览器支持保持一致
4 | "target": "es2015",
5 | // 这可以对 `this` 上的数据属性进行更严格的推断
6 | //"strict": true,
7 | "noImplicitAny":false,
8 | // "declarationDir":"./sys.d.ts",
9 | // 如果使用 webpack 2+ 或 rollup,可以利用 tree-shake:
10 | "module": "es2015",
11 | "moduleResolution": "node",
12 | "declaration":true,
13 | // "outFile": "./dist/aksys.js",
14 | // 启用 vue-class-component 及 vuex-class 需要开启此选项
15 | "experimentalDecorators": true,
16 | "emitDecoratorMetadata":true ,
17 | "lib": [ "es6", "dom" ],
18 | "outDir": "./js/",
19 |
20 | // 启用 vuex-class 需要开启此选项
21 | "strictFunctionTypes": false,
22 |
23 | //"allowJs":true,
24 | "allowSyntheticDefaultImports":true
25 |
26 | },
27 | "include": [
28 | "./src/**/*.ts","./src/**/*.vue"
29 | ]
30 | }
31 |
--------------------------------------------------------------------------------
/packages/ak-lib-col/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2018
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/packages/ak-lib-col/README.md:
--------------------------------------------------------------------------------
1 | # 封装成固定接口的控件库
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/packages/ak-lib-col/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "ak-lib-col",
3 | "version": "0.0.1",
4 | "description": "封装成固定接口的控件库",
5 | "main": "index.js",
6 | "types": "index.d.ts",
7 | "scripts": {
8 | "test": "echo \"Error: no test specified\" && exit 1",
9 | "tsc": " tsc",
10 | "clean_js": " find . -name \"*.js\" -o -name \"*.d.ts\" -o -name \"single\" -o -name \"js\" |grep -v \"src/\" |grep -v \"node_modules/\" | xargs rm -rf",
11 | "deljs": "shx rm -rf js",
12 | "copy": "shx mv ./js/* .",
13 | "copyvue": "cd src;find ./ -name \"*.vue\" | xargs -I{} rsync -R \"{}\" ../js/;cd ..;",
14 | "build": "npm-run-all clean_js tsc copyvue copy deljs ",
15 | "rebuild": "npm-run-all clean_js tsc copyvue copy deljs "
16 | },
17 | "repository": {
18 | "type": "git",
19 | "url": "git+ https://github.com/lusess123/akvue.git"
20 | },
21 | "author": "zyk2003xxx@163.com",
22 | "license": "ISC",
23 | "bugs": {
24 | "url": "https://github.com/lusess123/akvue/issues"
25 | },
26 | "homepage": "https://github.com/lusess123/akvue/packages/ak-lib-col#readme",
27 | "dependencies": {
28 | "ak-lib-sys":"*",
29 | "ak-lib-comp":"*"
30 | },
31 | "devDependencies": {
32 | "npm-run-all": "^4.1.2",
33 | "shx": "^0.2.2",
34 | "typescript": "*"
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/packages/ak-lib-col/src/XXXCol.ts:
--------------------------------------------------------------------------------
1 |
2 | import { core ,ioc,vue } from "ak-lib-sys/src";
3 | import {BaseCol,IBaseColConfig} from "./basecol"
4 |
5 |
6 | export interface IXXXColConfig extends IBaseColConfig{
7 |
8 | }
9 |
10 |
11 | @ioc.PlugIn({RegName:"XXXCol",BaseType:"BaseCol",Author:"zhengyukun",CreateDate:"2018-01-26",Doc:"XXXCol控件插件"})
12 | @vue.com('xxxCol
')
13 | export class XXXCol extends BaseCol {
14 |
15 | constructor (config?: IXXXColConfig){
16 | super(config);
17 | }
18 |
19 |
20 | }
--------------------------------------------------------------------------------
/packages/ak-lib-col/src/index.ts:
--------------------------------------------------------------------------------
1 | import * as a from "./single/datetimecol";a;
2 | import * as b from "./single/detailcol";b;
3 | import * as c from "./single/datetimedetailcol";c;
--------------------------------------------------------------------------------
/packages/ak-lib-col/src/single/DateTimeCol.ts:
--------------------------------------------------------------------------------
1 |
2 | import { core ,ioc,vue } from "ak-lib-sys/src";
3 | import {BaseCol,IBaseColConfig} from "../basecol"
4 |
5 |
6 | export interface IDateTimeColConfig extends IBaseColConfig{
7 |
8 | }
9 |
10 |
11 |
12 | @ioc.PlugIn({RegName:"DateTimeCol",BaseType:"BaseCol",Author:"zhengyukun",CreateDate:"2018-01-26",Doc:"时间控件插件"})
13 | @vue.com('')
14 | export class DateTimeCol extends BaseCol {
15 |
16 | constructor (config?: IDateTimeColConfig){
17 | super(config);
18 | }
19 |
20 |
21 | }
--------------------------------------------------------------------------------
/packages/ak-lib-col/src/single/DateTimeDetailCol.ts:
--------------------------------------------------------------------------------
1 |
2 | import { core ,ioc,vue ,util } from "ak-lib-sys/src";
3 | import {BaseCol,IBaseColConfig} from "../basecol"
4 |
5 |
6 | export interface IDateTimeDetailColConfig extends IBaseColConfig{
7 |
8 | }
9 |
10 |
11 | @ioc.PlugIn({RegName:"DateTimeDetailCol",BaseType:"BaseCol",Author:"zhengyukun",CreateDate:"2018-01-26",Doc:"时间显示控件插件"})
12 | export class DateTimeDetailCol extends BaseCol {
13 |
14 | constructor (config?: IDateTimeDetailColConfig){
15 | super(config);
16 | }
17 |
18 | protected pGetDataText(){
19 | let _text = super.pGetDataText();
20 | if(!_text) _text = this.DataValue;
21 | return util.formatTimeFormCode(Number.parseInt(_text),"yyyy-MM-dd hh:mm:ss");
22 | }
23 |
24 |
25 |
26 | }
--------------------------------------------------------------------------------
/packages/ak-lib-col/src/single/DetailCol.ts:
--------------------------------------------------------------------------------
1 |
2 | import { core ,ioc,vue } from "ak-lib-sys/src";
3 | import { BaseCol, IBaseColConfig} from "../basecol";
4 |
5 |
6 | export interface IDetailColConfig extends IBaseColConfig{
7 |
8 | }
9 |
10 |
11 |
12 |
13 | @ioc.PlugIn({RegName:"DetailCol",BaseType:"BaseCol",Doc:"详情控件"})
14 | export class DetailCol extends BaseCol {
15 |
16 | constructor (config?: IDetailColConfig){
17 | super(config);
18 | }
19 |
20 | protected pGetDataText(){
21 | let _str = super.pGetDataText();
22 | if(!_str) _str = this.pGetDataValue();
23 | return _str ;
24 | }
25 |
26 |
27 | }
--------------------------------------------------------------------------------
/packages/ak-lib-col/src/single/datetimecol.ts:
--------------------------------------------------------------------------------
1 |
2 | import { core ,ioc,vue } from "ak-lib-sys/src";
3 | import {BaseCol,IBaseColConfig} from "../basecol"
4 |
5 |
6 | export interface IDateTimeColConfig extends IBaseColConfig{
7 |
8 | }
9 |
10 |
11 |
12 | @ioc.PlugIn({RegName:"DateTimeCol",BaseType:"BaseCol",Author:"zhengyukun",CreateDate:"2018-01-26",Doc:"时间控件插件"})
13 | @vue.com('')
14 | export class DateTimeCol extends BaseCol {
15 |
16 | constructor (config?: IDateTimeColConfig){
17 | super(config);
18 | }
19 |
20 |
21 | }
--------------------------------------------------------------------------------
/packages/ak-lib-col/src/single/datetimedetailcol.ts:
--------------------------------------------------------------------------------
1 |
2 | import { core ,ioc,vue ,util } from "ak-lib-sys/src";
3 | import {BaseCol,IBaseColConfig} from "../basecol"
4 |
5 |
6 | export interface IDateTimeDetailColConfig extends IBaseColConfig{
7 |
8 | }
9 |
10 |
11 | @ioc.PlugIn({RegName:"DateTimeDetailCol",BaseType:"BaseCol",Author:"zhengyukun",CreateDate:"2018-01-26",Doc:"时间显示控件插件"})
12 | export class DateTimeDetailCol extends BaseCol {
13 |
14 | constructor (config?: IDateTimeDetailColConfig){
15 | super(config);
16 | }
17 |
18 | protected pGetDataText(){
19 | let _text = super.pGetDataText();
20 | if(!_text) _text = this.DataValue;
21 | return util.formatTimeFormCode(Number.parseInt(_text),"yyyy-MM-dd hh:mm:ss");
22 | }
23 |
24 |
25 |
26 | }
--------------------------------------------------------------------------------
/packages/ak-lib-col/src/single/detailcol.ts:
--------------------------------------------------------------------------------
1 |
2 | import { core ,ioc,vue } from "ak-lib-sys/src";
3 | import { BaseCol, IBaseColConfig} from "../basecol";
4 |
5 |
6 | export interface IDetailColConfig extends IBaseColConfig{
7 |
8 | }
9 |
10 |
11 |
12 |
13 | @ioc.PlugIn({RegName:"DetailCol",BaseType:"BaseCol",Doc:"详情控件"})
14 | export class DetailCol extends BaseCol {
15 |
16 | constructor (config?: IDetailColConfig){
17 | super(config);
18 | }
19 |
20 | protected pGetDataText(){
21 | let _str = super.pGetDataText();
22 | if(!_str) _str = this.pGetDataValue();
23 | return _str ;
24 | }
25 |
26 |
27 | }
--------------------------------------------------------------------------------
/packages/ak-lib-col/src/xxxcol.ts:
--------------------------------------------------------------------------------
1 |
2 | import { core ,ioc,vue } from "ak-lib-sys/src";
3 | import {BaseCol,IBaseColConfig} from "./basecol"
4 |
5 |
6 | export interface IXXXColConfig extends IBaseColConfig{
7 |
8 | }
9 |
10 |
11 | @ioc.PlugIn({RegName:"XXXCol",BaseType:"BaseCol",Author:"zhengyukun",CreateDate:"2018-01-26",Doc:"XXXCol控件插件"})
12 | @vue.com('xxxCol
')
13 | export class XXXCol extends BaseCol {
14 |
15 | constructor (config?: IXXXColConfig){
16 | super(config);
17 | }
18 |
19 |
20 | }
--------------------------------------------------------------------------------
/packages/ak-lib-col/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | // 与 Vue 的浏览器支持保持一致
4 | "target": "es2015",
5 | // 这可以对 `this` 上的数据属性进行更严格的推断
6 | //"strict": true,
7 | "noImplicitAny":false,
8 | // "declarationDir":"./sys.d.ts",
9 | // 如果使用 webpack 2+ 或 rollup,可以利用 tree-shake:
10 | "module": "es2015",
11 | "moduleResolution": "node",
12 | "declaration":true,
13 | // "outFile": "./dist/aksys.js",
14 | // 启用 vue-class-component 及 vuex-class 需要开启此选项
15 | "experimentalDecorators": true,
16 | "emitDecoratorMetadata":true ,
17 | "lib": [ "es6", "dom" ],
18 | "outDir": "./js/",
19 |
20 | // 启用 vuex-class 需要开启此选项
21 | "strictFunctionTypes": false,
22 |
23 | //"allowJs":true,
24 | "allowSyntheticDefaultImports":true
25 |
26 | },
27 | "include": [
28 | "./src/**/*.ts","./src/**/*.vue"
29 | ]
30 | }
31 |
--------------------------------------------------------------------------------
/packages/ak-lib-comp/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2018
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/packages/ak-lib-comp/README.md:
--------------------------------------------------------------------------------
1 | # 基于akvue 核心接口的组件库
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/packages/ak-lib-comp/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "ak-lib-comp",
3 | "version": "0.0.1",
4 | "description": "前端框架的核心模块",
5 | "main": "index.js",
6 | "types": "index.d.ts",
7 | "scripts": {
8 | "test": "echo \"Error: no test specified\" && exit 1",
9 | "tsc": " tsc",
10 | "clean_js": " find . -name \"*.js\" -o -name \"*.d.ts\" -o -name \"buttons\" -o -name \"complex\" -o -name \"iview\"-o -name \"multi\" -o -name \"inputtag\" -o -name \"js\" -o -name \"multi\" -o -name \"iview\" |grep -v \"src/\" |grep -v \"node_modules/\" | xargs rm -rf",
11 | "deljs": "shx rm -rf js",
12 | "copy": "shx mv ./js/* .",
13 | "copyvue": "cd src;find ./ -name \"*.vue\" | xargs -I{} rsync -R \"{}\" ../js/;cd ..;",
14 | "build": "npm-run-all tsc copyvue copy deljs ",
15 | "rebuild": "npm-run-all clean_js build "
16 | },
17 | "repository": {
18 | "type": "git",
19 | "url": "git+ https://github.com/lusess123/akvue.git"
20 | },
21 | "author": "zyk2003xxx@163.com",
22 | "license": "ISC",
23 | "bugs": {
24 | "url": "https://github.com/lusess123/akvue/issues"
25 | },
26 | "homepage": "https://github.com/lusess123/akvue/packages/ak-lib-comp#readme",
27 | "dependencies": {
28 | "ak-lib-sys":"*"
29 |
30 | },
31 | "devDependencies": {
32 | "npm-run-all": "^4.1.2",
33 | "shx": "^0.2.2",
34 | "typescript": "*"
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/packages/ak-lib-comp/src/buttons/XXXCom.ts:
--------------------------------------------------------------------------------
1 | import {BaseCom,IBaseComConfig} from "ak-lib-sys/src/com/basecom";
2 | import Vue from "vue";
3 | import { core ,ioc,vue } from "ak-lib-sys/src";
4 |
5 |
6 |
7 | export interface IXXXComConfig extends IBaseComConfig{
8 |
9 | }
10 |
11 |
12 | @ioc.PlugIn({RegName:"XXXCol",BaseType:"BaseCom",Author:"zhengyukun",CreateDate:"2018-01-26",Doc:"XXX组件插件"})
13 | @vue.com('XXXCom
')
14 | export class XXXCom extends BaseCom {
15 |
16 | constructor (config?: IXXXComConfig){
17 | super(config);
18 | }
19 |
20 |
21 | }
--------------------------------------------------------------------------------
/packages/ak-lib-comp/src/buttons/xxxcom.ts:
--------------------------------------------------------------------------------
1 | import {BaseCom,IBaseComConfig} from "ak-lib-sys/src/com/basecom";
2 | import Vue from "vue";
3 | import { core ,ioc,vue } from "ak-lib-sys/src";
4 |
5 |
6 |
7 | export interface IXXXComConfig extends IBaseComConfig{
8 |
9 | }
10 |
11 |
12 | @ioc.PlugIn({RegName:"XXXCol",BaseType:"BaseCom",Author:"zhengyukun",CreateDate:"2018-01-26",Doc:"XXX组件插件"})
13 | @vue.com('XXXCom
')
14 | export class XXXCom extends BaseCom {
15 |
16 | constructor (config?: IXXXComConfig){
17 | super(config);
18 | }
19 |
20 |
21 | }
--------------------------------------------------------------------------------
/packages/ak-lib-comp/src/complex/ifrom.ts:
--------------------------------------------------------------------------------
1 | export interface ILvForm {
2 | roles?: IDict;
3 | value?: any;
4 | options?: Ioption[];
5 | action?: boolean;
6 | loading?: boolean;
7 | }
8 |
9 | interface IDict {
10 | [index: string]: T;
11 | }
12 |
13 | interface IRule {
14 | message?: string;
15 | pattern?: string;
16 | required?: boolean;
17 |
18 | }
19 |
20 | export interface Ioption {
21 | default?: any;
22 | key: string;
23 | type: string;
24 | title: string;
25 | tooltip?: string;
26 | selectList?: ISelect[];
27 | radioList?: ISelect[];
28 | Options?: any;
29 |
30 | }
31 | export interface ISelect {
32 | label: string;
33 | value: string;
34 | }
35 |
--------------------------------------------------------------------------------
/packages/ak-lib-comp/src/complex/itemfrom.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
41 |
42 |
45 |
--------------------------------------------------------------------------------
/packages/ak-lib-comp/src/inputtag/configInput.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
13 |
14 |
15 |
29 |
30 |
35 |
36 |
--------------------------------------------------------------------------------
/packages/ak-lib-comp/src/iview/icon.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
22 |
23 |
26 |
--------------------------------------------------------------------------------
/packages/ak-lib-comp/src/jsonxsd/jsonitem.ts:
--------------------------------------------------------------------------------
1 | export interface IJsonItem {
2 | title ?: string ;
3 | type :"object" | "array" | "string" | "integer" | "number" | "boolean" ;
4 | description?:string ;
5 | required?: string[];
6 |
7 | items? : IJsonItem;
8 | minItems?:number ;
9 | maxItems?:number ;
10 | uniqueItems?:boolean;
11 |
12 |
13 | maxLength?:number ;
14 | minLength?:number;
15 | pattern?:string ;
16 |
17 | minimum?:number ;
18 | maximum?:number;
19 |
20 | properties?:IDictJsonItem;
21 | enum ?:string[];
22 |
23 | $ref?:string ;
24 | definitions?:IDictJsonItem;
25 |
26 | default ?: any ;
27 | format?:string ;
28 | }
29 |
30 | export interface IDictJsonItem
31 | {
32 | [index:string]:IJsonItem;
33 | }
34 |
35 | export interface IRoot extends IJsonItem{
36 | $schema? :string ;
37 | }
38 |
39 |
--------------------------------------------------------------------------------
/packages/ak-lib-comp/src/multi/RadioSelector.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | {{item.cnname}}
8 |
9 |
10 |
11 |
12 |
13 |
14 |
48 |
--------------------------------------------------------------------------------
/packages/ak-lib-comp/src/multi/TabSelector.ts:
--------------------------------------------------------------------------------
1 |
2 |
3 | import { core, ioc, vue } from "ak-lib-sys/src";
4 | import { BaseCom, IBaseComConfig } from "ak-lib-sys/src/com/basecom";
5 |
6 | export interface IItem
7 | {
8 | cnname :string ;
9 | id:string ;
10 | }
11 |
12 |
13 | export interface ITabSelectorComConfig extends IBaseComConfig {
14 | ItemList
15 | }
16 |
17 | @ioc.PlugIn({ RegName: "TabSelectorCol", BaseType: "BaseCom", CreateDate: "2018-01-31", Doc: "TabSelector组件插件" })
18 |
19 | @vue.com(`
20 |
21 | 标签一的内容
22 | 标签二的内容
23 | 标签三的内容
24 |
`)
25 | export class TabSelectorCom extends BaseCom {
26 |
27 | constructor(config?: ITabSelectorComConfig) {
28 | super(config);
29 | }
30 |
31 | }
32 |
--------------------------------------------------------------------------------
/packages/ak-lib-comp/src/multi/radioSelector.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | {{item.cnname}}
8 |
9 |
10 |
11 |
12 |
13 |
14 |
48 |
--------------------------------------------------------------------------------
/packages/ak-lib-comp/src/multi/radioselector.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | {{item.cnname}}
8 |
9 |
10 |
11 |
12 |
13 |
14 |
48 |
--------------------------------------------------------------------------------
/packages/ak-lib-comp/src/multi/tabSelector.ts:
--------------------------------------------------------------------------------
1 |
2 |
3 | import { core, ioc, vue } from "ak-lib-sys/src";
4 | import { BaseCom, IBaseComConfig } from "ak-lib-sys/src/com/basecom";
5 |
6 | export interface IItem
7 | {
8 | cnname :string ;
9 | id:string ;
10 | }
11 |
12 |
13 | export interface ITabSelectorComConfig extends IBaseComConfig {
14 | ItemList
15 | }
16 |
17 | @ioc.PlugIn({ RegName: "TabSelectorCol", BaseType: "BaseCom", CreateDate: "2018-01-31", Doc: "TabSelector组件插件" })
18 |
19 | @vue.com(`
20 |
21 | 标签一的内容
22 | 标签二的内容
23 | 标签三的内容
24 |
`)
25 | export class TabSelectorCom extends BaseCom {
26 |
27 | constructor(config?: ITabSelectorComConfig) {
28 | super(config);
29 | }
30 |
31 | }
32 |
--------------------------------------------------------------------------------
/packages/ak-lib-comp/src/multi/tabselector.ts:
--------------------------------------------------------------------------------
1 |
2 |
3 | import { core, ioc, vue } from "ak-lib-sys/src";
4 | import { BaseCom, IBaseComConfig } from "ak-lib-sys/src/com/basecom";
5 |
6 | export interface IItem
7 | {
8 | cnname :string ;
9 | id:string ;
10 | }
11 |
12 |
13 | export interface ITabSelectorComConfig extends IBaseComConfig {
14 | ItemList
15 | }
16 |
17 | @ioc.PlugIn({ RegName: "TabSelectorCol", BaseType: "BaseCom", CreateDate: "2018-01-31", Doc: "TabSelector组件插件" })
18 |
19 | @vue.com(`
20 |
21 | 标签一的内容
22 | 标签二的内容
23 | 标签三的内容
24 |
`)
25 | export class TabSelectorCom extends BaseCom {
26 |
27 | constructor(config?: ITabSelectorComConfig) {
28 | super(config);
29 | }
30 |
31 | }
32 |
--------------------------------------------------------------------------------
/packages/ak-lib-comp/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | // 与 Vue 的浏览器支持保持一致
4 | "target": "es2015",
5 | // 这可以对 `this` 上的数据属性进行更严格的推断
6 | //"strict": true,
7 | "noImplicitAny":false,
8 | // "declarationDir":"./sys.d.ts",
9 | // 如果使用 webpack 2+ 或 rollup,可以利用 tree-shake:
10 | "module": "es2015",
11 | "moduleResolution": "node",
12 | "declaration":true,
13 | // "outFile": "./dist/aksys.js",
14 | // 启用 vue-class-component 及 vuex-class 需要开启此选项
15 | "experimentalDecorators": true,
16 | "emitDecoratorMetadata":true ,
17 | "lib": [ "es6", "dom" ],
18 | "outDir": "./js/",
19 |
20 | // 启用 vuex-class 需要开启此选项
21 | "strictFunctionTypes": false,
22 |
23 | //"allowJs":true,
24 | "allowSyntheticDefaultImports":true
25 |
26 | },
27 | "include": [
28 | "./src/**/*.ts","./src/**/*.vue"
29 | ]
30 | }
31 |
--------------------------------------------------------------------------------
/packages/ak-lib-react-web/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2018
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/packages/ak-lib-react-web/README.md:
--------------------------------------------------------------------------------
1 | # react页面
2 |
3 | 用于快速创建react页面
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/packages/ak-lib-react-web/basereactpage.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | import { BasePage } from "ak-lib-web/basepage";
3 | import React from "react";
4 | export declare class BaseDomReact extends React.Component, any> {
5 | readonly Vm: T;
6 | render(): JSX.Element;
7 | }
8 | export interface IProps {
9 | Vm: T;
10 | }
11 | export declare class BaseReactPage extends BasePage {
12 | Title: string;
13 | $ReactType: any;
14 | protected loadPage(): void;
15 | }
16 | export declare class BasePageReact extends BaseDomReact {
17 | }
18 |
--------------------------------------------------------------------------------
/packages/ak-lib-react-web/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "ak-lib-react-web",
3 | "version": "0.0.1",
4 | "description": "react的页面",
5 | "main": "index.js",
6 | "types": "index.d.ts",
7 | "scripts": {
8 | "test": "echo \"Error: no test specified\" && exit 1",
9 | "tsc": " tsc",
10 | "clean_js": " find . -name \"*.js\" -o -name \"*.d.ts\" -o -name \"buttons\" -o -name \"complex\" -o -name \"iview\"-o -name \"multi\" -o -name \"inputtag\" -o -name \"js\" |grep -v \"src/\" |grep -v \"node_modules/\" | xargs rm -rf",
11 | "deljs": "shx rm -rf js",
12 | "copy": "shx mv ./js/* .",
13 | "copyvue": "cd src;find ./ -name \"*.vue\" | xargs -I{} rsync -R \"{}\" ../js/;cd ..;",
14 | "build": "npm-run-all tsc copyvue copy deljs ",
15 | "rebuild": "npm-run-all clean_js build "
16 | },
17 | "repository": {
18 | "type": "git",
19 | "url": "git+ https://github.com/lusess123/akvue.git"
20 | },
21 | "author": "zyk2003xxx@163.com",
22 | "license": "ISC",
23 | "bugs": {
24 | "url": "https://github.com/lusess123/akvue/issues"
25 | },
26 | "homepage": "https://github.com/lusess123/akvue/packages/ak-lib-react-web#readme",
27 | "dependencies": {
28 | "ak-lib-react": "*",
29 | "ak-lib-web": "*"
30 |
31 | },
32 | "devDependencies": {
33 | "npm-run-all": "^4.1.2",
34 | "shx": "^0.2.2",
35 | "typescript": "*"
36 | }
37 | }
--------------------------------------------------------------------------------
/packages/ak-lib-react-web/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | // 与 Vue 的浏览器支持保持一致
4 | "target": "es2015",
5 | // 这可以对 `this` 上的数据属性进行更严格的推断
6 | //"strict": true,
7 | "noImplicitAny": false,
8 | // "declarationDir":"./sys.d.ts",
9 | // 如果使用 webpack 2+ 或 rollup,可以利用 tree-shake:
10 | "module": "es2015",
11 | "moduleResolution": "node",
12 | "jsx": "react",
13 | "declaration": true,
14 | // "outFile": "./dist/aksys.js",
15 | // 启用 vue-class-component 及 vuex-class 需要开启此选项
16 | "experimentalDecorators": true,
17 | "emitDecoratorMetadata": true,
18 | "lib": [
19 | "es6",
20 | "dom"
21 | ],
22 | "outDir": "./js/",
23 | // 启用 vuex-class 需要开启此选项
24 | "strictFunctionTypes": false,
25 | //"allowJs":true,
26 | "allowSyntheticDefaultImports": true
27 | },
28 | "include": [
29 | "./src/**/*.ts",
30 | "./src/**/*.tsx"
31 |
32 | ]
33 | }
--------------------------------------------------------------------------------
/packages/ak-lib-react/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2018
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/packages/ak-lib-react/README.md:
--------------------------------------------------------------------------------
1 | # vue与react之前的桥梁
2 |
3 | 可以复用react生态
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/packages/ak-lib-react/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "ak-lib-react",
3 | "version": "0.0.1",
4 | "description": "vue与react之前的桥梁",
5 | "main": "index.js",
6 | "types": "index.d.ts",
7 | "scripts": {
8 | "test": "echo \"Error: no test specified\" && exit 1",
9 | "tsc": " tsc",
10 | "clean_js": " find . -name \"*.js\" -o -name \"*.d.ts\" -o -name \"buttons\" -o -name \"complex\" -o -name \"iview\"-o -name \"multi\" -o -name \"inputtag\" -o -name \"js\" |grep -v \"src/\" |grep -v \"node_modules/\" | xargs rm -rf",
11 | "deljs": "shx rm -rf js",
12 | "copy": "shx mv ./js/* .",
13 | "copyvue": "cd src;find ./ -name \"*.vue\" | xargs -I{} rsync -R \"{}\" ../js/;cd ..;",
14 | "build": "npm-run-all tsc copyvue copy deljs ",
15 | "rebuild": "npm-run-all clean_js build "
16 | },
17 | "repository": {
18 | "type": "git",
19 | "url": "git+ https://github.com/lusess123/akvue.git"
20 | },
21 | "author": "zyk2003xxx@163.com",
22 | "license": "ISC",
23 | "bugs": {
24 | "url": "https://github.com/lusess123/akvue/issues"
25 | },
26 | "homepage": "https://github.com/lusess123/akvue/packages/ak-lib-react#readme",
27 | "dependencies": {
28 | "ak-lib-sys":"*",
29 | "react":"*",
30 | "react-dom":"*",
31 | "@types/react":"*",
32 | "@types/react-dom":"*"
33 | },
34 | "devDependencies": {
35 | "npm-run-all": "^4.1.2",
36 | "shx": "^0.2.2",
37 | "typescript": "*"
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/packages/ak-lib-react/reactvmmixin.d.ts:
--------------------------------------------------------------------------------
1 | declare const _default: {
2 | mixins: any[];
3 | props: string[];
4 | methods: {
5 | getReactProps(): any;
6 | getReactType(): any;
7 | };
8 | watch: {
9 | Vm: {
10 | handler: (val: any, oldVal: any) => void;
11 | deep: boolean;
12 | };
13 | };
14 | };
15 | export default _default;
16 |
--------------------------------------------------------------------------------
/packages/ak-lib-react/reactvmmixin.js:
--------------------------------------------------------------------------------
1 | import reactvue from './reactvuemixin';
2 | export default {
3 | mixins: [reactvue],
4 | props: ["Vm", "ReactType"],
5 | // template: '',
6 | methods: {
7 | getReactProps() {
8 | return this.$props.Vm;
9 | },
10 | getReactType() {
11 | return this.$props.ReactType;
12 | }
13 | },
14 | watch: {
15 | Vm: {
16 | handler: function (val, oldVal) {
17 | /* ... */
18 | this.reactrender();
19 | },
20 | deep: true
21 | },
22 | }
23 | };
24 |
--------------------------------------------------------------------------------
/packages/ak-lib-react/src/reactvmmixin.tsx:
--------------------------------------------------------------------------------
1 |
2 | import reactvue from './reactvuemixin'
3 |
4 |
5 | export default {
6 | mixins:[reactvue as any],
7 | props: ["Vm","ReactType"],
8 | // template: '',
9 | methods:{
10 | getReactProps(){
11 | return this.$props.Vm;
12 | },
13 | getReactType(){
14 | return this.$props.ReactType;
15 | }
16 |
17 | },
18 | watch:{
19 | Vm: {
20 | handler: function (val, oldVal) {
21 | /* ... */
22 | this.reactrender();
23 |
24 |
25 | },
26 | deep: true
27 | },
28 | }
29 | }
--------------------------------------------------------------------------------
/packages/ak-lib-react/src/testdom.tsx:
--------------------------------------------------------------------------------
1 | import * as React from "react";
2 | import * as ReactDOM from "react-dom";
3 |
4 | export interface HelloProps {
5 | compiler: string;
6 | framework: string;
7 | }
8 |
9 | // 'HelloProps' describes the shape of props.
10 | // State is never set so we use the '{}' type.
11 | export class Hello extends React.Component {
12 | render() {
13 | return Hello from {this.props.compiler} and {this.props.framework}!
;
14 | }
15 | }
16 |
17 |
18 | export const renderTest = (dom: HTMLElement, pops:HelloProps) => {
19 | ReactDOM.render(
20 | ,
21 | dom
22 | );
23 | }
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/packages/ak-lib-react/testdom.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | import * as React from "react";
3 | export interface HelloProps {
4 | compiler: string;
5 | framework: string;
6 | }
7 | export declare class Hello extends React.Component {
8 | render(): JSX.Element;
9 | }
10 | export declare const renderTest: (dom: HTMLElement, pops: HelloProps) => void;
11 |
--------------------------------------------------------------------------------
/packages/ak-lib-react/testdom.js:
--------------------------------------------------------------------------------
1 | import * as React from "react";
2 | import * as ReactDOM from "react-dom";
3 | // 'HelloProps' describes the shape of props.
4 | // State is never set so we use the '{}' type.
5 | export class Hello extends React.Component {
6 | render() {
7 | return React.createElement("h1", null,
8 | "Hello from ",
9 | this.props.compiler,
10 | " and ",
11 | this.props.framework,
12 | "!");
13 | }
14 | }
15 | export const renderTest = (dom, pops) => {
16 | ReactDOM.render(React.createElement(Hello, { compiler: pops.compiler, framework: pops.framework }), dom);
17 | };
18 |
--------------------------------------------------------------------------------
/packages/ak-lib-react/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | // 与 Vue 的浏览器支持保持一致
4 | "target": "es2015",
5 | // 这可以对 `this` 上的数据属性进行更严格的推断
6 | //"strict": true,
7 | "noImplicitAny": false,
8 | // "declarationDir":"./sys.d.ts",
9 | // 如果使用 webpack 2+ 或 rollup,可以利用 tree-shake:
10 | "module": "es2015",
11 | "moduleResolution": "node",
12 | "jsx": "react",
13 | "declaration": true,
14 | // "outFile": "./dist/aksys.js",
15 | // 启用 vue-class-component 及 vuex-class 需要开启此选项
16 | "experimentalDecorators": true,
17 | "emitDecoratorMetadata": true,
18 | "lib": [
19 | "es6",
20 | "dom"
21 | ],
22 | "outDir": "./js/",
23 | // 启用 vuex-class 需要开启此选项
24 | "strictFunctionTypes": false,
25 | //"allowJs":true,
26 | "allowSyntheticDefaultImports": true
27 | },
28 | "include": [
29 | "./src/**/*.ts",
30 | "./src/**/*.tsx"
31 |
32 | ]
33 | }
--------------------------------------------------------------------------------
/packages/ak-lib-sys/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2018
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/packages/ak-lib-sys/README.md:
--------------------------------------------------------------------------------
1 | # 基于vue , vuex 的 前端平台的核心模块
2 |
3 |
4 | 提供了插件机制
5 |
6 |
7 | ## com
8 |
9 | 基础组件
10 |
11 | ## event
12 |
13 | 事件系统
14 |
15 | ## 其他
16 |
17 | 常用的工具函数和方法
18 |
19 | ru
--------------------------------------------------------------------------------
/packages/ak-lib-sys/node_modules/.bin/npm-run-all:
--------------------------------------------------------------------------------
1 | ../../../../node_modules/npm-run-all/bin/npm-run-all/index.js
--------------------------------------------------------------------------------
/packages/ak-lib-sys/node_modules/.bin/run-p:
--------------------------------------------------------------------------------
1 | ../../../../node_modules/npm-run-all/bin/run-p/index.js
--------------------------------------------------------------------------------
/packages/ak-lib-sys/node_modules/.bin/run-s:
--------------------------------------------------------------------------------
1 | ../../../../node_modules/npm-run-all/bin/run-s/index.js
--------------------------------------------------------------------------------
/packages/ak-lib-sys/node_modules/.bin/shx:
--------------------------------------------------------------------------------
1 | ../../../../node_modules/shx/lib/cli.js
--------------------------------------------------------------------------------
/packages/ak-lib-sys/node_modules/.bin/tsc:
--------------------------------------------------------------------------------
1 | ../../../../node_modules/typescript/bin/tsc
--------------------------------------------------------------------------------
/packages/ak-lib-sys/node_modules/.bin/tsserver:
--------------------------------------------------------------------------------
1 | ../../../../node_modules/typescript/bin/tsserver
--------------------------------------------------------------------------------
/packages/ak-lib-sys/src/Dom.ts:
--------------------------------------------------------------------------------
1 | import * as iView from 'iview'
2 | import * as Cookies from 'js-cookie';
3 |
4 |
5 | export const Notify = (mesg)=>{
6 | iView.Message.error({
7 | content: mesg,
8 | closable: true,
9 | duration: 5
10 | })
11 | }
12 |
13 | export const getCookie = ( key:string)=>
14 | {
15 | return Cookies.get(key);
16 | }
17 |
18 | export const setCookie = (key :string ,val :string)=>{
19 | Cookies.set(key ,val);
20 | }
--------------------------------------------------------------------------------
/packages/ak-lib-sys/src/bootstrap.ts:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | export const loadSys = async function () {
5 |
6 | //await loadListForm();
7 | // return new Promise((a, b) => {
8 | // // require.ensure([],function (require) {
9 | // // require("app");
10 | // // require("app/listpage/ListForm");
11 | // // a();
12 | // // });
13 | // });
14 | return Promise.all(_BootStrapTasks);
15 |
16 | }
17 |
18 |
19 |
20 | let _BootStrapTasks: Promise[] = [];
21 |
22 | export const addTask = (p :Promise)=>{
23 | _BootStrapTasks.push(p);
24 | }
25 |
26 |
27 |
--------------------------------------------------------------------------------
/packages/ak-lib-sys/src/com/ICom.ts:
--------------------------------------------------------------------------------
1 | import { IEvent } from "../event/ievent";
2 |
3 | export interface ICom
4 | {
5 | _VueObj : any ;
6 | UniId :string ;
7 | $store:any ;
8 | forceUpdate();
9 | getEvent():IEvent;
10 | dispose();
11 | getModuleState():any ;
12 | getGetters(name:string):any ;
13 | commit(name:string,obj:any);
14 | dispatch(name:string,obj:any);
15 | }
--------------------------------------------------------------------------------
/packages/ak-lib-sys/src/com/icom.ts:
--------------------------------------------------------------------------------
1 | import { IEvent } from "../event/ievent";
2 |
3 | export interface ICom
4 | {
5 | _VueObj : any ;
6 | UniId :string ;
7 | $store:any ;
8 | forceUpdate();
9 | getEvent():IEvent;
10 | dispose();
11 | getModuleState():any ;
12 | getGetters(name:string):any ;
13 | commit(name:string,obj:any);
14 | dispatch(name:string,obj:any);
15 | }
--------------------------------------------------------------------------------
/packages/ak-lib-sys/src/com/index.ts:
--------------------------------------------------------------------------------
1 | import * as BaseCom from "./basecom";
2 | import * as ICom from "./icom";
3 |
4 | export default { BaseCom , ICom};
5 |
--------------------------------------------------------------------------------
/packages/ak-lib-sys/src/dom.ts:
--------------------------------------------------------------------------------
1 | import * as iView from 'iview'
2 | import * as Cookies from 'js-cookie';
3 |
4 |
5 | export const Notify = (mesg)=>{
6 | iView.Message.error({
7 | content: mesg,
8 | closable: true,
9 | duration: 5
10 | })
11 | }
12 |
13 | export const getCookie = ( key:string)=>
14 | {
15 | return Cookies.get(key);
16 | }
17 |
18 | export const setCookie = (key :string ,val :string)=>{
19 | Cookies.set(key ,val);
20 | }
--------------------------------------------------------------------------------
/packages/ak-lib-sys/src/event/IEvent.ts:
--------------------------------------------------------------------------------
1 | export interface IEvent {
2 | emit(event: string, ...args: any[]): boolean;
3 | removeAllListeners(event?: string): IEvent;
4 | listeners(event: string): Function[];
5 | removeListener(event: string, listener: Function): IEvent;
6 | addListener(event: string, listener: Function): Function;
7 | showAllEvent(): IEventInfo[];
8 | removeAllBusListeners(): void;
9 | on(event: string, listener: Function): Function;
10 | off(event: string, listener: Function): IEvent;
11 | getSubjectByName(name: string): any;
12 | }
13 |
14 | export interface IEventInfo
15 | {
16 | EventName: string;
17 | FunLength: number;
18 | EventObj: any;
19 | FunCodeList?:string;
20 | }
21 |
22 | export interface ISubiectOb
23 | {
24 | Name: string;
25 | ArgList: any[];
26 | }
--------------------------------------------------------------------------------
/packages/ak-lib-sys/src/event/ievent.ts:
--------------------------------------------------------------------------------
1 | export interface IEvent {
2 | emit(event: string, ...args: any[]): boolean;
3 | removeAllListeners(event?: string): IEvent;
4 | listeners(event: string): Function[];
5 | removeListener(event: string, listener: Function): IEvent;
6 | addListener(event: string, listener: Function): Function;
7 | showAllEvent(): IEventInfo[];
8 | removeAllBusListeners(): void;
9 | on(event: string, listener: Function): Function;
10 | off(event: string, listener: Function): IEvent;
11 | getSubjectByName(name: string): any;
12 | }
13 |
14 | export interface IEventInfo
15 | {
16 | EventName: string;
17 | FunLength: number;
18 | EventObj: any;
19 | FunCodeList?:string;
20 | }
21 |
22 | export interface ISubiectOb
23 | {
24 | Name: string;
25 | ArgList: any[];
26 | }
--------------------------------------------------------------------------------
/packages/ak-lib-sys/src/event/index.ts:
--------------------------------------------------------------------------------
1 | import * as vueEvent from "./vueevent";
2 | import { IEvent } from "./ievent";
3 |
4 |
5 | class App {
6 | private static fAppEvent: IEvent = null;
7 | private static fUniId: number = 0;
8 |
9 | public static getUniId():number
10 | {
11 | this.fUniId++;
12 | return this.fUniId;
13 | }
14 |
15 | public static initAppEvent(event: IEvent) {
16 | this.fAppEvent = event;
17 | }
18 |
19 | public static GetAppEvent(): IEvent {
20 | if (!this.fAppEvent) {
21 | this.fAppEvent = new vueEvent.EventBus().HookEvent;
22 | }
23 | return this.fAppEvent;
24 | }
25 | }
26 |
27 | export const fetchEvent = function () {
28 | return new vueEvent.EventBus().VmEvent ;
29 | }
30 |
31 | export default App ;
--------------------------------------------------------------------------------
/packages/ak-lib-sys/src/index.ts:
--------------------------------------------------------------------------------
1 | import * as core from "./core";
2 | import * as ioc from "./ioc";
3 | import * as net from "./net";
4 | import * as dom from "./dom";
5 | import * as vue from "./vue";
6 | import * as util from "./util";
7 |
8 |
9 | export { core ,ioc,net,dom ,vue,util}
10 |
--------------------------------------------------------------------------------
/packages/ak-lib-sys/src/net/code.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by nihilism on 03/06/2017.
3 | */
4 |
5 | const UNAUTHORIZED = 401
6 | const INTERNAL_ERROR = 500
7 | const BAD_GATEWAY = 502
8 | const GATEWAY_TIMEOUT = 504
9 | const OK = 200
10 |
11 | export default {
12 | OK,
13 | UNAUTHORIZED,
14 | INTERNAL_ERROR,
15 | BAD_GATEWAY,
16 | GATEWAY_TIMEOUT
17 | }
18 |
--------------------------------------------------------------------------------
/packages/ak-lib-sys/src/net/index.ts:
--------------------------------------------------------------------------------
1 | import { get ,post } from "./net";
2 |
3 |
4 |
5 | export { get,post };
--------------------------------------------------------------------------------
/packages/ak-lib-sys/src/vue-shim.d.ts:
--------------------------------------------------------------------------------
1 | declare module '*.vue' {
2 | import Vue from 'vue'
3 | export default Vue
4 | }
5 |
6 |
7 |
--------------------------------------------------------------------------------
/packages/ak-lib-sys/src/vuemixin/getmodule.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 | {{_getIdHashString()}}
4 |
5 |
6 |
7 |
38 |
39 |
41 |
--------------------------------------------------------------------------------
/packages/ak-lib-sys/src/vuemixin/modulecom.vue:
--------------------------------------------------------------------------------
1 |
2 | {{vStore().Title}}
3 |
4 |
5 |
54 |
55 |
57 |
--------------------------------------------------------------------------------
/packages/ak-lib-sys/src/vuemixin/uniidmixin.vue:
--------------------------------------------------------------------------------
1 |
2 | UniId Mixxin
3 |
4 |
5 |
18 |
19 |
22 |
--------------------------------------------------------------------------------
/packages/ak-lib-sys/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | // 与 Vue 的浏览器支持保持一致
4 | "target": "es2015",
5 | // 这可以对 `this` 上的数据属性进行更严格的推断
6 | //"strict": true,
7 | "noImplicitAny":false,
8 | // "declarationDir":"./sys.d.ts",
9 | // 如果使用 webpack 2+ 或 rollup,可以利用 tree-shake:
10 | "module": "es2015",
11 | "moduleResolution": "node",
12 | "declaration":true,
13 | // "outFile": "./dist/aksys.js",
14 | // 启用 vue-class-component 及 vuex-class 需要开启此选项
15 | "experimentalDecorators": true,
16 | "emitDecoratorMetadata":true ,
17 | "lib": [ "es6", "dom" ],
18 | "outDir": "./js/",
19 |
20 | // 启用 vuex-class 需要开启此选项
21 | "strictFunctionTypes": false,
22 |
23 | //"allowJs":true,
24 | "allowSyntheticDefaultImports":true
25 |
26 | },
27 | "include": [
28 | "./src/**/*.ts"
29 | ]
30 | }
31 |
--------------------------------------------------------------------------------
/packages/ak-lib-web/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2018
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/packages/ak-lib-web/README.md:
--------------------------------------------------------------------------------
1 | # 基于vue , vuex 的 前端平台的核心模块
2 |
3 |
4 | 提供了插件机制
5 |
6 |
7 | ## com
8 |
9 | 基础组件
10 |
11 | ## event
12 |
13 | 事件系统
14 |
15 | ## 其他
16 |
17 | 常用的工具函数和方法
18 |
19 |
--------------------------------------------------------------------------------
/packages/ak-lib-web/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "ak-lib-web",
3 | "version": "0.0.1",
4 | "description": "前端框架的核心模块",
5 | "main": "index.js",
6 | "types": "index.d.ts",
7 | "scripts": {
8 | "test": "echo \"Error: no test specified\" && exit 1",
9 | "tsc": " tsc",
10 | "clean_js": " find . -name \"*.js\" -o -name \"*.d.ts\" -o -name \"app\" -o -name \"vue\" -o -name \"js\" |grep -v \"src/\" |grep -v \"node_modules/\" | xargs rm -rf",
11 | "deljs": "shx rm -rf js",
12 | "copy": "shx mv ./js/* .",
13 | "copyvue": "cd src;find ./ -name \"*.vue\" | xargs -I{} rsync -R \"{}\" ../js/;cd ..;",
14 | "build": "npm-run-all clean_js tsc copyvue copy deljs ",
15 | "rebuild": "npm-run-all clean_js tsc copyvue copy deljs "
16 | },
17 | "repository": {
18 | "type": "git",
19 | "url": "git+https://github.com/lusess123/akweb.git"
20 | },
21 | "author": "zyk2003xxx@163.com",
22 | "license": "ISC",
23 | "bugs": {
24 | "url": "https://github.com/lusess123/akweb/issues"
25 | },
26 | "homepage": "https://github.com/lusess123/akweb#readme",
27 | "dependencies": {
28 | "ak-lib-sys":"*"
29 | },
30 | "devDependencies": {
31 | "npm-run-all": "^4.1.2",
32 | "shx": "^0.2.2",
33 | "typescript": "^2.6.2"
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/packages/ak-lib-web/src/IPage.ts:
--------------------------------------------------------------------------------
1 | import { ICom } from "ak-lib-sys/src/com/icom";
2 |
3 | export interface IPage extends ICom
4 | {
5 |
6 | Title :string ;
7 | PageName :string ;
8 | P1:string ;
9 | P2 :string ;
10 | P3 :string ;
11 | sysloadPage() ;
12 | reset(pagename:string,p1:string,p2:string,p3:string);
13 | }
14 |
15 |
--------------------------------------------------------------------------------
/packages/ak-lib-web/src/app/BaseApp.ts:
--------------------------------------------------------------------------------
1 | import { IApp } from "./iapp"
2 | import {IMenu} from "./imenu"
3 | import {ioc,vue} from "ak-lib-sys/src"
4 |
5 | export abstract class BaseApp implements IApp {
6 |
7 | public Name:string = "";
8 | public Title :string = "";
9 | public Doc :string = "";
10 | public Icon :string = "";
11 | public TagName:string = "default";
12 |
13 | protected MenuList :IMenu [] ;
14 | protected PlugDict:ioc.IClassList ;
15 | public Order :number = 0;
16 |
17 | public RootRoute: vue.IRouteConfig[] ;
18 | public MainRoute: vue.IRouteConfig[] ;
19 | public async useContext(pre:any):Promise {
20 | return pre ;
21 | }
22 |
23 | public async afterUseContext(pre:any):Promise {
24 | return pre ;
25 | };
26 |
27 | public getMenus():IMenu[]{
28 | return this.MenuList ;
29 | }
30 |
31 | public getPlugs():ioc.IClassList{
32 | return this.PlugDict ;
33 | }
34 |
35 | }
--------------------------------------------------------------------------------
/packages/ak-lib-web/src/app/IApp.ts:
--------------------------------------------------------------------------------
1 | import { IMenu } from "./imenu"
2 | import { ioc,vue } from "ak-lib-sys/src"
3 | import { promises } from "fs";
4 |
5 | export interface IApp
6 | {
7 | Name :string ;
8 | Title:string ;
9 | Doc:string ;
10 | Icon:string ;
11 | Order?:number;
12 | TagName?:string;
13 |
14 | getMenus():IMenu[];
15 | getPlugs():ioc.IClassList;
16 |
17 | RootRoute?: vue.IRouteConfig[];
18 | MainRoute?: vue.IRouteConfig[];
19 | useContext(pre:any):Promise ;
20 | afterUseContext(pre:any):Promise ;
21 | }
--------------------------------------------------------------------------------
/packages/ak-lib-web/src/app/IMenu.ts:
--------------------------------------------------------------------------------
1 | export interface IMenu
2 | {
3 | text:string ;
4 | name :String ;
5 | icon?:string ;
6 | title?:string ;
7 | children?: IMenu[];
8 | }
--------------------------------------------------------------------------------
/packages/ak-lib-web/src/app/appget.ts:
--------------------------------------------------------------------------------
1 | import {IApp} from "./iapp"
2 | import {ioc} from "ak-lib-sys/src"
3 |
4 | let _apps : IApp[];
5 |
6 | const fetchApps = () : IApp[] => {
7 | const _res : ioc.IClassMeta[] = ioc
8 | .Ioc
9 | .Current()
10 | .GetTypeList("IApp");
11 | const _apps = _res.map(info => {
12 |
13 | return ioc
14 | .Ioc
15 | .Current()
16 | .FetchInstance < IApp > (info.RegName, "IApp");
17 |
18 | });
19 | return _apps;
20 | }
21 |
22 | export default () : IApp[] => {
23 | if (!_apps) {
24 | _apps = fetchApps();
25 | }
26 | return _apps;
27 | }
28 |
--------------------------------------------------------------------------------
/packages/ak-lib-web/src/app/baseapp.ts:
--------------------------------------------------------------------------------
1 | import { IApp } from "./iapp"
2 | import {IMenu} from "./imenu"
3 | import {ioc,vue} from "ak-lib-sys/src"
4 |
5 | export abstract class BaseApp implements IApp {
6 |
7 | public Name:string = "";
8 | public Title :string = "";
9 | public Doc :string = "";
10 | public Icon :string = "";
11 | public TagName:string = "default";
12 |
13 | protected MenuList :IMenu [] ;
14 | protected PlugDict:ioc.IClassList ;
15 | public Order :number = 0;
16 |
17 | public RootRoute: vue.IRouteConfig[] ;
18 | public MainRoute: vue.IRouteConfig[] ;
19 | public async useContext(pre:any):Promise {
20 | return pre ;
21 | }
22 |
23 | public async afterUseContext(pre:any):Promise {
24 | return pre ;
25 | };
26 |
27 | public getMenus():IMenu[]{
28 | return this.MenuList ;
29 | }
30 |
31 | public getPlugs():ioc.IClassList{
32 | return this.PlugDict ;
33 | }
34 |
35 | }
--------------------------------------------------------------------------------
/packages/ak-lib-web/src/app/iapp.ts:
--------------------------------------------------------------------------------
1 | import { IMenu } from "./imenu"
2 | import { ioc,vue } from "ak-lib-sys/src"
3 | import { promises } from "fs";
4 |
5 | export interface IApp
6 | {
7 | Name :string ;
8 | Title:string ;
9 | Doc:string ;
10 | Icon:string ;
11 | Order?:number;
12 | TagName?:string;
13 |
14 | getMenus():IMenu[];
15 | getPlugs():ioc.IClassList;
16 |
17 | RootRoute?: vue.IRouteConfig[];
18 | MainRoute?: vue.IRouteConfig[];
19 | useContext(pre:any):Promise ;
20 | afterUseContext(pre:any):Promise ;
21 | }
--------------------------------------------------------------------------------
/packages/ak-lib-web/src/app/imenu.ts:
--------------------------------------------------------------------------------
1 | export interface IMenu
2 | {
3 | text:string ;
4 | name :String ;
5 | icon?:string ;
6 | title?:string ;
7 | children?: IMenu[];
8 | }
--------------------------------------------------------------------------------
/packages/ak-lib-web/src/basepage.ts:
--------------------------------------------------------------------------------
1 | import { IPage } from "./ipage";
2 | import {BaseCom, IBaseComConfig} from "ak-lib-sys/src/com/basecom";
3 | import { vue,core } from "ak-lib-sys/src";
4 |
5 |
6 | export interface IBasePageConfig extends IBaseComConfig
7 | {
8 |
9 | }
10 |
11 |
12 |
13 | @vue.com(`
14 | 页面组件:{{vm.PageName}}
15 | `)
16 | export class BasePage extends BaseCom implements IPage {
17 |
18 |
19 | public Title :string ;
20 | public PageName :string = "";
21 | public P1:string ;
22 | public P2 :string ;
23 | public P3 :string ;
24 | // public _VueObj : any ;
25 | protected IsSingle$ = true ;
26 |
27 | public constructor(config?: IBaseComConfig){
28 | super(config);
29 | if(config && config.UniId){
30 | this.UniId = config.UniId ;
31 | }
32 | else{
33 | this.UniId = "BasePage"+ core.getUniId();
34 | }
35 |
36 | }
37 |
38 |
39 | protected loadPage(){
40 |
41 | }
42 |
43 | public sysloadPage(){
44 | this.loadPage();
45 | }
46 | public reset(pagename,p1,p2,p3){
47 | this.PageName = pagename,
48 | this.P1 = p1 ,
49 | this.P2 = p2 ,
50 | this.P3 = p3;
51 | //alert(this.PageName);
52 | }
53 | }
--------------------------------------------------------------------------------
/packages/ak-lib-web/src/ipage.ts:
--------------------------------------------------------------------------------
1 | import { ICom } from "ak-lib-sys/src/com/icom";
2 |
3 | export interface IPage extends ICom
4 | {
5 |
6 | Title :string ;
7 | PageName :string ;
8 | P1:string ;
9 | P2 :string ;
10 | P3 :string ;
11 | sysloadPage() ;
12 | reset(pagename:string,p1:string,p2:string,p3:string);
13 | }
14 |
15 |
--------------------------------------------------------------------------------
/packages/ak-lib-web/src/vue/VuePage.ts:
--------------------------------------------------------------------------------
1 | import { core, ioc, vue, util } from "ak-lib-sys/src";
2 | import { BasePage } from "./../basepage";
3 | import Vue from "vue";
4 |
5 | @vue.com(`
6 |
7 |
8 |
9 | 找不到注册名为{{vm.P1}}的vue组件
10 |
11 |
12 |
`)
13 | @ioc.PlugIn({ RegName: "vue", BaseType: "IPage", CreateDate: "2018-02-05", Doc: "Vue页面插件" })
14 | export class VuePage extends BasePage {
15 |
16 | public Title: string = "Vue";
17 | public VueName: string = "";
18 | protected loadPage() {
19 | const _vueName = this.P1;
20 | if (_vueName) {
21 | // debugger;
22 | const _vueObj = ioc.getType("vue", _vueName);
23 | if (_vueObj) {
24 | this.VueName = vue.getTempVueName(_vueObj, _vueName);
25 | // alert(this.VueName);
26 | Vue.component(this.VueName, _vueObj);
27 | }
28 | //this.forceUpdate();
29 | }
30 | }
31 |
32 | }
33 |
--------------------------------------------------------------------------------
/packages/ak-lib-web/src/vue/vuepage.ts:
--------------------------------------------------------------------------------
1 | import { core, ioc, vue, util } from "ak-lib-sys/src";
2 | import { BasePage } from "./../basepage";
3 | import Vue from "vue";
4 |
5 | @vue.com(`
6 |
7 |
8 |
9 | 找不到注册名为{{vm.P1}}的vue组件
10 |
11 |
12 |
`)
13 | @ioc.PlugIn({ RegName: "vue", BaseType: "IPage", CreateDate: "2018-02-05", Doc: "Vue页面插件" })
14 | export class VuePage extends BasePage {
15 |
16 | public Title: string = "Vue";
17 | public VueName: string = "";
18 | protected loadPage() {
19 | const _vueName = this.P1;
20 | if (_vueName) {
21 | // debugger;
22 | const _vueObj = ioc.getType("vue", _vueName);
23 | if (_vueObj) {
24 | this.VueName = vue.getTempVueName(_vueObj, _vueName);
25 | // alert(this.VueName);
26 | Vue.component(this.VueName, _vueObj);
27 | }
28 | //this.forceUpdate();
29 | }
30 | }
31 |
32 | }
33 |
--------------------------------------------------------------------------------
/packages/ak-lib-web/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | // 与 Vue 的浏览器支持保持一致
4 | "target": "es2015",
5 | // 这可以对 `this` 上的数据属性进行更严格的推断
6 | //"strict": true,
7 | "noImplicitAny":false,
8 | // "declarationDir":"./sys.d.ts",
9 | // 如果使用 webpack 2+ 或 rollup,可以利用 tree-shake:
10 | "module": "es2015",
11 | "moduleResolution": "node",
12 | "declaration":true,
13 | // "outFile": "./dist/aksys.js",
14 | // 启用 vue-class-component 及 vuex-class 需要开启此选项
15 | "experimentalDecorators": true,
16 | "emitDecoratorMetadata":true ,
17 | "lib": [ "es6", "dom" ],
18 | "outDir": "./js/",
19 |
20 | // 启用 vuex-class 需要开启此选项
21 | "strictFunctionTypes": false,
22 |
23 | //"allowJs":true,
24 | "allowSyntheticDefaultImports":true
25 |
26 | },
27 | "include": [
28 | "./src/**/*.ts"
29 | ]
30 | }
31 |
--------------------------------------------------------------------------------
/postcss.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | plugins: {
3 | 'autoprefixer': {browsers: 'last 5 version'}
4 | }
5 | }
--------------------------------------------------------------------------------
/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | // 与 Vue 的浏览器支持保持一致
4 | "target": "es5",
5 | // 这可以对 `this` 上的数据属性进行更严格的推断
6 | //"strict": true,
7 | "jsx": "react",
8 | "noImplicitAny":false,
9 | // 如果使用 webpack 2+ 或 rollup,可以利用 tree-shake:
10 | "module": "esnext",
11 | "moduleResolution": "node",
12 |
13 | // 启用 vue-class-component 及 vuex-class 需要开启此选项
14 | "experimentalDecorators": true,
15 | "emitDecoratorMetadata":true ,
16 | "lib": [ "es6", "dom" ],
17 |
18 | // 启用 vuex-class 需要开启此选项
19 | "strictFunctionTypes": false,
20 | "baseUrl":"./src/framework",
21 | "allowJs":true,
22 | "allowSyntheticDefaultImports":true,
23 |
24 |
25 |
26 | }
27 | }
28 |
--------------------------------------------------------------------------------