ws admin
1.0.0
개발 버전을 실행하려면:
npm start
및 npm run serve-production-proxy
프로덕션 빌드의 경우:
npm run build
조립된 전면의 파일은 현재 프로젝트의 build
폴더에 저장됩니다.
인터페이스를 사용하면 대화형 편집기에서 기사가 생성됩니다. 편집기에는 텍스트, 이미지 등 작업을 위한 다양한 옵션이 있습니다.
기사를 생성한 후에는 API를 통해 JSON 객체 형태로 받아볼 수 있게 됩니다.
편집기는 추가 기능이 맨 위에 있는 ckeditor5라는 타사 라이브러리입니다. 편집기 플러그인과 편집기 자체 및 해당 구성은 /src/primitives/Editor에 있습니다. 편집기 도구 모음의 모든 옵션은 플러그인이며 대부분 상자의 옵션이 사용되지만 사용자 정의 옵션도 있습니다.
title : Тестирование административной панели WS
roles :
- admin
- guest
- user
- content-manager
permissions :
allow :
- " * "
deny :
- guest
sideMenu :
dataSource :
type : list
options :
data :
- title : Список
code : testList
permissions :
allow :
- " * "
deny :
- guest
to : " /list "
- title : Вложенность
code : inDeep
permissions :
allow :
- " * "
deny :
- guest
to : " /deep "
- title : Детальная страница
code : detail
permissions :
allow :
- admin
deny :
- " * "
to : " /detail/1 "
screens :
- pageUrl : " /deep "
title : Тестирование блоков
blocks :
- name : TestBlock1
type : TestBlock
dataSource :
type : list
options :
data : test.name
blocks :
- name : TestBlock2
type : TestBlock
blocks : []
actions :
inc :
type : redirect
options :
url : " /user/{{login}} "
dataSource :
type : list
options :
data : получилось???
context1 : test.name
- pageUrl : " /list "
title : Тестирование административной панели WS
blocks :
- type : List
permissions :
allow :
- " * "
deny :
- guest
dataSource :
type : list
options :
data :
columns :
- title : Name
field : name
- title : Surname
field : surname
- title : Birth Year
field : birthYear
type : numeric
- title : Birth Place
field : birthCity
lookup :
' 34 ' : İstanbul
' 63 ' : Şanlıurfa
data :
- id : ' 11141 '
name : Mehmet
surname : Baran
birthYear : 1987
birthCity : 63
- name : Zerya Betül
surname : Baran
birthYear : 2017
birthCity : 34
actions :
view :
type : redirect
options :
url : " /user/{{login}} "
delete :
permissions :
allow :
- admin
deny :
- " * "
type : api:request
options :
url : " /api/admin/user/delete "
method : delete
params :
id : " {{id}} "
create :
permissions :
allow :
- " * "
deny :
- guest
type : api:request
options :
url : " /api/admin/user/create "
method : post
params :
id : " {{name}} "
update :
permissions :
allow :
- " * "
deny :
- guest
type : redirect
options :
url : admin/user/update/{{id}}
config :
pagination :
countOnPage : 20
- pageUrl : " /detail/:pageId "
title : Детальная страница пользователя
blocks :
- type : DetailView
dataSource :
type : api
options :
url : " /api/admin/user/{{pageId}} "
context : screen.user
actions :
delete :
permissions :
allow :
- admin
deny :
- " * "
type : api:request
options :
url : " /api/admin/user/delete "
method : get
params :
id : " {{screen.user.id}} "
update :
permissions :
allow :
- " * "
deny :
- guest
type : api:request
options :
url : " /api/admin/user/update "
method : post
params :
id : " {{id}} "
config :
fields :
- title : ' ФИО: '
type : Input
config :
validations :
- text
- length > 3
value : " {{screen.user.name}} "
- title : ' ФИО1: '
type : Input
config :
validations :
- text
- length > 3
value : " {{name2}} "
- title : ' Изображение профиля: '
type : ImageViewer
config :
multiFiles : false
validations :
- type:jpg,png
- sizeLessThen:10mb
value : https://jssors8.azureedge.net/demos/image-slider/img/faded-monaco-scenery-evening-dark-picjumbo-com-image.jpg
- title : ' Приглашен пользователем: '
type : Dropdown
value : " {{isInvitedBy}} "
dataSource :
alias : dpAllUsers
type : api
options :
url : " /api/admin/users "
config :
suggests :
dataSource :
type : list
options :
data : " {{dpAllUsers}} "