1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-07 13:46:42 +02:00

fix after merge

This commit is contained in:
Awilum
2021-09-22 15:53:35 +03:00
parent ffac09879d
commit f6e406f9a7
96 changed files with 0 additions and 6043 deletions

View File

@@ -1,108 +0,0 @@
title: Create new account
icon:
set: bootstrap
name: file-text
blocks:
- type: Container
properties:
breakpoint: medium
blocks:
- type: Row
blocks:
- type: Column
blocks:
- type: Form
properties:
name: form_account_add
process:
fields:
- name: id
properties:
type: string
- name: roles
properties:
type: string
- name: state
properties:
type: string
- name: password
properties:
type: string
messages:
error: "{{ __('admin_message_entries_api_token_was_not_updated') }}"
success: "{{ __('admin_message_entries_api_token_updated') }}"
redirect:
route: "admin.accounts.edit"
args:
id: "{{ query.id }}"
blocks:
- type: Row
properties:
class: mt-4 mb-4
blocks:
- type: Column
properties:
size: 6/12
blocks:
- type: Heading
properties:
size: large
id: title
value: "{{ __('accounts_admin_create_new_account') }}"
- type: Column
properties:
size: 6/12
class: d-flex align-items-center justify-content-end text-end
blocks:
- type: InputSubmit
properties:
type: primary
value: "{{ __('admin_create') }}"
- type: Row
blocks:
- type: Column
properties:
size: 3/12
blocks:
- type: InputEmail
properties:
name: id
label:
value: "{{ __('accounts_admin_email') }}"
validation:
required: true
pattern: '[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{1,63}$'
- type: Column
properties:
size: 3/12
blocks:
- type: InputPassword
properties:
name: password
label:
value: "{{ __('accounts_admin_password') }}"
validation:
required: true
pattern: '(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,}'
- type: Column
properties:
size: 3/12
blocks:
- type: Select2
properties:
name: state
value: enabled
items:
enabled: "{{ __('admin_enabled') }}"
disabled: "{{ __('admin_disabled') }}"
label:
value: "{{ __('admin_state') }}"
- type: Column
properties:
size: 3/12
blocks:
- type: Tagify
properties:
name: roles
label:
value: "{{ __('accounts_admin_roles') }}"

View File

@@ -1,29 +0,0 @@
title: Accounts Admin
icon:
set: bootstrap
name: file-text
blocks:
- type: Container
properties:
class: mt-4 mb-4
blocks:
- type: Row
blocks:
- type: Column
properties:
size: 6/12
blocks:
- type: Heading
properties:
size: large
value: "{{ __('accounts_admin_accounts') }}"
- type: Column
properties:
size: 6/12
class: d-flex align-items-center justify-content-end text-end
blocks:
- type: Anchor
properties:
value: "{{ __('admin_create') }}"
href: "{{ urlFor('admin.accounts.add') }}"
class: btn btn-primary

View File

@@ -1,159 +0,0 @@
title: Edit account
icon:
set: bootstrap
name: file-text
blocks:
- type: Container
properties:
breakpoint: medium
blocks:
- type: Row
blocks:
- type: Column
blocks:
- type: Form
properties:
name: form_account_edit
process:
fields:
- name: name
properties:
type: string
- name: bio
properties:
type: string
- name: location
properties:
type: string
- name: website
properties:
type: string
- name: roles
properties:
type: string
- name: state
properties:
type: string
- name: new_password
properties:
type: string
- name: id
properties:
type: string
value: "{{ query.id }}"
messages:
error: "{{ __('admin_message_entries_api_token_was_not_updated') }}"
success: "{{ __('admin_message_entries_api_token_updated') }}"
redirect:
route: "admin.accounts.edit"
args:
id: "{{ query.id }}"
blocks:
- type: Row
properties:
class: mt-4 mb-4
blocks:
- type: Column
properties:
size: 6/12
blocks:
- type: Heading
properties:
size: large
id: title
value: "{{ __('accounts_admin_edit_account') }}"
- type: Column
properties:
size: 6/12
class: d-flex align-items-center justify-content-end text-end
blocks:
- type: InputSubmit
properties:
type: primary
value: "{{ __('admin_save') }}"
- type: Row
blocks:
- type: Column
properties:
size: 6/12
blocks:
- type: Row
properties:
class: g-3
blocks:
- type: Column
properties:
size: 12
blocks:
- type: InputText
properties:
name: name
label:
value: "{{ __('accounts_admin_name') }}"
- type: Column
properties:
size: 12
blocks:
- type: InputTextarea
properties:
name: bio
rows: 8
label:
value: "{{ __('accounts_admin_bio') }}"
- type: Column
properties:
size: 6/12
blocks:
- type: Row
properties:
class: g-3
blocks:
- type: Column
properties:
size: 6/12
blocks:
- type: InputText
properties:
name: location
label:
value: "{{ __('accounts_admin_location') }}"
- type: Column
properties:
size: 6/12
blocks:
- type: InputText
properties:
name: website
label:
value: "{{ __('accounts_admin_website') }}"
- type: Column
properties:
size: 12
blocks:
- type: Tagify
properties:
name: roles
label:
value: "{{ __('accounts_admin_roles') }}"
- type: Column
properties:
size: 6/12
blocks:
- type: Select2
properties:
name: state
value: enabled
items:
enabled: "{{ __('admin_enabled') }}"
disabled: "{{ __('admin_disabled') }}"
label:
value: "{{ __('admin_state') }}"
- type: Column
properties:
size: 6/12
blocks:
- type: InputPassword
properties:
name: new_password
label:
value: "{{ __('accounts_admin_new_password') }}"

View File

@@ -1,83 +0,0 @@
title: Login
icon:
set: bootstrap
name: file-text
blocks:
- type: Container
properties:
breakpoint: medium
blocks:
- type: Row
blocks:
- type: Column
blocks:
- type: Form
properties:
name: form_account_login
process:
fields:
- name: id
properties:
type: string
- name: password
properties:
type: string
blocks:
- type: Row
properties:
class: mt-4 mb-4
blocks:
- type: Column
properties:
size: 4/12
style:
margin: 0 auto
blocks:
- type: Heading
properties:
size: large
id: title
value: "{{ __('accounts_admin_login') }}"
- type: Row
properties:
class: g-3 mt-2
blocks:
- type: Column
properties:
size: 12
blocks:
- type: InputEmail
properties:
name: id
validation:
required: true
pattern: '[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{1,63}$'
label:
value: "{{ __('accounts_admin_email') }}"
- type: Column
properties:
size: 12
blocks:
- type: InputPassword
properties:
name: password
validation:
required: true
pattern: '(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,}'
label:
value: "{{ __('accounts_admin_password') }}"
- type: Column
properties:
size: 12
class: mt-4
blocks:
- type: InputSubmit
properties:
name: submit
value: "{{ __('accounts_admin_login') }}"
- type: Anchor
properties:
class: btn btn-link
value: "{{ __('accounts_admin_forgot_password') }}"
href: "./reset-password"

View File

@@ -1,102 +0,0 @@
title: Registration
icon:
set: bootstrap
name: file-text
vars:
- name: version
type: string
value: "@parsers:twig; {{ registry().get('flextype.manifest.version') }}"
actions:
get:
- name: foo
properties:
vars:
- name: version
type: string
value: "@parsers:twig; {{ registry().get('flextype.manifest.version') }}"
emitter:
addListener:
- name: onAdminThemeTail
properties:
vars:
- name: version
type: string
value: "@parsers:twig; {{ registry().get('flextype.manifest.version') }}"
value: |
@parsers:twig;
Flextype: {{ version }}
blocks:
- type: Container
properties:
breakpoint: medium
blocks:
- type: Row
blocks:
- type: Column
blocks:
- type: Form
properties:
name: form_account_registration
process:
fields:
- name: id
properties:
type: string
- name: password
properties:
type: string
blocks:
- type: Row
properties:
class: mt-4 mb-4
blocks:
- type: Column
properties:
size: 4/12
style:
margin: 0 auto
blocks:
- type: Heading
properties:
size: large
id: title
value: "@parsers:twig;{{ __('accounts_admin_create_new_account') }} - {{ version }}"
- type: Row
properties:
class: g-3 mt-2
blocks:
- type: Column
properties:
size: 12
blocks:
- type: InputEmail
properties:
name: id
label:
value: "@parsers:twig;{{ __('accounts_admin_email') }}"
validation:
required: true
pattern: '[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{1,63}$'
help: "@parsers:twig;{{ __('accounts_admin_installation_email_tip') }}"
- type: Column
properties:
size: 12
blocks:
- type: InputPassword
properties:
name: password
label:
value: "@parsers:twig;{{ __('accounts_admin_password') }}"
validation:
required: true
pattern: '(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,}'
help: "@parsers:twig;{{ __('accounts_admin_installation_password_tip') }}"
- type: Column
properties:
size: 12
class: mt-4
blocks:
- type: InputSubmit
properties:
name: submit
value: "@parsers:twig;{{ __('accounts_admin_create') }}"

View File

@@ -1,70 +0,0 @@
title: Reset password
icon:
set: bootstrap
name: file-text
blocks:
- type: Container
properties:
breakpoint: medium
blocks:
- type: Row
blocks:
- type: Column
blocks:
- type: Form
properties:
name: form_account_reset_password
process:
fields:
- name: id
properties:
type: string
- name: password
properties:
type: string
blocks:
- type: Row
properties:
class: mt-4 mb-4
blocks:
- type: Column
properties:
size: 4/12
style:
margin: 0 auto
blocks:
- type: Heading
properties:
size: large
id: title
value: "{{ __('accounts_admin_reset_password') }}"
- type: Row
properties:
class: g-3 mt-2
blocks:
- type: Column
properties:
size: 12
blocks:
- type: InputEmail
properties:
name: id
validation:
required: true
pattern: '[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{1,63}$'
label:
value: "{{ __('accounts_admin_email') }}"
- type: Column
properties:
size: 12
class: mt-4
blocks:
- type: InputSubmit
properties:
name: submit
value: "{{ __('accounts_admin_reset') }}"
- type: Anchor
properties:
class: btn btn-link
value: "{{ __('accounts_admin_cancel') }}"
href: "./login"

View File

@@ -1,222 +0,0 @@
title: Account
icon:
set: bootstrap
name: people-circle
admin:
entries:
accounts:
account:
item:
emitter:
addListener:
- name: onAdminThemeTail
properties:
value: |
<form id="delete-entry-id-{{ entry.id }}" action="{{ urlFor('admin.entries.deleteProcess') }}" method="POST" style="display: none;">
{{ csrf() }}
<input type="hidden" name="id" value="{{ entry.id }}">
<input type="hidden" name="id-current" value="{{ query.id }}">
</form>
<form id="duplicate-entry-id-{{ entry.id }}" action="{{ urlFor('admin.entries.duplicateProcess') }}" method="POST" style="display: none;">
{{ csrf() }}
<input type="hidden" name="id" value="{{ entry.id }}">
</form>
blocks:
- type: Row
properties:
class: "m-0"
blocks:
- type: Column
properties:
size: 12
class: card
blocks:
- type: Row
properties:
class: d-flex align-items-center row-hover
blocks:
- type: Column
properties:
size: 1/12
class: p-2 text-center
blocks:
- type: Display
properties:
class: 'asd'
value: "{{ icon('person-circle', 'bootstrap') }}"
- type: Column
properties:
size: 10/12
blocks:
- type: Row
properties:
class: gy-2
blocks:
- type: Column
properties:
size: 5/12
class: p-2 px-3
blocks:
- type: Display
properties:
wrapper: div
style:
opacity: .4
value: "{{ __('Email') }}"
- type: Display
properties:
wrapper: div
value: "{{ strings(entry.id).lastSegment('/') }}"
- type: Column
properties:
size: 1/12
class: p-2 text-center
blocks:
- type: ActionsDropdown
properties:
items:
- href: "{{ urlFor('admin.entries.index') }}?id={{ entry.id }}"
value: "{{ __('View') }}"
visible: "{{ entry.has_children }}"
icon:
set: bootstrap
name: eye
- href: "{{ urlFor('admin.entries.edit') }}?id={{ entry.id }}"
value: "{{ __('admin_edit') }}"
icon:
set: bootstrap
name: pencil
- href: "{{ urlFor('admin.entries.add') }}?id={{ entry.id }}"
value: "{{ __('Add') }}"
icon:
set: bootstrap
name: plus-circle
- href: "#"
value: "{{ __('admin_duplicate') }}"
events:
onclick: "event.preventDefault(); document.getElementById('duplicate-content-id-{{ entry.id }}').submit();"
icon:
set: bootstrap
name: files
- href: "{{ urlFor('admin.entries.rename') }}?id={{ entry.id }}"
value: "{{ __('admin_rename') }}"
icon:
set: bootstrap
name: file-font
- href: "{{ urlFor('admin.entries.move') }}?id={{ entry.id }}"
value: "{{ __('admin_move') }}"
icon:
set: bootstrap
name: arrow-right-square
- href: "#"
events:
onclick: "confirmationEntryDelete(event, '{{ entry.id }}');"
value: "{{ __('admin_delete') }}"
icon:
set: bootstrap
name: trash
edit:
blocks:
- type: Container
properties:
breakpoint: medium
blocks:
- type: Row
blocks:
- type: Column
blocks:
- type: Form
properties:
name: form_account_add
process:
fields:
- name: id
properties:
type: string
- name: roles
properties:
type: string
- name: state
properties:
type: string
- name: password
properties:
type: string
messages:
error: "{{ __('admin_message_entries_api_token_was_not_updated') }}"
success: "{{ __('admin_message_entries_api_token_updated') }}"
redirect:
route: "admin.accounts.edit"
args:
id: "{{ query.id }}"
blocks:
- type: Row
properties:
class: mt-4 mb-4
blocks:
- type: Column
properties:
size: 6/12
blocks:
- type: Heading
properties:
size: large
id: title
value: "{{ __('accounts_admin_create_new_account') }}"
- type: Column
properties:
size: 6/12
class: d-flex align-items-center justify-content-end text-end
blocks:
- type: InputSubmit
properties:
type: primary
value: "{{ __('admin_create') }}"
- type: Row
blocks:
- type: Column
properties:
size: 3/12
blocks:
- type: InputEmail
properties:
name: id
label:
value: "{{ __('accounts_admin_email') }}"
validation:
required: true
pattern: '[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{1,63}$'
- type: Column
properties:
size: 3/12
blocks:
- type: InputPassword
properties:
name: password
label:
value: "{{ __('accounts_admin_password') }}"
validation:
required: true
pattern: '(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,}'
- type: Column
properties:
size: 3/12
blocks:
- type: Select2
properties:
name: state
value: enabled
items:
enabled: "{{ __('admin_enabled') }}"
disabled: "{{ __('admin_disabled') }}"
label:
value: "{{ __('admin_state') }}"
- type: Column
properties:
size: 3/12
blocks:
- type: Tagify
properties:
name: roles
label:
value: "{{ __('accounts_admin_roles') }}"

View File

@@ -1,125 +0,0 @@
title: Default
icon:
set: bootstrap
name: file-text
vars:
- name: foo
value: "@parsers:twig; {{ urlFor('admin.entries.deleteProcess') }}"
emitter:
addListener:
- name: onAdminThemeTail
properties:
vars:
- name: boo
value: "boo"
value: |
@parsers:twig;
1. {{ foo }}
2. {{ boo }}
<form id="delete-entry-id-{{ entry.id }}" action="{{ urlFor('admin.entries.deleteProcess') }}" method="POST" style="display: none;">
{{ csrf() }}
<input type="hidden" name="id" value="{{ entry.id }}">
<input type="hidden" name="id-current" value="{{ query.id }}">
</form>
<form id="duplicate-entry-id-{{ entry.id }}" action="{{ urlFor('admin.entries.duplicateProcess') }}" method="POST" style="display: none;">
{{ csrf() }}
<input type="hidden" name="id" value="{{ entry.id }}">
</form>
blocks:
- type: Row
properties:
class: "m-0"
blocks:
- type: Column
properties:
size: 12
class: card
blocks:
- type: Row
properties:
class: d-flex align-items-center row-hover
blocks:
- type: Column
properties:
size: 1/12
class: p-2 text-center
blocks:
- type: Display
properties:
value: |
@parsers:twig,markdown,shortcode;
**Email:** {{ acl().getUserLoggedInEmail() }}
**Url:** [url]
{#{ icon('person-circle', 'bootstrap') }#}"
- type: Column
properties:
size: 10/12
blocks:
- type: Row
properties:
class: gy-2
blocks:
- type: Column
properties:
size: 5/12
class: p-2 px-3
blocks:
- type: Display
properties:
wrapper: div
style:
opacity: .4
value: |
@twig
- type: Display
properties:
wrapper: div
value: "{{ urlFor('admin.entries.index') }}?id={{ entry.id }}"
- type: Column
properties:
size: 1/12
class: p-2 text-center
blocks:
- type: ActionsDropdown
properties:
items:
- href: "@twig {{ urlFor('admin.entries.index') }}?id={{ entry.id }}"
value: "@twig: {{ __('View') }}"
visible: "@twig {{ entry.has_children }}"
icon:
set: bootstrap
name: eye
- href: "@twig {{ urlFor('admin.entries.edit') }}?id={{ entry.id }}"
value: "@twig {{ __('admin_edit') }}"
icon:
set: bootstrap
name: pencil
- href: "@twig {{ urlFor('admin.entries.add') }}?id={{ entry.id }} @endtwig"
value: "@twig {{ __('Add') }}"
icon:
set: bootstrap
name: plus-circle
- href: "#"
value: "@twig {{ __('admin_duplicate') }}"
events:
onclick: "@twig event.preventDefault(); document.getElementById('duplicate-content-id-{{ entry.id }}').submit();"
icon:
set: bootstrap
name: files
- href: "@twig {{ urlFor('admin.entries.rename') }}?id={{ entry.id }}"
value: "@twig {{ __('admin_rename') }}"
icon:
set: bootstrap
name: file-font
- href: "@twig {{ urlFor('admin.entries.move') }}?id={{ entry.id }}"
value: "@twig {{ __('admin_move') }}"
icon:
set: bootstrap
name: arrow-right-square
- href: "#"
events:
onclick: "@twig confirmationEntryDelete(event, '{{ entry.id }}');"
value: "@twig {{ __('admin_delete') }}"
icon:
set: bootstrap
name: trash

View File

@@ -1,90 +0,0 @@
title: Move entry
icon:
set: bootstrap
name: file-alt
blocks:
- type: Container
properties:
class: mt-4
blocks:
- type: Row
properties:
class: justify-content-center
blocks:
- type: Column
properties:
size: 6/12
blocks:
- type: Heading
properties:
size: large
value: "{{ __('admin_entries_move') }}"
class: mb-4
- type: Form
properties:
name: form_entries_move
process:
fields:
- name: id
properties:
type: string
value: "{{ query.id }}"
- name: entry_current_id
properties:
type: string
value: "{{ entryCurrentID }}"
- name: entry_parent_id
properties:
type: string
value: "{{ entryParentID }}"
- name: from
properties:
type: string
- name: to
properties:
type: string
messages:
error: "{{ __('admin_message_entries_was_not_moved') }}"
success: "{{ __('admin_message_entries_moved') }}"
redirect:
route: admin.entries.index
args:
id: "{{ _form.registry.data.to }}"
blocks:
- type: Row
properties:
class: g-3
blocks:
- type: Column
properties:
size: 12
blocks:
- type: InputText
properties:
name: from
value: "{{ entryParentID }}"
label:
value: "{{ __('admin_from') }}"
disabled: true
- type: Column
properties:
size: 12
blocks:
- type: Select2
properties:
name: to
items: "{{ serializers().json.encode(entries) }}"
label:
value: "{{ __('admin_to') }}"
- type: Column
properties:
size: 12
class: pt-2
blocks:
- type: InputSubmit
properties:
name: submit_form_entries_create
type: primary
value: "{{ __('admin_move') }}"
class: js-submit-entry-move-form

View File

@@ -1,72 +0,0 @@
title: Rename entry
icon:
set: bootstrap
name: file-alt
blocks:
- type: Container
properties:
class: mt-4
blocks:
- type: Row
properties:
class: justify-content-center
blocks:
- type: Column
properties:
size: 6/12
blocks:
- type: Heading
properties:
size: large
value: "{{ __('admin_rename_entry') }}"
class: mb-4
- type: Form
properties:
name: form_entries_rename
process:
fields:
- name: id
properties:
type: string
value: "{{ query.id }}"
- name: new_id
properties:
type: string
value: |
{% if registry().get('plugins.admin.settings.entries.slugify') %}
{{ (strings(query.id).contains('/') ? arraysFromString(query.id, '/').slice(0, -1).toString('/') : query.id) ~ '/' ~ flextype.slugify.slugify(_form.registry.data.name) }}
{% else %}
{{ (strings(query.id).contains('/') ? arraysFromString(query.id, '/').slice(0, -1).toString('/') : query.id) ~ '/' ~ _form.registry.data.name }}
{% endif %}
messages:
error: "{{ __('admin_message_entries_was_not_renamed') }}"
success: "{{ __('admin_message_entries_renamed') }}"
redirect:
route: admin.entries.index
args:
id: "{{ (strings(query.id).contains('/') ? arraysFromString(query.id, '/').slice(0, -1).toString('/') : query.id) }}"
blocks:
- type: Column
properties:
size: 12
blocks:
- type: InputText
properties:
name: name
label:
value: "{{ __('admin_name') }}"
help: "{{ __('admin_help_text_for_entries_name') }}"
value: "{{ arraysFromString(query.id, '/').last() }}"
validation:
required: true
minlength: 1
errorMessage: "{{ __('admin_error_name_empty_input') }}"
- type: Column
properties:
size: 12
class: pt-4
blocks:
- type: InputSubmit
properties:
type: primary
value: "{{ __('admin_rename') }}"

View File

@@ -1,4 +0,0 @@
title: Accounts
icon:
set: bootstrap
name: file-text

View File

@@ -1,29 +0,0 @@
title: Accounts
icon:
set: bootstrap
name: file-text
blocks:
- type: Container
properties:
class: mt-4 mb-4
blocks:
- type: Row
blocks:
- type: Column
properties:
size: 6/12
blocks:
- type: Heading
properties:
size: large
value: "{{ __('Accounts') }}"
- type: Column
properties:
size: 6/12
class: d-flex align-items-center justify-content-end text-end
blocks:
- type: Anchor
properties:
value: "{{ __('Create new account') }}"
href: "{{ urlFor('admin.entries.add', {}, {'id': query.id}) }}"
class: btn btn-primary

View File

@@ -1,126 +0,0 @@
title: Default
icon:
set: bootstrap
name: file-text
emitter:
addListener:
- name: onAdminThemeTail
properties:
value: |
<form id="delete-entry-id-{{ entry.id }}" action="{{ urlFor('admin.entries.deleteProcess') }}" method="POST" style="display: none;">
{{ csrf() }}
<input type="hidden" name="id" value="{{ entry.id }}">
<input type="hidden" name="id-current" value="{{ query.id }}">
</form>
<form id="duplicate-entry-id-{{ entry.id }}" action="{{ urlFor('admin.entries.duplicateProcess') }}" method="POST" style="display: none;">
{{ csrf() }}
<input type="hidden" name="id" value="{{ entry.id }}">
</form>
blocks:
- type: Row
properties:
class: "m-0 {{ urlFor('admin.entries.deleteProcess') }}"
blocks:
- type: Column
properties:
size: 12
class: card
blocks:
- type: Row
properties:
class: d-flex align-items-center row-hover
blocks:
- type: Column
properties:
size: 1/12
class: p-2 text-center
blocks:
- type: Display
properties:
value: "{{ icon('person-circle', 'bootstrap') }}"
- type: Column
properties:
size: 10/12
blocks:
- type: Row
properties:
class: gy-2
blocks:
- type: Column
properties:
size: 2/12
class: p-2 px-3
blocks:
- type: Display
properties:
wrapper: div
style:
opacity: .4
value: "{{ __('title') }}"
- type: Display
properties:
wrapper: div
value: "{{ entry.title }}"
- type: Column
properties:
size: 2/12
class: p-2 px-3
blocks:
- type: Display
properties:
wrapper: div
style:
opacity: .4
value: "{{ __('id') }}"
- type: Display
properties:
wrapper: div
value: "{{ entry.id }}"
- type: Column
properties:
size: 1/12
class: p-2 text-center
blocks:
- type: ActionsDropdown
properties:
items:
- href: "{{ urlFor('admin.entries.index') }}?id={{ entry.id }}"
value: "{{ __('View') }}"
visible: "{{ entry.has_children }}"
icon:
set: bootstrap
name: eye
- href: "{{ urlFor('admin.entries.edit') }}?id={{ entry.id }}"
value: "{{ __('admin_edit') }}"
icon:
set: bootstrap
name: pencil
- href: "{{ urlFor('admin.entries.add') }}?id={{ entry.id }}"
value: "{{ __('Add') }}"
icon:
set: bootstrap
name: plus-circle
- href: "#"
value: "{{ __('admin_duplicate') }}"
events:
onclick: "event.preventDefault(); document.getElementById('duplicate-content-id-{{ entry.id }}').submit();"
icon:
set: bootstrap
name: files
- href: "{{ urlFor('admin.entries.rename') }}?id={{ item.id }}"
value: "{{ __('admin_rename') }}"
icon:
set: bootstrap
name: file-font
- href: "{{ urlFor('admin.entries.move') }}?id={{ item.id }}"
value: "{{ __('admin_move') }}"
icon:
set: bootstrap
name: arrow-right-square
- href: "#"
events:
onclick: "confirmationEntryDelete(event, '{{ entry.id }}');"
value: "{{ __('admin_delete') }}"
icon:
set: bootstrap
name: trash

View File

@@ -1,29 +0,0 @@
title: Entries
icon:
set: bootstrap
name: file-text
blocks:
- type: Container
properties:
class: mt-4 mb-4
blocks:
- type: Row
blocks:
- type: Column
properties:
size: 6/12
blocks:
- type: Heading
properties:
size: large
value: "@parsers:twig; {{ __('admin_entries') }}"
- type: Column
properties:
size: 6/12
class: d-flex align-items-center justify-content-end text-end
blocks:
- type: Anchor
properties:
value: "{{ __('Create new entry') }}"
href: "{{ urlFor('admin.entries.add', [], {'id': query.id}) }}"
class: btn btn-primary

View File

@@ -1,229 +0,0 @@
title: Create new entry
icon:
set: bootstrap
name: file-text
emitter:
addListener:
- name: onAdminThemeTail
properties:
value: |
<script>
$('.js-submit-entry-create-form').click(function () {
$("input[name=redirect]").val($(this).data('redirect'));
$("input[name=submit_form_entries_create]").click();
});
{% if registry().get('plugins.admin.settings.entries.slugify') %}
$("input[name=title]").on("keyup change", function () {
$("input[name=name]").val(getSlug($("input[name=title]").val()));
});
{% else %}
$("input[name=title]").on("keyup change", function () {
$("input[name=name]").val($("input[name=title]").val()));
});
{% endif %}
</script>
blocks:
- type: Container
properties:
breakpoint: medium
blocks:
- type: Row
blocks:
- type: Column
blocks:
- type: Form
properties:
name: form_entries_create
process:
fields:
- name: title
properties:
type: string
- name: id
properties:
type: string
value: |
{% if registry().get('plugins.admin.settings.entries.slugify') %}
{{ strings(query.id ~ '/' ~ flextype.slugify.slugify(_form.registry.data.name)).trimLeft('/') }}
{% else %}
{{ strings(query.id ~ '/' ~ _form.registry.data.name).trimLeft('/') }}
{% endif %}
- name: routable
properties:
type: bool
- name: visibility
properties:
type: string
- name: blueprint
properties:
type: string
- name: published_at
properties:
type: string
- name: publised_by
properties:
type: string
value: "{{ acl().getUserLoggedInUuid() }}"
- name: created_by
properties:
type: string
value: "{{ acl().getUserLoggedInUuid() }}"
- name: template
properties:
type: string
ignore: "{{ registry().has('plugins.site') ? false : true }}"
value: |
@parsers:twig;
{% if registry().has('plugins.site') %}
{% if filesystem().file(PATH_PROJECT ~ '/themes/' ~ registry().get('plugins.site.settings.theme') ~ '/templates/' ~ _form.registry.data.blueprint ~ '.html').exists() %}
{{ _form.registry.data.blueprint }}
{% else %}
default
{% endif %}
{% endif %}
messages:
error: "{{ __('admin_message_entries_was_not_created') }}"
success: "{{ __('admin_message_entries_created') }}"
redirect:
route: |
@parsers:twig;
{% if _form.registry.data.redirect == 'index' %}
admin.entries.index
{% elseif _form.registry.data.redirect == 'edit' %}
admin.entries.edit
{% elseif _form.registry.data.redirect == 'add' %}
admin.entries.add
{% endif %}
args:
id: "{{ (_form.registry.data.redirect == 'add' or _form.registry.data.redirect == 'index') ? query.id : (strings(query.id).contains('/') ? arraysFromString(query.id, '/').slice(0, -1).toString('/') : query.id) ~ '/' ~ _form.registry.data.name }}"
blocks:
- type: Row
properties:
class: mt-4 mb-4
blocks:
- type: Column
properties:
size: 6/12
blocks:
- type: Heading
properties:
size: large
value: "{{ __('admin_create_new_content') }}"
- type: Column
properties:
size: 6/12
class: d-flex align-items-center justify-content-end text-end
blocks:
- type: InputSubmit
properties:
name: submit_form_entries_create
style:
display: none
- type: ButtonGroup
properties:
buttons:
- type: Button
properties:
value: "{{ __('admin_create') }}"
class: js-submit-entry-create-form
data:
redirect: index
- type: ButtonToggle
properties:
type: secondary
value: "{{ __('admin_create_and_edit') }}"
items:
- href: "#"
value: "{{ __('admin_create_and_edit') }}"
class: js-submit-entry-create-form
data:
redirect: edit
- href: "#"
value: "{{ __('admin_create_and_add') }}"
class: js-submit-entry-create-form
data:
redirect: add
- type: InputHidden
properties:
name: current_id
value: "{{ query.id }}"
- type: InputHidden
properties:
name: redirect
- type: Row
properties:
class: g-3
blocks:
- type: Column
properties:
size: 6/12
blocks:
- type: InputText
properties:
name: title
label:
value: "{{ __('admin_title') }}"
class: js-title
help: "{{ __('admin_help_text_for_entries_label') }}"
validation:
required: true
minlength: 1
errorMessage: "{{ __('admin_error_title_empty_input') }}"
- type: Column
properties:
size: 6/12
blocks:
- type: InputText
properties:
name: name
label:
value: "{{ __('admin_name') }}"
class: js-name
help: "{{ __('admin_help_text_for_entries_name') }}"
validation:
required: true
minlength: 1
errorMessage: "{{ __('admin_error_name_empty_input') }}"
- type: Column
properties:
size: 3/12
blocks:
- type: Select2
properties:
name: routable
value: true
items: "{{ serializers().json.encode(routable) }}"
label:
value: "{{ __('admin_routable') }}"
- type: Column
properties:
size: 3/12
blocks:
- type: Select2
properties:
name: visibility
value: visible
items: "{{ serializers().json.encode(visibility) }}"
label:
value: "{{ __('admin_visibility') }}"
- type: Column
properties:
size: 3/12
blocks:
- type: Select2
properties:
name: blueprint
items: "{{ serializers().json.encode(blueprints) }}"
label:
value: "{{ __('admin_blueprint') }}"
- type: Column
properties:
size: 3/12
blocks:
- type: Flatpickr
properties:
name: published_at
label:
value: "{{ __('admin_published_at') }}"

View File

@@ -1,249 +0,0 @@
title: Default
icon:
set: bootstrap
name: file-text
blocks:
- type: Container
properties:
breakpoint: medium
blocks:
- type: Row
blocks:
- type: Column
blocks:
- type: Form
properties:
name: form_entries_edit
process:
fields:
- name: id
properties:
type: string
value: "{{ query.id }}"
- name: title
properties:
type: string
- name: content
properties:
type: string
- name: description
properties:
type: string
- name: routable
properties:
type: bool
- name: visibility
properties:
type: string
- name: published_at
properties:
type: string
- name: source
properties:
type: string
- name: template
properties:
ignore: "{{ registry().has('plugins.site') ? false : true }}"
type: string
- name: menu_item_title
properties:
type: string
- name: menu_item_url
properties:
type: string
- name: menu_item_target
properties:
type: string
- name: menu_item_order
properties:
type: int
messages:
error: "{{ __('admin_message_entries_changes_not_saved') }}"
success: "{{ __('admin_message_entries_changes_saved') }}"
redirect:
route: admin.entries.edit
args:
id: "{{ query.id }}"
blocks:
- type: Row
properties:
class: mt-4 mb-4
blocks:
- type: Column
properties:
size: 6/12
blocks:
- type: Heading
properties:
size: large
id: title
value: "{{ __('admin_edit_content') }}"
- type: Column
properties:
size: 6/12
class: d-flex align-items-center justify-content-end text-end
blocks:
- type: InputSubmit
properties:
type: primary
class: js-submit-entries-form-editor
value: "{{ __('admin_save') }}"
id: submit
- type: Tabs
properties:
tabs:
main:
title: "{{ __('admin_main') }}"
blocks:
- type: Row
blocks:
- type: Column
properties:
size: 12
class: mb-3 mt-3
blocks:
- type: InputText
properties:
name: title
label:
value: "{{ __('admin_title') }}"
- type: Column
properties:
size: 12
class: mb-3
blocks:
- type: Trumbowyg
properties:
name: content
label:
value: "{{ __('admin_entries') }}"
options:
btns:
- strong
- em
- del
- link
- insertImage
- viewHTML
settings:
title: "{{ __('admin_settings') }}"
blocks:
- type: Row
blocks:
- type: Column
properties:
size: 12
class: mb-3 mt-3
blocks:
- type: Heading
properties:
value: "{{ __('admin_general') }}"
- type: Column
properties:
size: 12
class: mb-3
blocks:
- type: InputTextarea
properties:
name: description
validation:
required: true
rows: 3
label:
value: "{{ __('admin_description') }}"
- type: Column
properties:
size: 3/12
class: mb-3
blocks:
- type: Select2
properties:
name: template
label:
value: "{{ __('admin_template') }}"
items: "{{ serializers().json.encode(templates) }}"
- type: Column
properties:
size: 3/12
class: mb-3
blocks:
- type: Select2
properties:
name: routable
label:
value: "{{ __('admin_routable') }}"
items: "{{ serializers().json.encode(routable) }}"
- type: Column
properties:
size: 3/12
class: mb-3
blocks:
- type: Select2
properties:
name: visibility
label:
value: "{{ __('admin_visibility') }}"
items: "{{ serializers().json.encode(visibility) }}"
- type: Column
properties:
size: 3/12
class: mb-3
blocks:
- type: Flatpickr
properties:
name: published_at
label:
value: "{{ __('admin_published_at') }}"
- type: Row
blocks:
- type: Column
properties:
size: 12
class: mb-3 mt-3
blocks:
- type: Heading
properties:
value: "{{ __('admin_menu') }}"
- type: Column
properties:
size: 3/12
class: mb-3
blocks:
- type: InputText
properties:
name: menu_item_title
label:
value: "{{ __('admin_menu_item_title') }}"
- type: Column
properties:
size: 3/12
class: mb-3
blocks:
- type: InputText
properties:
name: menu_item_url
label:
value: "{{ __('admin_menu_item_url') }}"
- type: Column
properties:
size: 3/12
class: mb-3
blocks:
- type: Select2
properties:
name: menu_item_target
label:
value: "{{ __('admin_menu_item_target') }}"
items: { _self: _self, _blank: _blank, _parent: _parent, _top: _top }
- type: Column
properties:
size: 3/12
class: mb-3
blocks:
- type: InputNumber
properties:
name: menu_item_order
label:
value: "{{ __('admin_menu_item_order') }}"
value: 1

View File

@@ -1,29 +0,0 @@
title: Entries
icon:
set: bootstrap
name: file-text
blocks:
- type: Container
properties:
class: mt-4 mb-4
blocks:
- type: Row
blocks:
- type: Column
properties:
size: 6/12
blocks:
- type: Heading
properties:
size: large
value: "{{ __('admin_entries') }}"
- type: Column
properties:
size: 6/12
class: d-flex align-items-center justify-content-end text-end
blocks:
- type: Anchor
properties:
value: "{{ __('Create new entry') }}"
href: "{{ urlFor('admin.entries.add', {}, {'id': query.id}) }}"
class: btn btn-primary

View File

@@ -1,126 +0,0 @@
title: Default
icon:
set: bootstrap
name: file-text
emitter:
addListener:
- name: onAdminThemeTail
properties:
value: |
<form id="delete-entry-id-{{ entry.id }}" action="{{ urlFor('admin.entries.deleteProcess') }}" method="POST" style="display: none;">
{{ csrf() }}
<input type="hidden" name="id" value="{{ entry.id }}">
<input type="hidden" name="id-current" value="{{ query.id }}">
</form>
<form id="duplicate-entry-id-{{ entry.id }}" action="{{ urlFor('admin.entries.duplicateProcess') }}" method="POST" style="display: none;">
{{ csrf() }}
<input type="hidden" name="id" value="{{ entry.id }}">
</form>
blocks:
- type: Row
properties:
class: m-0
blocks:
- type: Column
properties:
size: 12
class: card
blocks:
- type: Row
properties:
class: d-flex align-items-center row-hover
blocks:
- type: Column
properties:
size: 1/12
class: p-2 text-center
blocks:
- type: Display
properties:
value: "{{ icon('file-text', 'bootstrap') }}"
- type: Column
properties:
size: 10/12
blocks:
- type: Row
properties:
class: gy-2
blocks:
- type: Column
properties:
size: 2/12
class: p-2 px-3
blocks:
- type: Display
properties:
wrapper: div
style:
opacity: .4
value: "{{ __('title') }}"
- type: Display
properties:
wrapper: div
value: "{{ entry.title }}"
- type: Column
properties:
size: 2/12
class: p-2 px-3
blocks:
- type: Display
properties:
wrapper: div
style:
opacity: .4
value: "{{ __('id') }}"
- type: Display
properties:
wrapper: div
value: "{{ entry.id }}"
- type: Column
properties:
size: 1/12
class: p-2 text-center
blocks:
- type: ActionsDropdown
properties:
items:
- href: "{{ urlFor('admin.entries.index') }}?id={{ entry.id }}"
value: "{{ __('View') }}"
visible: "{{ entry.has_children }}"
icon:
set: bootstrap
name: eye
- href: "{{ urlFor('admin.entries.edit') }}?id={{ entry.id }}"
value: "{{ __('admin_edit') }}"
icon:
set: bootstrap
name: pencil
- href: "{{ urlFor('admin.entries.add') }}?id={{ entry.id }}"
value: "{{ __('Add') }}"
icon:
set: bootstrap
name: plus-circle
- href: "#"
value: "{{ __('admin_duplicate') }}"
events:
onclick: "event.preventDefault(); document.getElementById('duplicate-content-id-{{ entry.id }}').submit();"
icon:
set: bootstrap
name: files
- href: "{{ urlFor('admin.entries.rename') }}?id={{ item.id }}"
value: "{{ __('admin_rename') }}"
icon:
set: bootstrap
name: file-font
- href: "{{ urlFor('admin.entries.move') }}?id={{ item.id }}"
value: "{{ __('admin_move') }}"
icon:
set: bootstrap
name: arrow-right-square
- href: "#"
events:
onclick: "confirmationEntryDelete(event, '{{ entry.id }}');"
value: "{{ __('admin_delete') }}"
icon:
set: bootstrap
name: trash

View File

@@ -1,90 +0,0 @@
title: Move entry
icon:
set: bootstrap
name: file-alt
blocks:
- type: Container
properties:
class: mt-4
blocks:
- type: Row
properties:
class: justify-content-center
blocks:
- type: Column
properties:
size: 6/12
blocks:
- type: Heading
properties:
size: large
value: "{{ __('admin_entries_move') }}"
class: mb-4
- type: Form
properties:
name: form_entries_move
process:
fields:
- name: id
properties:
type: string
value: "{{ query.id }}"
- name: entry_current_id
properties:
type: string
value: "{{ entryCurrentID }}"
- name: entry_parent_id
properties:
type: string
value: "{{ entryParentID }}"
- name: from
properties:
type: string
- name: to
properties:
type: string
messages:
error: "{{ __('admin_message_entries_was_not_moved') }}"
success: "{{ __('admin_message_entries_moved') }}"
redirect:
route: admin.entries.index
args:
id: "{{ _form.registry.data.to }}"
blocks:
- type: Row
properties:
class: g-3
blocks:
- type: Column
properties:
size: 12
blocks:
- type: InputText
properties:
name: from
value: "{{ entryParentID }}"
label:
value: "{{ __('admin_from') }}"
disabled: true
- type: Column
properties:
size: 12
blocks:
- type: Select2
properties:
name: to
items: "{{ serializers().json.encode(entries) }}"
label:
value: "{{ __('admin_to') }}"
- type: Column
properties:
size: 12
class: pt-2
blocks:
- type: InputSubmit
properties:
name: submit_form_entries_create
type: primary
value: "{{ __('admin_move') }}"
class: js-submit-entry-move-form

View File

@@ -1,72 +0,0 @@
title: Rename entry
icon:
set: bootstrap
name: file-alt
blocks:
- type: Container
properties:
class: mt-4
blocks:
- type: Row
properties:
class: justify-content-center
blocks:
- type: Column
properties:
size: 6/12
blocks:
- type: Heading
properties:
size: large
value: "{{ __('admin_rename_content') }}"
class: mb-4
- type: Form
properties:
name: form_entries_rename
process:
fields:
- name: id
properties:
type: string
value: "{{ query.id }}"
- name: new_id
properties:
type: string
value: |
{% if registry().get('plugins.admin.settings.entries.slugify') %}
{{ (strings(query.id).contains('/') ? arraysFromString(query.id, '/').slice(0, -1).toString('/') : query.id) ~ '/' ~ flextype.slugify.slugify(_form.registry.data.name) }}
{% else %}
{{ (strings(query.id).contains('/') ? arraysFromString(query.id, '/').slice(0, -1).toString('/') : query.id) ~ '/' ~ _form.registry.data.name }}
{% endif %}
messages:
error: "{{ __('admin_message_entries_was_not_renamed') }}"
success: "{{ __('admin_message_entries_renamed') }}"
redirect:
route: admin.entries.index
args:
id: "{{ (strings(query.id).contains('/') ? arraysFromString(query.id, '/').slice(0, -1).toString('/') : query.id) }}"
blocks:
- type: Column
properties:
size: 12
blocks:
- type: InputText
properties:
name: name
label:
value: "{{ __('admin_name') }}"
help: "{{ __('admin_help_text_for_entries_name') }}"
value: "{{ arraysFromString(query.id, '/').last() }}"
validation:
required: true
minlength: 1
errorMessage: "{{ __('admin_error_name_empty_input') }}"
- type: Column
properties:
size: 12
class: pt-4
blocks:
- type: InputSubmit
properties:
type: primary
value: "{{ __('admin_rename') }}"

View File

@@ -1,30 +0,0 @@
title: Plugin
type: plugins
icon:
set: bootstrap
name: file-text
blocks:
- type: Container
properties:
class: mt-4 mb-4
blocks:
- type: Row
blocks:
- type: Column
properties:
size: 6/12
blocks:
- type: Heading
properties:
size: large
value: "{{ __('admin_plugins') }}"
- type: Column
properties:
size: 6/12
class: d-flex align-items-center justify-content-end text-end
blocks:
- type: Anchor
properties:
value: "{{ __('admin_get_more_plugins') }}"
href: "https://flextype.org/downloads/extend/plugins"
class: btn btn-primary

View File

@@ -1,20 +0,0 @@
title: Plugin Information
type: plugins
icon:
set: bootstrap
name: file-text
blocks:
- type: Container
properties:
class: mt-4 mb-4
blocks:
- type: Row
blocks:
- type: Column
properties:
size: 6/12
blocks:
- type: Heading
properties:
size: large
value: "{{ __('admin_information') }}"

View File

@@ -1,68 +0,0 @@
title: Plugin Settings
type: plugins
icon:
set: bootstrap
name: file-text
blocks:
- type: Container
properties:
breakpoint: medium
blocks:
- type: Row
blocks:
- type: Column
blocks:
- type: Form
properties:
name: form_settings
process:
fields:
- name: settings
properties:
type: string
- name: id
properties:
type: string
value: "{{ query.id }}"
messages:
error: "{{ __('admin_message_settings_was_not_saved') }}"
success: "{{ __('admin_message_settings_saved') }}"
redirect:
route: admin.settings.index
blocks:
- type: Row
properties:
class: mt-4 mb-4
blocks:
- type: Column
properties:
size: 6/12
blocks:
- type: Heading
properties:
size: large
id: title
value: "{{ __('admin_settings') }}"
- type: Column
properties:
size: 6/12
class: d-flex align-items-center justify-content-end text-end
blocks:
- type: InputSubmit
properties:
type: primary
value: "{{ __('admin_save') }}"
id: submit
- type: Row
blocks:
- type: Column
properties:
size: 12
blocks:
- type: Codemirror
properties:
name: settings
value: "{{ settings }}"
options:
mode: yaml

View File

@@ -1,209 +0,0 @@
title: Create new token
icon:
set: bootstrap
name: file-text
emitter:
addListener:
- name: onAdminThemeTail
properties:
value: |
<script>
$('.js-submit-token-create-form').click(function () {
$("input[name=redirect]").val($(this).data('redirect'));
$("input[name=submit_form_token_create]").click();
});
</script>
blocks:
- type: Container
properties:
breakpoint: medium
blocks:
- type: Row
blocks:
- type: Column
blocks:
- type: Form
properties:
name: form_token_create
process:
fields:
- name: title
properties:
type: string
- name: limit_calls
properties:
type: int
- name: icon.name
properties:
type: string
- name: icon.set
properties:
type: string
- name: state
properties:
type: string
- name: calls
properties:
type: int
value: 0
- name: api
properties:
type: string
value: "{{ query.api }}"
- name: created_at
properties:
type: string
value: "{{ time }}"
- name: created_by
properties:
type: string
value: "{{ acl().getUserLoggedInUuid() }}"
- name: uuid
properties:
type: string
value: "{{ uuid }}"
messages:
error: "{{ __('admin_message_entries_api_token_was_not_created') }}"
success: "{{ __('admin_message_entries_api_token_created') }}"
redirect:
route: |
{% if _form.registry.data.redirect == 'index' %}
admin.api.tokens
{% elseif _form.registry.data.redirect == 'edit' %}
admin.api.edit
{% elseif _form.registry.data.redirect == 'add' %}
admin.api.add
{% endif %}
args:
api: "{{ query.api }}"
blocks:
- type: Row
properties:
class: mt-4 mb-4
blocks:
- type: Column
properties:
size: 6/12
blocks:
- type: Heading
properties:
size: large
id: title
value: "{{ __('admin_create_new_token') }}"
- type: Column
properties:
size: 6/12
class: d-flex align-items-center justify-content-end text-end
blocks:
- type: InputSubmit
properties:
name: submit_form_token_create
style:
display: none
- type: ButtonGroup
properties:
buttons:
- type: Button
properties:
value: "{{ __('admin_create') }}"
class: js-submit-token-create-form
data:
redirect: index
- type: ButtonToggle
properties:
type: secondary
value: "{{ __('admin_create_and_edit') }}"
items:
- href: "#"
value: "{{ __('admin_create_and_edit') }}"
class: js-submit-token-create-form
data:
redirect: edit
- href: "#"
value: "{{ __('admin_create_and_add') }}"
class: js-submit-token-create-form
data:
redirect: add
- type: Row
properties:
class: g-3
blocks:
- type: Column
properties:
size: 12
blocks:
- type: InputHidden
properties:
name: redirect
- type: InputText
properties:
name: title
label:
value: "{{ __('admin_title') }}"
class: js-title
help: "{{ __('admin_help_text_for_tokens_label') }}"
validation:
required: true
minlength: 1
errorMessage: "{{ __('admin_error_title_empty_input') }}"
- type: Column
properties:
size: 3/12
blocks:
- type: InputNumber
properties:
name: limit_calls
label:
value: "{{ __('admin_api_calls_limit') }}"
value: 0
help: "{{ __('admin_help_text_for_api_calls_limit_label') }}"
validation:
required: true
minlength: 1
errorMessage: "{{ __('admin_error_api_calls_empty_input') }}"
- type: Column
properties:
size: 3/12
blocks:
- type: Select2
properties:
name: state
value: enabled
items:
enabled: "{{ __('admin_enabled') }}"
disabled: "{{ __('admin_disabled') }}"
label:
value: "{{ __('admin_state') }}"
- type: Column
properties:
size: 3/12
blocks:
- type: InputText
properties:
name: icon.name
label:
value: "{{ __('admin_icon_name') }}"
value: "newspaper"
class: js-title
help: "{{ __('admin_help_text_for_tokens_label') }}"
validation:
required: true
minlength: 1
errorMessage: "{{ __('form_admin_error_icon_empty_input') }}"
- type: Column
properties:
size: 3/12
blocks:
- type: InputText
properties:
name: icon.set
label:
value: "{{ __('admin_icon_set') }}"
value: "bootstrap"
class: js-title
help: "{{ __('admin_help_text_for_tokens_label') }}"
validation:
required: true
minlength: 1
errorMessage: "{{ __('form_admin_error_icon_empty_input') }}"

View File

@@ -1,29 +0,0 @@
title: Entries
icon:
set: bootstrap
name: file-text
blocks:
- type: Container
properties:
class: mt-4 mb-4
blocks:
- type: Row
blocks:
- type: Column
properties:
size: 6/12
blocks:
- type: Heading
properties:
size: large
value: "{{ __('admin_entries') }}"
- type: Column
properties:
size: 6/12
class: d-flex align-items-center justify-content-end text-end
blocks:
- type: Anchor
properties:
value: "{{ __('admin_create_new_token') }}"
href: "{{ urlFor('admin.api.add', {}, {'api': query.api}) }}"
class: btn btn-primary

View File

@@ -1,157 +0,0 @@
title: Edit token
icon:
set: bootstrap
name: file-text
blocks:
- type: Container
properties:
breakpoint: medium
blocks:
- type: Row
blocks:
- type: Column
blocks:
- type: Form
properties:
name: form_token_edit
process:
fields:
- name: title
properties:
type: string
- name: limit_calls
properties:
type: int
- name: icon.name
properties:
type: string
- name: icon.set
properties:
type: string
- name: state
properties:
type: string
- name: calls
properties:
type: int
- name: api
properties:
type: string
value: "{{ query.api }}"
- name: token
properties:
type: string
value: "{{ query.token }}"
messages:
error: "{{ __('admin_message_entries_api_token_was_not_updated') }}"
success: "{{ __('admin_message_entries_api_token_updated') }}"
redirect:
route: "admin.api.edit"
args:
api: "{{ query.api }}"
token: "{{ query.token }}"
blocks:
- type: Row
properties:
class: mt-4 mb-4
blocks:
- type: Column
properties:
size: 6/12
blocks:
- type: Heading
properties:
size: large
id: title
value: "{{ __('admin_edit_token') }}"
- type: Column
properties:
size: 6/12
class: d-flex align-items-center justify-content-end text-end
blocks:
- type: InputSubmit
properties:
type: primary
value: "{{ __('admin_save') }}"
- type: Row
properties:
class: g-3
blocks:
- type: Column
properties:
size: 12
blocks:
- type: InputHidden
properties:
name: redirect
- type: InputText
properties:
name: title
label:
value: "{{ __('admin_title') }}"
class: js-title
help: "{{ __('admin_help_text_for_tokens_label') }}"
validation:
required: true
minlength: 1
errorMessage: "{{ __('admin_error_title_empty_input') }}"
- type: Column
properties:
size: 3/12
blocks:
- type: InputNumber
properties:
name: limit_calls
label:
value: "{{ __('admin_api_calls_limit') }}"
value: 0
help: "{{ __('admin_help_text_for_api_calls_limit_label') }}"
validation:
required: true
minlength: 1
errorMessage: "{{ __('admin_error_api_calls_empty_input') }}"
- type: Column
properties:
size: 3/12
blocks:
- type: Select2
properties:
name: state
value: enabled
items:
enabled: "{{ __('admin_enabled') }}"
disabled: "{{ __('admin_disabled') }}"
label:
value: "{{ __('admin_state') }}"
- type: Column
properties:
size: 3/12
blocks:
- type: InputText
properties:
name: icon.name
label:
value: "{{ __('admin_icon_name') }}"
value: "newspaper"
class: js-title
help: "{{ __('admin_help_text_for_tokens_label') }}"
validation:
required: true
minlength: 1
errorMessage: "{{ __('form_admin_error_icon_empty_input') }}"
- type: Column
properties:
size: 3/12
blocks:
- type: InputText
properties:
name: icon.set
label:
value: "{{ __('admin_icon_set') }}"
value: "bootstrap"
class: js-title
help: "{{ __('admin_help_text_for_tokens_label') }}"
validation:
required: true
minlength: 1
errorMessage: "{{ __('form_admin_error_icon_empty_input') }}"

View File

@@ -1,19 +0,0 @@
title: API
icon:
set: bootstrap
name: file-text
blocks:
- type: Container
properties:
class: mt-4 mb-4
blocks:
- type: Row
blocks:
- type: Column
properties:
size: 6/12
blocks:
- type: Heading
properties:
size: large
value: "{{ __('admin_api') }}"

View File

@@ -1,209 +0,0 @@
title: Create new token
icon:
set: bootstrap
name: file-text
emitter:
addListener:
- name: onAdminThemeTail
properties:
value: |
<script>
$('.js-submit-token-create-form').click(function () {
$("input[name=redirect]").val($(this).data('redirect'));
$("input[name=submit_form_token_create]").click();
});
</script>
blocks:
- type: Container
properties:
breakpoint: medium
blocks:
- type: Row
blocks:
- type: Column
blocks:
- type: Form
properties:
name: form_token_create
process:
fields:
- name: title
properties:
type: string
- name: limit_calls
properties:
type: int
- name: icon.name
properties:
type: string
- name: icon.set
properties:
type: string
- name: state
properties:
type: string
- name: calls
properties:
type: int
value: 0
- name: api
properties:
type: string
value: "{{ query.api }}"
- name: created_at
properties:
type: string
value: "{{ time }}"
- name: created_by
properties:
type: string
value: "{{ acl().getUserLoggedInUuid() }}"
- name: uuid
properties:
type: string
value: "{{ uuid }}"
messages:
error: "{{ __('admin_message_entries_api_token_was_not_created') }}"
success: "{{ __('admin_message_entries_api_token_created') }}"
redirect:
route: |
{% if _form.registry.data.redirect == 'index' %}
admin.api.tokens
{% elseif _form.registry.data.redirect == 'edit' %}
admin.api.edit
{% elseif _form.registry.data.redirect == 'add' %}
admin.api.add
{% endif %}
args:
api: "{{ query.api }}"
blocks:
- type: Row
properties:
class: mt-4 mb-4
blocks:
- type: Column
properties:
size: 6/12
blocks:
- type: Heading
properties:
size: large
id: title
value: "{{ __('admin_create_new_token') }}"
- type: Column
properties:
size: 6/12
class: d-flex align-items-center justify-content-end text-end
blocks:
- type: InputSubmit
properties:
name: submit_form_token_create
style:
display: none
- type: ButtonGroup
properties:
buttons:
- type: Button
properties:
value: "{{ __('admin_create') }}"
class: js-submit-token-create-form
data:
redirect: index
- type: ButtonToggle
properties:
type: secondary
value: "{{ __('admin_create_and_edit') }}"
items:
- href: "#"
value: "{{ __('admin_create_and_edit') }}"
class: js-submit-token-create-form
data:
redirect: edit
- href: "#"
value: "{{ __('admin_create_and_add') }}"
class: js-submit-token-create-form
data:
redirect: add
- type: Row
properties:
class: g-3
blocks:
- type: Column
properties:
size: 12
blocks:
- type: InputHidden
properties:
name: redirect
- type: InputText
properties:
name: title
label:
value: "{{ __('admin_title') }}"
class: js-title
help: "{{ __('admin_help_text_for_tokens_label') }}"
validation:
required: true
minlength: 1
errorMessage: "{{ __('admin_error_title_empty_input') }}"
- type: Column
properties:
size: 3/12
blocks:
- type: InputNumber
properties:
name: limit_calls
label:
value: "{{ __('admin_api_calls_limit') }}"
value: 0
help: "{{ __('admin_help_text_for_api_calls_limit_label') }}"
validation:
required: true
minlength: 1
errorMessage: "{{ __('admin_error_api_calls_empty_input') }}"
- type: Column
properties:
size: 3/12
blocks:
- type: Select2
properties:
name: state
value: enabled
items:
enabled: "{{ __('admin_enabled') }}"
disabled: "{{ __('admin_disabled') }}"
label:
value: "{{ __('admin_state') }}"
- type: Column
properties:
size: 3/12
blocks:
- type: InputText
properties:
name: icon.name
label:
value: "{{ __('admin_icon_name') }}"
value: "newspaper"
class: js-title
help: "{{ __('admin_help_text_for_tokens_label') }}"
validation:
required: true
minlength: 1
errorMessage: "{{ __('form_admin_error_icon_empty_input') }}"
- type: Column
properties:
size: 3/12
blocks:
- type: InputText
properties:
name: icon.set
label:
value: "{{ __('admin_icon_set') }}"
value: "bootstrap"
class: js-title
help: "{{ __('admin_help_text_for_tokens_label') }}"
validation:
required: true
minlength: 1
errorMessage: "{{ __('form_admin_error_icon_empty_input') }}"

View File

@@ -1,29 +0,0 @@
title: Entries
icon:
set: bootstrap
name: file-text
blocks:
- type: Container
properties:
class: mt-4 mb-4
blocks:
- type: Row
blocks:
- type: Column
properties:
size: 6/12
blocks:
- type: Heading
properties:
size: large
value: "{{ __('admin_entries') }}"
- type: Column
properties:
size: 6/12
class: d-flex align-items-center justify-content-end text-end
blocks:
- type: Anchor
properties:
value: "{{ __('admin_create_new_token') }}"
href: "{{ urlFor('admin.api.add', {}, {'api': query.api}) }}"
class: btn btn-primary

View File

@@ -1,157 +0,0 @@
title: Edit token
icon:
set: bootstrap
name: file-text
blocks:
- type: Container
properties:
breakpoint: medium
blocks:
- type: Row
blocks:
- type: Column
blocks:
- type: Form
properties:
name: form_token_edit
process:
fields:
- name: title
properties:
type: string
- name: limit_calls
properties:
type: int
- name: icon.name
properties:
type: string
- name: icon.set
properties:
type: string
- name: state
properties:
type: string
- name: calls
properties:
type: int
- name: api
properties:
type: string
value: "{{ query.api }}"
- name: token
properties:
type: string
value: "{{ query.token }}"
messages:
error: "{{ __('admin_message_entries_api_token_was_not_updated') }}"
success: "{{ __('admin_message_entries_api_token_updated') }}"
redirect:
route: "admin.api.edit"
args:
api: "{{ query.api }}"
token: "{{ query.token }}"
blocks:
- type: Row
properties:
class: mt-4 mb-4
blocks:
- type: Column
properties:
size: 6/12
blocks:
- type: Heading
properties:
size: large
id: title
value: "{{ __('admin_edit_token') }}"
- type: Column
properties:
size: 6/12
class: d-flex align-items-center justify-content-end text-end
blocks:
- type: InputSubmit
properties:
type: primary
value: "{{ __('admin_save') }}"
- type: Row
properties:
class: g-3
blocks:
- type: Column
properties:
size: 12
blocks:
- type: InputHidden
properties:
name: redirect
- type: InputText
properties:
name: title
label:
value: "{{ __('admin_title') }}"
class: js-title
help: "{{ __('admin_help_text_for_tokens_label') }}"
validation:
required: true
minlength: 1
errorMessage: "{{ __('admin_error_title_empty_input') }}"
- type: Column
properties:
size: 3/12
blocks:
- type: InputNumber
properties:
name: limit_calls
label:
value: "{{ __('admin_api_calls_limit') }}"
value: 0
help: "{{ __('admin_help_text_for_api_calls_limit_label') }}"
validation:
required: true
minlength: 1
errorMessage: "{{ __('admin_error_api_calls_empty_input') }}"
- type: Column
properties:
size: 3/12
blocks:
- type: Select2
properties:
name: state
value: enabled
items:
enabled: "{{ __('admin_enabled') }}"
disabled: "{{ __('admin_disabled') }}"
label:
value: "{{ __('admin_state') }}"
- type: Column
properties:
size: 3/12
blocks:
- type: InputText
properties:
name: icon.name
label:
value: "{{ __('admin_icon_name') }}"
value: "newspaper"
class: js-title
help: "{{ __('admin_help_text_for_tokens_label') }}"
validation:
required: true
minlength: 1
errorMessage: "{{ __('form_admin_error_icon_empty_input') }}"
- type: Column
properties:
size: 3/12
blocks:
- type: InputText
properties:
name: icon.set
label:
value: "{{ __('admin_icon_set') }}"
value: "bootstrap"
class: js-title
help: "{{ __('admin_help_text_for_tokens_label') }}"
validation:
required: true
minlength: 1
errorMessage: "{{ __('form_admin_error_icon_empty_input') }}"

View File

@@ -1,209 +0,0 @@
title: Create new token
icon:
set: bootstrap
name: file-text
emitter:
addListener:
- name: onAdminThemeTail
properties:
value: |
<script>
$('.js-submit-token-create-form').click(function () {
$("input[name=redirect]").val($(this).data('redirect'));
$("input[name=submit_form_token_create]").click();
});
</script>
blocks:
- type: Container
properties:
breakpoint: medium
blocks:
- type: Row
blocks:
- type: Column
blocks:
- type: Form
properties:
name: form_token_create
process:
fields:
- name: title
properties:
type: string
- name: limit_calls
properties:
type: int
- name: icon.name
properties:
type: string
- name: icon.set
properties:
type: string
- name: state
properties:
type: string
- name: calls
properties:
type: int
value: 0
- name: api
properties:
type: string
value: "{{ query.api }}"
- name: created_at
properties:
type: string
value: "{{ time }}"
- name: created_by
properties:
type: string
value: "{{ acl().getUserLoggedInUuid() }}"
- name: uuid
properties:
type: string
value: "{{ uuid }}"
messages:
error: "{{ __('admin_message_entries_api_token_was_not_created') }}"
success: "{{ __('admin_message_entries_api_token_created') }}"
redirect:
route: |
{% if _form.registry.data.redirect == 'index' %}
admin.api.tokens
{% elseif _form.registry.data.redirect == 'edit' %}
admin.api.edit
{% elseif _form.registry.data.redirect == 'add' %}
admin.api.add
{% endif %}
args:
api: "{{ query.api }}"
blocks:
- type: Row
properties:
class: mt-4 mb-4
blocks:
- type: Column
properties:
size: 6/12
blocks:
- type: Heading
properties:
size: large
id: title
value: "{{ __('admin_create_new_token') }}"
- type: Column
properties:
size: 6/12
class: d-flex align-items-center justify-content-end text-end
blocks:
- type: InputSubmit
properties:
name: submit_form_token_create
style:
display: none
- type: ButtonGroup
properties:
buttons:
- type: Button
properties:
value: "{{ __('admin_create') }}"
class: js-submit-token-create-form
data:
redirect: index
- type: ButtonToggle
properties:
type: secondary
value: "{{ __('admin_create_and_edit') }}"
items:
- href: "#"
value: "{{ __('admin_create_and_edit') }}"
class: js-submit-token-create-form
data:
redirect: edit
- href: "#"
value: "{{ __('admin_create_and_add') }}"
class: js-submit-token-create-form
data:
redirect: add
- type: Row
properties:
class: g-3
blocks:
- type: Column
properties:
size: 12
blocks:
- type: InputHidden
properties:
name: redirect
- type: InputText
properties:
name: title
label:
value: "{{ __('admin_title') }}"
class: js-title
help: "{{ __('admin_help_text_for_tokens_label') }}"
validation:
required: true
minlength: 1
errorMessage: "{{ __('admin_error_title_empty_input') }}"
- type: Column
properties:
size: 3/12
blocks:
- type: InputNumber
properties:
name: limit_calls
label:
value: "{{ __('admin_api_calls_limit') }}"
value: 0
help: "{{ __('admin_help_text_for_api_calls_limit_label') }}"
validation:
required: true
minlength: 1
errorMessage: "{{ __('admin_error_api_calls_empty_input') }}"
- type: Column
properties:
size: 3/12
blocks:
- type: Select2
properties:
name: state
value: enabled
items:
enabled: "{{ __('admin_enabled') }}"
disabled: "{{ __('admin_disabled') }}"
label:
value: "{{ __('admin_state') }}"
- type: Column
properties:
size: 3/12
blocks:
- type: InputText
properties:
name: icon.name
label:
value: "{{ __('admin_icon_name') }}"
value: "newspaper"
class: js-title
help: "{{ __('admin_help_text_for_tokens_label') }}"
validation:
required: true
minlength: 1
errorMessage: "{{ __('form_admin_error_icon_empty_input') }}"
- type: Column
properties:
size: 3/12
blocks:
- type: InputText
properties:
name: icon.set
label:
value: "{{ __('admin_icon_set') }}"
value: "bootstrap"
class: js-title
help: "{{ __('admin_help_text_for_tokens_label') }}"
validation:
required: true
minlength: 1
errorMessage: "{{ __('form_admin_error_icon_empty_input') }}"

View File

@@ -1,29 +0,0 @@
title: Entries
icon:
set: bootstrap
name: file-text
blocks:
- type: Container
properties:
class: mt-4 mb-4
blocks:
- type: Row
blocks:
- type: Column
properties:
size: 6/12
blocks:
- type: Heading
properties:
size: large
value: "{{ __('admin_entries') }}"
- type: Column
properties:
size: 6/12
class: d-flex align-items-center justify-content-end text-end
blocks:
- type: Anchor
properties:
value: "{{ __('admin_create_new_token') }}"
href: "{{ urlFor('admin.api.add', {}, {'api': query.api}) }}"
class: btn btn-primary

View File

@@ -1,157 +0,0 @@
title: Edit token
icon:
set: bootstrap
name: file-text
blocks:
- type: Container
properties:
breakpoint: medium
blocks:
- type: Row
blocks:
- type: Column
blocks:
- type: Form
properties:
name: form_token_edit
process:
fields:
- name: title
properties:
type: string
- name: limit_calls
properties:
type: int
- name: icon.name
properties:
type: string
- name: icon.set
properties:
type: string
- name: state
properties:
type: string
- name: calls
properties:
type: int
- name: api
properties:
type: string
value: "{{ query.api }}"
- name: token
properties:
type: string
value: "{{ query.token }}"
messages:
error: "{{ __('admin_message_entries_api_token_was_not_updated') }}"
success: "{{ __('admin_message_entries_api_token_updated') }}"
redirect:
route: "admin.api.edit"
args:
api: "{{ query.api }}"
token: "{{ query.token }}"
blocks:
- type: Row
properties:
class: mt-4 mb-4
blocks:
- type: Column
properties:
size: 6/12
blocks:
- type: Heading
properties:
size: large
id: title
value: "{{ __('admin_edit_token') }}"
- type: Column
properties:
size: 6/12
class: d-flex align-items-center justify-content-end text-end
blocks:
- type: InputSubmit
properties:
type: primary
value: "{{ __('admin_save') }}"
- type: Row
properties:
class: g-3
blocks:
- type: Column
properties:
size: 12
blocks:
- type: InputHidden
properties:
name: redirect
- type: InputText
properties:
name: title
label:
value: "{{ __('admin_title') }}"
class: js-title
help: "{{ __('admin_help_text_for_tokens_label') }}"
validation:
required: true
minlength: 1
errorMessage: "{{ __('admin_error_title_empty_input') }}"
- type: Column
properties:
size: 3/12
blocks:
- type: InputNumber
properties:
name: limit_calls
label:
value: "{{ __('admin_api_calls_limit') }}"
value: 0
help: "{{ __('admin_help_text_for_api_calls_limit_label') }}"
validation:
required: true
minlength: 1
errorMessage: "{{ __('admin_error_api_calls_empty_input') }}"
- type: Column
properties:
size: 3/12
blocks:
- type: Select2
properties:
name: state
value: enabled
items:
enabled: "{{ __('admin_enabled') }}"
disabled: "{{ __('admin_disabled') }}"
label:
value: "{{ __('admin_state') }}"
- type: Column
properties:
size: 3/12
blocks:
- type: InputText
properties:
name: icon.name
label:
value: "{{ __('admin_icon_name') }}"
value: "newspaper"
class: js-title
help: "{{ __('admin_help_text_for_tokens_label') }}"
validation:
required: true
minlength: 1
errorMessage: "{{ __('form_admin_error_icon_empty_input') }}"
- type: Column
properties:
size: 3/12
blocks:
- type: InputText
properties:
name: icon.set
label:
value: "{{ __('admin_icon_set') }}"
value: "bootstrap"
class: js-title
help: "{{ __('admin_help_text_for_tokens_label') }}"
validation:
required: true
minlength: 1
errorMessage: "{{ __('form_admin_error_icon_empty_input') }}"

View File

@@ -1,209 +0,0 @@
title: Create new token
icon:
set: bootstrap
name: file-text
emitter:
addListener:
- name: onAdminThemeTail
properties:
value: |
<script>
$('.js-submit-token-create-form').click(function () {
$("input[name=redirect]").val($(this).data('redirect'));
$("input[name=submit_form_token_create]").click();
});
</script>
blocks:
- type: Container
properties:
breakpoint: medium
blocks:
- type: Row
blocks:
- type: Column
blocks:
- type: Form
properties:
name: form_token_create
process:
fields:
- name: title
properties:
type: string
- name: limit_calls
properties:
type: int
- name: icon.name
properties:
type: string
- name: icon.set
properties:
type: string
- name: state
properties:
type: string
- name: calls
properties:
type: int
value: 0
- name: api
properties:
type: string
value: "{{ query.api }}"
- name: created_at
properties:
type: string
value: "{{ time }}"
- name: created_by
properties:
type: string
value: "{{ acl().getUserLoggedInUuid() }}"
- name: uuid
properties:
type: string
value: "{{ uuid }}"
messages:
error: "{{ __('admin_message_entries_api_token_was_not_created') }}"
success: "{{ __('admin_message_entries_api_token_created') }}"
redirect:
route: |
{% if _form.registry.data.redirect == 'index' %}
admin.api.tokens
{% elseif _form.registry.data.redirect == 'edit' %}
admin.api.edit
{% elseif _form.registry.data.redirect == 'add' %}
admin.api.add
{% endif %}
args:
api: "{{ query.api }}"
blocks:
- type: Row
properties:
class: mt-4 mb-4
blocks:
- type: Column
properties:
size: 6/12
blocks:
- type: Heading
properties:
size: large
id: title
value: "{{ __('admin_create_new_token') }}"
- type: Column
properties:
size: 6/12
class: d-flex align-items-center justify-content-end text-end
blocks:
- type: InputSubmit
properties:
name: submit_form_token_create
style:
display: none
- type: ButtonGroup
properties:
buttons:
- type: Button
properties:
value: "{{ __('admin_create') }}"
class: js-submit-token-create-form
data:
redirect: index
- type: ButtonToggle
properties:
type: secondary
value: "{{ __('admin_create_and_edit') }}"
items:
- href: "#"
value: "{{ __('admin_create_and_edit') }}"
class: js-submit-token-create-form
data:
redirect: edit
- href: "#"
value: "{{ __('admin_create_and_add') }}"
class: js-submit-token-create-form
data:
redirect: add
- type: Row
properties:
class: g-3
blocks:
- type: Column
properties:
size: 12
blocks:
- type: InputHidden
properties:
name: redirect
- type: InputText
properties:
name: title
label:
value: "{{ __('admin_title') }}"
class: js-title
help: "{{ __('admin_help_text_for_tokens_label') }}"
validation:
required: true
minlength: 1
errorMessage: "{{ __('admin_error_title_empty_input') }}"
- type: Column
properties:
size: 3/12
blocks:
- type: InputNumber
properties:
name: limit_calls
label:
value: "{{ __('admin_api_calls_limit') }}"
value: 0
help: "{{ __('admin_help_text_for_api_calls_limit_label') }}"
validation:
required: true
minlength: 1
errorMessage: "{{ __('admin_error_api_calls_empty_input') }}"
- type: Column
properties:
size: 3/12
blocks:
- type: Select2
properties:
name: state
value: enabled
items:
enabled: "{{ __('admin_enabled') }}"
disabled: "{{ __('admin_disabled') }}"
label:
value: "{{ __('admin_state') }}"
- type: Column
properties:
size: 3/12
blocks:
- type: InputText
properties:
name: icon.name
label:
value: "{{ __('admin_icon_name') }}"
value: "newspaper"
class: js-title
help: "{{ __('admin_help_text_for_tokens_label') }}"
validation:
required: true
minlength: 1
errorMessage: "{{ __('form_admin_error_icon_empty_input') }}"
- type: Column
properties:
size: 3/12
blocks:
- type: InputText
properties:
name: icon.set
label:
value: "{{ __('admin_icon_set') }}"
value: "bootstrap"
class: js-title
help: "{{ __('admin_help_text_for_tokens_label') }}"
validation:
required: true
minlength: 1
errorMessage: "{{ __('form_admin_error_icon_empty_input') }}"

View File

@@ -1,29 +0,0 @@
title: Entries
icon:
set: bootstrap
name: file-text
blocks:
- type: Container
properties:
class: mt-4 mb-4
blocks:
- type: Row
blocks:
- type: Column
properties:
size: 6/12
blocks:
- type: Heading
properties:
size: large
value: "{{ __('admin_entries') }}"
- type: Column
properties:
size: 6/12
class: d-flex align-items-center justify-content-end text-end
blocks:
- type: Anchor
properties:
value: "{{ __('admin_create_new_token') }}"
href: "{{ urlFor('admin.api.add', {}, {'api': query.api}) }}"
class: btn btn-primary

View File

@@ -1,157 +0,0 @@
title: Edit token
icon:
set: bootstrap
name: file-text
blocks:
- type: Container
properties:
breakpoint: medium
blocks:
- type: Row
blocks:
- type: Column
blocks:
- type: Form
properties:
name: form_token_edit
process:
fields:
- name: title
properties:
type: string
- name: limit_calls
properties:
type: int
- name: icon.name
properties:
type: string
- name: icon.set
properties:
type: string
- name: state
properties:
type: string
- name: calls
properties:
type: int
- name: api
properties:
type: string
value: "{{ query.api }}"
- name: token
properties:
type: string
value: "{{ query.token }}"
messages:
error: "{{ __('admin_message_entries_api_token_was_not_updated') }}"
success: "{{ __('admin_message_entries_api_token_updated') }}"
redirect:
route: "admin.api.edit"
args:
api: "{{ query.api }}"
token: "{{ query.token }}"
blocks:
- type: Row
properties:
class: mt-4 mb-4
blocks:
- type: Column
properties:
size: 6/12
blocks:
- type: Heading
properties:
size: large
id: title
value: "{{ __('admin_edit_token') }}"
- type: Column
properties:
size: 6/12
class: d-flex align-items-center justify-content-end text-end
blocks:
- type: InputSubmit
properties:
type: primary
value: "{{ __('admin_save') }}"
- type: Row
properties:
class: g-3
blocks:
- type: Column
properties:
size: 12
blocks:
- type: InputHidden
properties:
name: redirect
- type: InputText
properties:
name: title
label:
value: "{{ __('admin_title') }}"
class: js-title
help: "{{ __('admin_help_text_for_tokens_label') }}"
validation:
required: true
minlength: 1
errorMessage: "{{ __('admin_error_title_empty_input') }}"
- type: Column
properties:
size: 3/12
blocks:
- type: InputNumber
properties:
name: limit_calls
label:
value: "{{ __('admin_api_calls_limit') }}"
value: 0
help: "{{ __('admin_help_text_for_api_calls_limit_label') }}"
validation:
required: true
minlength: 1
errorMessage: "{{ __('admin_error_api_calls_empty_input') }}"
- type: Column
properties:
size: 3/12
blocks:
- type: Select2
properties:
name: state
value: enabled
items:
enabled: "{{ __('admin_enabled') }}"
disabled: "{{ __('admin_disabled') }}"
label:
value: "{{ __('admin_state') }}"
- type: Column
properties:
size: 3/12
blocks:
- type: InputText
properties:
name: icon.name
label:
value: "{{ __('admin_icon_name') }}"
value: "newspaper"
class: js-title
help: "{{ __('admin_help_text_for_tokens_label') }}"
validation:
required: true
minlength: 1
errorMessage: "{{ __('form_admin_error_icon_empty_input') }}"
- type: Column
properties:
size: 3/12
blocks:
- type: InputText
properties:
name: icon.set
label:
value: "{{ __('admin_icon_set') }}"
value: "bootstrap"
class: js-title
help: "{{ __('admin_help_text_for_tokens_label') }}"
validation:
required: true
minlength: 1
errorMessage: "{{ __('form_admin_error_icon_empty_input') }}"

View File

@@ -1,209 +0,0 @@
title: Create new token
icon:
set: bootstrap
name: file-text
emitter:
addListener:
- name: onAdminThemeTail
properties:
value: |
<script>
$('.js-submit-token-create-form').click(function () {
$("input[name=redirect]").val($(this).data('redirect'));
$("input[name=submit_form_token_create]").click();
});
</script>
blocks:
- type: Container
properties:
breakpoint: medium
blocks:
- type: Row
blocks:
- type: Column
blocks:
- type: Form
properties:
name: form_token_create
process:
fields:
- name: title
properties:
type: string
- name: limit_calls
properties:
type: int
- name: icon.name
properties:
type: string
- name: icon.set
properties:
type: string
- name: state
properties:
type: string
- name: calls
properties:
type: int
value: 0
- name: api
properties:
type: string
value: "{{ query.api }}"
- name: created_at
properties:
type: string
value: "{{ time }}"
- name: created_by
properties:
type: string
value: "{{ acl().getUserLoggedInUuid() }}"
- name: uuid
properties:
type: string
value: "{{ uuid }}"
messages:
error: "{{ __('admin_message_entries_api_token_was_not_created') }}"
success: "{{ __('admin_message_entries_api_token_created') }}"
redirect:
route: |
{% if _form.registry.data.redirect == 'index' %}
admin.api.tokens
{% elseif _form.registry.data.redirect == 'edit' %}
admin.api.edit
{% elseif _form.registry.data.redirect == 'add' %}
admin.api.add
{% endif %}
args:
api: "{{ query.api }}"
blocks:
- type: Row
properties:
class: mt-4 mb-4
blocks:
- type: Column
properties:
size: 6/12
blocks:
- type: Heading
properties:
size: large
id: title
value: "{{ __('admin_create_new_token') }}"
- type: Column
properties:
size: 6/12
class: d-flex align-items-center justify-content-end text-end
blocks:
- type: InputSubmit
properties:
name: submit_form_token_create
style:
display: none
- type: ButtonGroup
properties:
buttons:
- type: Button
properties:
value: "{{ __('admin_create') }}"
class: js-submit-token-create-form
data:
redirect: index
- type: ButtonToggle
properties:
type: secondary
value: "{{ __('admin_create_and_edit') }}"
items:
- href: "#"
value: "{{ __('admin_create_and_edit') }}"
class: js-submit-token-create-form
data:
redirect: edit
- href: "#"
value: "{{ __('admin_create_and_add') }}"
class: js-submit-token-create-form
data:
redirect: add
- type: Row
properties:
class: g-3
blocks:
- type: Column
properties:
size: 12
blocks:
- type: InputHidden
properties:
name: redirect
- type: InputText
properties:
name: title
label:
value: "{{ __('admin_title') }}"
class: js-title
help: "{{ __('admin_help_text_for_tokens_label') }}"
validation:
required: true
minlength: 1
errorMessage: "{{ __('admin_error_title_empty_input') }}"
- type: Column
properties:
size: 3/12
blocks:
- type: InputNumber
properties:
name: limit_calls
label:
value: "{{ __('admin_api_calls_limit') }}"
value: 0
help: "{{ __('admin_help_text_for_api_calls_limit_label') }}"
validation:
required: true
minlength: 1
errorMessage: "{{ __('admin_error_api_calls_empty_input') }}"
- type: Column
properties:
size: 3/12
blocks:
- type: Select2
properties:
name: state
value: enabled
items:
enabled: "{{ __('admin_enabled') }}"
disabled: "{{ __('admin_disabled') }}"
label:
value: "{{ __('admin_state') }}"
- type: Column
properties:
size: 3/12
blocks:
- type: InputText
properties:
name: icon.name
label:
value: "{{ __('admin_icon_name') }}"
value: "newspaper"
class: js-title
help: "{{ __('admin_help_text_for_tokens_label') }}"
validation:
required: true
minlength: 1
errorMessage: "{{ __('form_admin_error_icon_empty_input') }}"
- type: Column
properties:
size: 3/12
blocks:
- type: InputText
properties:
name: icon.set
label:
value: "{{ __('admin_icon_set') }}"
value: "bootstrap"
class: js-title
help: "{{ __('admin_help_text_for_tokens_label') }}"
validation:
required: true
minlength: 1
errorMessage: "{{ __('form_admin_error_icon_empty_input') }}"

View File

@@ -1,29 +0,0 @@
title: Entries
icon:
set: bootstrap
name: file-text
blocks:
- type: Container
properties:
class: mt-4 mb-4
blocks:
- type: Row
blocks:
- type: Column
properties:
size: 6/12
blocks:
- type: Heading
properties:
size: large
value: "{{ __('admin_entries') }}"
- type: Column
properties:
size: 6/12
class: d-flex align-items-center justify-content-end text-end
blocks:
- type: Anchor
properties:
value: "{{ __('admin_create_new_token') }}"
href: "{{ urlFor('admin.api.add', {}, {'api': query.api}) }}"
class: btn btn-primary

View File

@@ -1,157 +0,0 @@
title: Edit token
icon:
set: bootstrap
name: file-text
blocks:
- type: Container
properties:
breakpoint: medium
blocks:
- type: Row
blocks:
- type: Column
blocks:
- type: Form
properties:
name: form_token_edit
process:
fields:
- name: title
properties:
type: string
- name: limit_calls
properties:
type: int
- name: icon.name
properties:
type: string
- name: icon.set
properties:
type: string
- name: state
properties:
type: string
- name: calls
properties:
type: int
- name: api
properties:
type: string
value: "{{ query.api }}"
- name: token
properties:
type: string
value: "{{ query.token }}"
messages:
error: "{{ __('admin_message_entries_api_token_was_not_updated') }}"
success: "{{ __('admin_message_entries_api_token_updated') }}"
redirect:
route: "admin.api.edit"
args:
api: "{{ query.api }}"
token: "{{ query.token }}"
blocks:
- type: Row
properties:
class: mt-4 mb-4
blocks:
- type: Column
properties:
size: 6/12
blocks:
- type: Heading
properties:
size: large
id: title
value: "{{ __('admin_edit_token') }}"
- type: Column
properties:
size: 6/12
class: d-flex align-items-center justify-content-end text-end
blocks:
- type: InputSubmit
properties:
type: primary
value: "{{ __('admin_save') }}"
- type: Row
properties:
class: g-3
blocks:
- type: Column
properties:
size: 12
blocks:
- type: InputHidden
properties:
name: redirect
- type: InputText
properties:
name: title
label:
value: "{{ __('admin_title') }}"
class: js-title
help: "{{ __('admin_help_text_for_tokens_label') }}"
validation:
required: true
minlength: 1
errorMessage: "{{ __('admin_error_title_empty_input') }}"
- type: Column
properties:
size: 3/12
blocks:
- type: InputNumber
properties:
name: limit_calls
label:
value: "{{ __('admin_api_calls_limit') }}"
value: 0
help: "{{ __('admin_help_text_for_api_calls_limit_label') }}"
validation:
required: true
minlength: 1
errorMessage: "{{ __('admin_error_api_calls_empty_input') }}"
- type: Column
properties:
size: 3/12
blocks:
- type: Select2
properties:
name: state
value: enabled
items:
enabled: "{{ __('admin_enabled') }}"
disabled: "{{ __('admin_disabled') }}"
label:
value: "{{ __('admin_state') }}"
- type: Column
properties:
size: 3/12
blocks:
- type: InputText
properties:
name: icon.name
label:
value: "{{ __('admin_icon_name') }}"
value: "newspaper"
class: js-title
help: "{{ __('admin_help_text_for_tokens_label') }}"
validation:
required: true
minlength: 1
errorMessage: "{{ __('form_admin_error_icon_empty_input') }}"
- type: Column
properties:
size: 3/12
blocks:
- type: InputText
properties:
name: icon.set
label:
value: "{{ __('admin_icon_set') }}"
value: "bootstrap"
class: js-title
help: "{{ __('admin_help_text_for_tokens_label') }}"
validation:
required: true
minlength: 1
errorMessage: "{{ __('form_admin_error_icon_empty_input') }}"

View File

@@ -1,64 +0,0 @@
title: Settings
type: settings
icon:
set: bootstrap
name: file-text
blocks:
- type: Container
properties:
breakpoint: medium
blocks:
- type: Row
blocks:
- type: Column
blocks:
- type: Form
properties:
name: form_settings
process:
fields:
- name: settings
properties:
type: string
messages:
error: "{{ __('admin_message_settings_was_not_saved') }}"
success: "{{ __('admin_message_settings_saved') }}"
redirect:
route: admin.settings.index
blocks:
- type: Row
properties:
class: mt-4 mb-4
blocks:
- type: Column
properties:
size: 6/12
blocks:
- type: Heading
properties:
size: large
id: title
value: "{{ __('admin_settings') }}"
- type: Column
properties:
size: 6/12
class: d-flex align-items-center justify-content-end text-end
blocks:
- type: InputSubmit
properties:
type: primary
value: "{{ __('admin_save') }}"
id: submit
- type: Row
blocks:
- type: Column
properties:
size: 12
blocks:
- type: Codemirror
properties:
name: settings
value: "{{ settings }}"
options:
mode: yaml

View File

@@ -1,20 +0,0 @@
title: Tools
type: system
icon:
set: bootstrap
name: file-text
blocks:
- type: Container
properties:
class: mt-4 mb-4
blocks:
- type: Row
blocks:
- type: Column
properties:
size: 6/12
blocks:
- type: Heading
properties:
size: large
value: "{{ __('admin_tools') }}"

View File

@@ -1,32 +0,0 @@
title: Cache
type: system
icon:
set: bootstrap
name: file-text
blocks:
- type: Container
properties:
class: mt-4 mb-4
blocks:
- type: Row
blocks:
- type: Column
properties:
size: 6/12
blocks:
- type: Heading
properties:
size: large
value: "{{ __('admin_cache') }}"
- type: Column
properties:
size: 6/12
class: d-flex align-items-center justify-content-end text-end
blocks:
- type: Anchor
properties:
value: "{{ __('admin_clear_cache_all') }}"
href: "#"
class: btn btn-primary
events:
onclick: "clearCache('all');"

View File

@@ -1,20 +0,0 @@
title: Information
type: system
icon:
set: bootstrap
name: file-text
blocks:
- type: Container
properties:
class: mt-4 mb-4
blocks:
- type: Row
blocks:
- type: Column
properties:
size: 6/12
blocks:
- type: Heading
properties:
size: large
value: "{{ __('admin_information') }}"

View File

@@ -1,20 +0,0 @@
title: Registry
type: system
icon:
set: bootstrap
name: file-text
blocks:
- type: Container
properties:
class: mt-4 mb-4
blocks:
- type: Row
blocks:
- type: Column
properties:
size: 6/12
blocks:
- type: Heading
properties:
size: large
value: "{{ __('admin_registry') }}"

View File

@@ -1,196 +0,0 @@
title: Blog
type: entry
icon:
set: bootstrap
name: file-text
blocks:
- type: Container
properties:
class: mt-4
breakpoint: medium
blocks:
- type: Row
blocks:
- type: Column
blocks:
- type: Form
process:
fields:
- title
- content
- description
- keywords
messages:
error: admin_message_entries_changes_saved
success: admin_message_entries_changes_not_saved
redirect:
route: admin.entries.edit args:id,type
properties:
name: form_entries_edit
blocks:
- type: InputSubmit
properties:
id: submit
style:
display: none
- type: Tabs
properties:
tabs:
main:
title: "{{ __('admin_main') }}"
blocks:
- type: Row
blocks:
- type: Column
properties:
size: 12
class: mb-3 mt-3
blocks:
- type: InputText
properties:
name: title
label:
value: "{{ __('admin_title') }}"
- type: Column
properties:
size: 12
class: mb-3
blocks:
- type: Trumbowyg
properties:
name: content
label:
value: "{{ __('admin_entries') }}"
options:
btns:
- strong
- em
- del
- link
- insertImage
- viewHTML
settings:
title: "{{ __('admin_settings') }}"
blocks:
- type: Row
blocks:
- type: Column
properties:
size: 12
class: mb-3 mt-3
blocks:
- type: Heading
properties:
value: "{{ __('admin_general') }}"
- type: Column
properties:
size: 12
class: mb-3
blocks:
- type: InputTextarea
properties:
name: description
validation:
required: true
rows: 3
label:
value: "{{ __('admin_description') }}"
- type: Column
properties:
size: 3/12
class: mb-3
blocks:
- type: Select2
properties:
name: template
label:
value: "{{ __('admin_template') }}"
items: "{{ serializers().json.encode(templates) }}"
- type: Column
properties:
size: 3/12
class: mb-3
blocks:
- type: Select2
properties:
name: routable
label:
value: "{{ __('admin_routable') }}"
items: "{{ serializers().json.encode(routable) }}"
- type: Column
properties:
size: 3/12
class: mb-3
blocks:
- type: Select2
properties:
name: visibility
label:
value: "{{ __('admin_visibility') }}"
items: "{{ serializers().json.encode(visibility) }}"
- type: Column
properties:
size: 3/12
class: mb-3
blocks:
- type: Flatpickr
properties:
name: published_at
label:
value: "{{ __('admin_published_at') }}"
- type: Row
blocks:
- type: Column
properties:
size: 12
class: mb-3 mt-3
blocks:
- type: Heading
properties:
value: "{{ __('admin_menu') }}"
- type: Column
properties:
size: 3/12
class: mb-3
blocks:
- type: InputText
properties:
name: menu_item_title
label:
value: "{{ __('admin_menu_item_title') }}"
- type: Column
properties:
size: 3/12
class: mb-3
blocks:
- type: InputText
properties:
name: menu_item_url
label:
value: "{{ __('admin_menu_item_url') }}"
- type: Column
properties:
size: 3/12
class: mb-3
blocks:
- type: Select2
properties:
name: menu_item_target
label:
value: "{{ __('admin_menu_item_target') }}"
items: { _self: _self, _blank: _blank, _parent: _parent, _top: _top }
- type: Column
properties:
size: 3/12
class: mb-3
blocks:
- type: InputNumber
properties:
name: menu_item_order
label:
value: "{{ __('admin_menu_item_order') }}"
value: 1

View File

@@ -1,196 +0,0 @@
title: Blog post
type: entry
icon:
set: bootstrap
name: file
blocks:
- type: Container
properties:
class: mt-4
breakpoint: medium
blocks:
- type: Row
blocks:
- type: Column
blocks:
- type: Form
process:
fields:
- title
- content
- description
- keywords
messages:
error: admin_message_entries_changes_saved
success: admin_message_entries_changes_not_saved
redirect:
route: admin.entries.edit args:id,type
properties:
name: form_entries_edit
blocks:
- type: InputSubmit
properties:
id: submit
style:
display: none
- type: Tabs
properties:
tabs:
main:
title: "{{ __('admin_main') }}"
blocks:
- type: Row
blocks:
- type: Column
properties:
size: 12
class: mb-3 mt-3
blocks:
- type: InputText
properties:
name: title
label:
value: "{{ __('admin_title') }}"
- type: Column
properties:
size: 12
class: mb-3
blocks:
- type: Trumbowyg
properties:
name: content
label:
value: "{{ __('admin_entries') }}"
options:
btns:
- strong
- em
- del
- link
- insertImage
- viewHTML
settings:
title: "{{ __('admin_settings') }}"
blocks:
- type: Row
blocks:
- type: Column
properties:
size: 12
class: mb-3 mt-3
blocks:
- type: Heading
properties:
value: "{{ __('admin_general') }}"
- type: Column
properties:
size: 12
class: mb-3
blocks:
- type: InputTextarea
properties:
name: description
validation:
required: true
rows: 3
label:
value: "{{ __('admin_description') }}"
- type: Column
properties:
size: 3/12
class: mb-3
blocks:
- type: Select2
properties:
name: template
label:
value: "{{ __('admin_template') }}"
items: "{{ serializers().json.encode(templates) }}"
- type: Column
properties:
size: 3/12
class: mb-3
blocks:
- type: Select2
properties:
name: routable
label:
value: "{{ __('admin_routable') }}"
items: "{{ serializers().json.encode(routable) }}"
- type: Column
properties:
size: 3/12
class: mb-3
blocks:
- type: Select2
properties:
name: visibility
label:
value: "{{ __('admin_visibility') }}"
items: "{{ serializers().json.encode(visibility) }}"
- type: Column
properties:
size: 3/12
class: mb-3
blocks:
- type: Flatpickr
properties:
name: published_at
label:
value: "{{ __('admin_published_at') }}"
- type: Row
blocks:
- type: Column
properties:
size: 12
class: mb-3 mt-3
blocks:
- type: Heading
properties:
value: "{{ __('admin_menu') }}"
- type: Column
properties:
size: 3/12
class: mb-3
blocks:
- type: InputText
properties:
name: menu_item_title
label:
value: "{{ __('admin_menu_item_title') }}"
- type: Column
properties:
size: 3/12
class: mb-3
blocks:
- type: InputText
properties:
name: menu_item_url
label:
value: "{{ __('admin_menu_item_url') }}"
- type: Column
properties:
size: 3/12
class: mb-3
blocks:
- type: Select2
properties:
name: menu_item_target
label:
value: "{{ __('admin_menu_item_target') }}"
items: { _self: _self, _blank: _blank, _parent: _parent, _top: _top }
- type: Column
properties:
size: 3/12
class: mb-3
blocks:
- type: InputNumber
properties:
name: menu_item_order
label:
value: "{{ __('admin_menu_item_order') }}"
value: 1

View File

@@ -1,13 +0,0 @@
enabled: true
priority: 90
supper_admin_registered: true
from:
name: Flextype
email: sergey.romanenko@flextype.org
navigation:
links: { }
actions:
-
properties:
href: '{{ urlFor(''admin.accounts.index'') }}'
icon: { set: bootstrap, name: users }

View File

@@ -1,77 +0,0 @@
# enabled: true or false to disable the plugin
enabled: true
# Accounts plugin priority
priority: 100
# From email
from:
name: Flextype
email: sergey.romanenko@flextype.org
# Index(accounts)
index:
enabled: true
# Registraton
registration:
enabled: true
default_roles: user
default_state: enabled
redirect:
route:
name: accounts.login
# Login
login:
enabled: true
redirect:
route:
name: accounts.profile
# Profile
profile:
enabled: true
# Profile Edit
profile_edit:
enabled: true
redirect:
route:
name: accounts.profile
# New Password
new_password:
enabled: true
redirect:
route:
name: accounts.login
# Reset Password
reset_password:
enabled: true
redirect:
route:
name: accounts.login
# Logout
logout:
redirect:
route:
name: accounts.login
# Entries
entries:
accounts:
collection: accounts
fields:
uuid:
enabled: true
path: "/project/plugins/accounts/app/Fields/UuidField.php"
id:
enabled: true
path: "/project/plugins/accounts/app/Fields/IdField.php"
registered_at:
enabled: true
path: "/project/plugins/accounts/app/Fields/RegisteredAtField.php"

View File

@@ -1,5 +0,0 @@
# enabled: true or false to disable the plugin
enabled: true
# ACL plugin priority
priority: 40

View File

@@ -1,49 +0,0 @@
# enabled: true or false to disable the plugin
enabled: true
# custom admin pane route
route: admin
# entries settings
entries:
slugify: true
# plugin priority
priority: 50
# admin navigation
navigation:
dropdown:
links: []
actions:
- properties:
href: "{{ urlFor('admin.entries.index') }}"
icon:
set: bootstrap
name: newspaper
- properties:
href: "{{ urlFor('admin.media.index') }}"
icon:
set: bootstrap
name: images
- properties:
href: "{{ urlFor('admin.plugins.index') }}"
icon:
set: bootstrap
name: box
- properties:
href: "{{ urlFor('admin.tools.index') }}"
icon:
set: bootstrap
name: briefcase
- properties:
href: "{{ urlFor('admin.api.index') }}"
icon:
set: bootstrap
name: diagram-3
- properties:
href: "{{ urlFor('admin.settings.index') }}"
icon:
set: bootstrap
name: gear

View File

@@ -1,126 +0,0 @@
# enabled: true or false to disable the plugin
enabled: true
# Blueprint plugin priority
priority: 40
# Place to load
assetsLoadOnAdmin: true
assetsLoadOnSite: false
# Entries
entries:
directory: '/blueprints'
collections:
default:
filename: blueprint
extension: yaml
serializer: yaml
fields: []
# Blocks
blocks:
ActionsDropdown:
type: ActionsDropdown
properties: []
template: plugins/blueprints/blocks/blocks/ActionsDropdown/block.html
Anchor:
type: Anchor
properties: []
template: plugins/blueprints/blocks/blocks/Anchor/block.html
Alert:
type: Alert
properties: []
template: plugins/blueprints/blocks/blocks/Alert/block.html
Button:
type: Button
properties: []
template: plugins/blueprints/blocks/blocks/Button/block.html
ButtonGroup:
type: ButtonGroup
properties: []
template: plugins/blueprints/blocks/blocks/ButtonGroup/block.html
Display:
type: Display
properties: []
template: plugins/blueprints/blocks/blocks/Display/block.html
Divider:
type: Divider
properties: []
template: plugins/blueprints/blocks/blocks/Divider/block.html
Container:
type: Container
properties: []
blocks: []
template: plugins/blueprints/blocks/blocks/Container/block.html
Row:
type: Row
properties: []
blocks: []
template: plugins/blueprints/blocks/blocks/Row/block.html
Column:
type: Column
properties: []
blocks: []
template: plugins/blueprints/blocks/blocks/Column/block.html
Tabs:
type: Tabs
properties: []
template: plugins/blueprints/blocks/blocks/Tabs/block.html
Form:
type: Form
properties: []
blocks: []
template: plugins/blueprints/blocks/blocks/Form/block.html
Heading:
type: Heading
properties: []
template: plugins/blueprints/blocks/blocks/Heading/block.html
Image:
type: Image
properties: []
template: plugins/blueprints/blocks/blocks/Image/block.html
InputText:
type: InputText
properties: []
template: plugins/blueprints/blocks/blocks/InputText/block.html
InputEmail:
type: InputEmail
properties: []
template: plugins/blueprints/blocks/blocks/InputEmail/block.html
InputPassword:
type: InputPassword
properties: []
template: plugins/blueprints/blocks/blocks/InputPassword/block.html
InputTextarea:
type: InputTextarea
properties: []
template: plugins/blueprints/blocks/blocks/InputTextarea/block.html
InputHidden:
type: InputHidden
properties: []
template: plugins/blueprints/blocks/blocks/InputHidden/block.html
InputNumber:
type: InputNumber
properties: []
template: plugins/blueprints/blocks/blocks/InputNumber/block.html
InputTags:
type: InputTags
properties: []
template: plugins/blueprints/blocks/blocks/InputTags/block.html
InputSelect:
type: InputSelect
properties: []
template: plugins/blueprints/blocks/blocks/InputSelect/block.html
InputReset:
type: InputReset
properties: []
template: plugins/blueprints/blocks/blocks/InputReset/block.html
InputButton:
type: InputButton
properties: []
template: plugins/blueprints/blocks/blocks/InputButton/block.html
InputSubmit:
type: InputSubmit
properties: []
template: plugins/blueprints/blocks/blocks/InputSubmit/block.html

View File

@@ -1,183 +0,0 @@
# enabled: true or false to disable the plugin
enabled: true
# Plugin priority
priority: 41
# Place to load
assetsLoadOnAdmin: true
assetsLoadOnSite: false
# Blocks
blocks:
Codemirror:
type: Codemirror
properties:
name: codemirror
# Codemirror options
options:
# The mode to use.
# https://codemirror.net/mode/
# variants: yaml, yaml-frontmatter, htmlmixed, xml, php, javascript, markdown, css, twig
mode: "yaml-frontmatter"
# Explicitly set the line separator for the editor.
# By default is null)
lineSeparator: null
# Whether to show line numbers to the left of the editor.
lineNumbers: true
# Whether CodeMirror should scroll or wrap for long lines.
# Defaults to false (scroll).
lineWrapping: false
# At which number to start counting lines.
firstLineNumber: 1
# Determines whether the gutter scrolls along with the content horizontally (false)
# or whether it stays fixed during horizontal scrolling.
fixedGutter: true
# Chooses a scrollbar implementation.
scrollbarStyle: "native"
# When fixedGutter is on, and there is a horizontal scrollbar, by default the gutter will be visible to the left of this scrollbar.
# If this option is set to true, it will be covered by an element with class CodeMirror-gutter-filler.
coverGutterNextToScrollbar: true
# This disables editing of the editor content by the user.
# If the special value "nocursor" is given (instead of simply true),
# focusing of the editor is also disallowed.
readOnly: false
# This label is read by the screenreaders when CodeMirror text area is focused.
# This is helpful for accessibility.
screenReaderLabel: ""
# Whether the cursor should be drawn when a selection is active.
showCursorWhenSelecting: false
# The theme to style the editor with. only "elegant" available
theme: elegant
# The width of a tab character.
# Defaults to 2.
tabSize: 2
# How many spaces a block (whatever that means in the edited language) should be indented.
# The default is 2.
indentUnit: 2
# Whether, when indenting, the first N*tabSize spaces should be replaced by N tabs.
# Default is false.
indentWithTabs: false
# Whether to use the context-sensitive indentation that the mode provides (or just indent the same as the line before).
# Defaults to true.
smartIndent: true
# Flips overall layout and selects base paragraph direction to be left-to-right or right-to-left.
# Default is "ltr".
direction: ltr
# Determines whether horizontal cursor movement through right-to-left (Arabic, Hebrew) text is visual
# (pressing the left arrow moves the cursor left) or logical (pressing the left arrow moves to the next lower index in the string, which is visually right in right-to-left text).
# The default is false on Windows, and true on other platforms.
rtlMoveVisually: false
# Configures whether the editor should re-indent the current line when a character is typed that might change its proper indentation (only works if the mode supports indentation).
# Default is true.
electricChars: true
# Configures the key map to use.
# https://codemirror.net/doc/manual.html#keymaps
keyMap: "default"
# When enabled, which is the default, doing copy or cut when there is no selection will copy or cut the whole lines that have cursors on them.
lineWiseCopyCut: true
# When pasting something from an external source (not from the editor itself), if the number of lines matches the number of selection,
# CodeMirror will by default insert one line per selection. You can set this to false to disable that behavior.
pasteLinesPerSelection: true
# Determines whether multiple selections are joined as soon as they touch (the default) or only when they overlap (true).
selectionsMayTouch: true
# The maximum number of undo levels that the editor stores.
# Note that this includes selection change events.
undoDepth: 200
# The period of inactivity (in milliseconds) that will cause a new history event to be started when typing or deleting.
historyEventDelay: 1250
# Can be used to make CodeMirror focus itself on initialization.
#
# When fromTextArea is used, and no explicit value is given for this option,
# it will be set to true when either the source textarea is focused,
# or it has an autofocus attribute and no other element is focused.
autofocus: false
# Controls whether drag-and-drop is enabled.
dragDrop: true
# Half-period in milliseconds used for cursor blinking.
# By setting this to zero, blinking can be disabled. A negative value hides the cursor entirely.
cursorBlinkRate: 530
# How much extra space to always keep above and below the cursor when approaching the top or bottom of the visible view in a scrollable document.
cursorScrollMargin: 0
# Determines the height of the cursor.
# Default is 1, meaning it spans the whole height of the line.
# For some fonts (and by some tastes) a smaller height (for example 0.85),
# which causes the cursor to not reach all the way to the bottom of the line, looks better
cursorHeight: 1
# If set to true, will keep the cursor height constant for an entire line (or wrapped part of a line).
# When false, the cursor's height is based on the height of the adjacent reference character.
singleCursorHeightPerLine: true
# Controls whether, when the context menu is opened with a click outside of the current selection, the cursor is moved to the point of the click.
resetSelectionOnContextMenu: true
# Highlighting is done by a pseudo background-thread that will work for workTime milliseconds
workTime: 200
# and then use timeout to sleep for workDelay milliseconds.
workDelay: 300
# Indicates how quickly CodeMirror should poll its input textarea for changes (when focused).
# Most input is captured by events, but some things, like IME input on some browsers, don't generate events that allow CodeMirror to properly detect it.
pollInterval: 100
# By default, CodeMirror will combine adjacent tokens into a single span if they have the same class.
# This will result in a simpler DOM tree, and thus perform better. With some kinds of styling (such as rounded corners), this will change the way the document looks. You can set this option to false to disable this behavior.
flattenSpans: true
# When enabled (off by default), an extra CSS class will be added to each token, indicating the (inner) mode that produced it, prefixed with "cm-m-".
# For example, tokens from the XML mode will get the cm-m-xml class.
# https://codemirror.net/doc/manual.html#innerMode
addModeClass: false
# When highlighting long lines, in order to stay responsive,
# the editor will give up and simply style the rest of the line as plain text when it reaches a certain position.
maxHighlightLength: 10000
# Specifies the amount of lines that are rendered above and below the part of the document that's currently scrolled into view.
# This affects the amount of updates needed when scrolling, and the amount of work that such an update does.
# You should usually leave it at its default, 10. Can be set to Infinity to make sure the whole document is always rendered, and thus the browser's text search works on it. This will have bad effects on performance of big documents.
viewportMargin: 10
# Specifies whether or not spellcheck will be enabled on the input.
spellcheck: false
# Specifies whether or not autocorrect will be enabled on the input.
autocorrect: false
# Specifies whether or not autocapitalization will be enabled on the input.
autocapitalize: false
template: plugins/codemirror/blocks/Codemirror/block.html

View File

@@ -1,14 +0,0 @@
# enabled: true or false to disable the plugin
enabled: true
# Contact plugin priority
priority: 100
default_subject: Default subject
message_success: "Email sended."
from:
name: Flextype
email: sergey.romanenko@flextype.org
to:
name: Flextype
email: sergey.romanenko@flextype.org

View File

@@ -1,2 +0,0 @@
enabled: true
priority: 100

View File

@@ -1,3 +0,0 @@
enabled: true
priority: 100
feed: []

View File

@@ -1,160 +0,0 @@
# enabled: true or false to disable the plugin
enabled: true
# Plugin priority
priority: 41
# Place to load
assetsLoadOnAdmin: true
assetsLoadOnSite: false
# Blocks
blocks:
Flatpickr:
type: Flatpickr
properties:
name: flatpickr
# Flatpickr options
options:
# Allows the user to enter a date directly input the input field. By default, direct entry is disabled.
allowInput: false
# Allow preloading of invalid date
allowInvalidPreload: false
# Exactly the same as date format, but for the altInput field
altFormat: "F j, Y"
# Show the user a readable date (as per altFormat), but return something totally different to the server.
altInput: false
# This class will be added to the input element created by the altInput option.
# Note that altInput already inherits classes from the original input.
altInputClass: ""
# Whether to enable animations, such as month transitions
animate: true
# Defines how the date will be formatted in the aria-label for calendar days, using the same tokens as dateFormat.
# If you change this, you should choose a value that will make sense if a screen reader reads it out loud.
ariaDateFormat: "F j, Y"
# Whether the default time should be auto-filled when the input is empty and gains or loses focus.
autoFillDefaultTime: true
# Whether clicking on the input should open the picker.
# Set it to false if you only want to open the calendar programmatically
clickOpens: true
# Whether calendar should close after date selection
closeOnSelect: true
# If "mode" is "multiple", this string will be used to join
# selected dates together for the date input value.
conjunction: null
# A string of characters which are used to define how the date will be displayed in the input box.
# See https://chmln.github.io/flatpickr/formatting
dateFormat: "d-m-Y H:i"
# The initial selected date(s).
defaultDate: null
# Initial value of the hour element, when no date is selected
defaultHour: 12
# Initial value of the minute element, when no date is selected
defaultMinute: 0
# Initial value of the seconds element, when no date is selected
defaultSeconds: 0
# Set this to true to always use the non-native picker on mobile devices.
# By default, Flatpickr utilizes native datetime widgets unless certain options (e.g. disable) are used.
disableMobile: false
# Disables all dates except these specified.
# See https://chmln.github.io/flatpickr/examples/#disabling-all-dates-except-select-few
#enable: []
# Disables certain dates, preventing them from being selected.
# See https://chmln.github.io/flatpickr/examples/#disabling-specific-dates
#disable: []
# Enables seconds selection in the time picker.
enableSeconds: false
# Enables the time picker
enableTime: true
# Adjusts the step for the hour input (incl. scrolling)
hourIncrement: 1
# By default, clicking anywhere outside of calendar/input will close the calendar.
# Clicking on elements specified in this option will not close the calendar
ignoredFocusElements: []
# Displays the calendar inline
inline: false
# The locale, either as a string (e.g. "ru", "en") or as an object.
# See https://chmln.github.io/flatpickr/localization/
locale: "default"
# Adjusts the step for the minute input (incl. scrolling)
minuteIncrement: 5
# Date selection mode, defaults to "single"
# variants: single, multiple, or range
mode: "single"
# How the month selector in the calendar should be shown
# variants: dropdown, static
monthSelectorType: "static"
# HTML for the right arrow icon, used to switch months.
nextArrow: "<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>"
# Hides the day selection in calendar.
# Use it along with "enableTime" to create a time picker.
noCalendar: false
# A custom datestring parser
parseDate: false
# Plugins.
# See https://chmln.github.io/flatpickr/plugins/
# plugins: []
# How the calendar should be positioned with regards to the input.
# variants: auto, above, below, auto left, auto center, above right, below left, below center, below right
position: "auto"
# The element off of which the calendar will be positioned.
# Defaults to the date input
positionElement: null
# HTML for the left arrow icon, used to switch months.
prevArrow: "<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>"
# Whether to display the current month name in shorthand mode, e.g. "Sep" instead "September"
shorthandCurrentMonth: false
# Creates a wrapper to position the calendar. Use this if the input is inside a scrollable element
static: false
# Sets the number of months to show
showMonths: 1
# Displays time picker in 24 hour mode without AM/PM selection when enabled.
time_24hr: false
# Display week numbers left of the calendar.
weekNumbers: false
# See https://chmln.github.io/flatpickr/examples/#flatpickr-external-elements
wrap: false
template: plugins/flatpickr/blocks/Flatpickr/block.html

View File

@@ -1,5 +0,0 @@
# enabled: true or false to disable the plugin
enabled: true
# Icon plugin priority
priority: 1

View File

@@ -1,2 +0,0 @@
enabled: true
priority: 100

View File

@@ -1 +0,0 @@
enabled: true

View File

@@ -1,5 +0,0 @@
# enabled: true or false to disable the plugin
enabled: true
# PHP Mailer plugin priority
priority: 100

View File

@@ -1,2 +0,0 @@
enabled: true
priority: 100

View File

@@ -1,3 +0,0 @@
enabled: true
priority: 100
redirect: []

View File

@@ -1 +0,0 @@
enabled: true

View File

@@ -1,91 +0,0 @@
# enabled: true or false to disable the plugin
enabled: true
# Plugin priority
priority: 41
# Place to load
assetsLoadOnAdmin: true
assetsLoadOnSite: false
# Blocks
blocks:
Select2:
type: Select2
properties:
name: select2
# Select2 options
options:
# Provides support for ajax data sources.
# See: https://select2.org/data-sources/ajax
ajax: null
# Provides support for clearable selections.
# See: https://select2.org/selections#clearable-selections
allowClear: false
# Controls whether the dropdown is closed after a selection is made.
# See: https://select2.org/dropdown#forcing-the-dropdown-to-remain-open-after-selection
closeOnSelect: true
# Allows rendering dropdown options from an array.
# See: https://select2.org/data-sources/arrays
data: null
# Enable debugging messages in the browser console.
debug: false
# Sets the dir attribute on the selection and dropdown containers to indicate the direction of the text.
# See: https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/dir
dir: ltr
# When set to `true`, the select control will be disabled.
disabled: false
# Dropdown auto width
dropdownAutoWidth: false
# Adds additional CSS classes to the dropdown container.
# The helper :all: can be used to add all CSS classes present on the original <select> element.
dropdownCssClass: ''
# Maximum number of characters that may be provided for a search term.
maximumInputLength: 0
# The maximum number of items that may be selected in a multi-select control.
# If the value of this option is less than 1, the number of selected items will not be limited.
maximumSelectionLength: 0
# Minimum number of characters required to start a search.
# See: https://select2.org/searching#minimum-search-term-length
minimumInputLength: 0
# The minimum number of results required to display the search box.
# See: https://select2.org/searching#limiting-display-of-the-search-box-to-large-result-sets
minimumResultsForSearch: 0
# This option enables multi-select (pillbox) mode.
# Select2 will automatically map the value of the multiple HTML attribute to this option during initialization.
multiple: false
# Specifies the placeholder for the control.
placeholder: null
# Adds additional CSS classes to the selection container.
# The helper :all: can be used to add all CSS classes present on the original <select> element.
selectionCssClass: ''
# Implements automatic selection when the dropdown is closed.
# See: https://select2.org/dropdown#automatic-selection
selectOnClose: false
# If true, resolves issue for multiselects using closeOnSelect: false that caused the list of results
# to scroll to the first selection after each select/unselect (see https://github.com/select2/select2/pull/5150).
# This behaviour was intentional to deal with infinite scroll UI issues (if you need this behavior, set false)
# but it created an issue with multiselect dropdown boxes of fixed length.
# This pull request adds a configurable option to toggle between these two desirable behaviours.
scrollAfterSelect: false
template: plugins/select2/blocks/Select2/block.html

View File

@@ -1,44 +0,0 @@
# enabled: true or false to disable the plugin
enabled: true
# Site plugin priority
priority: 10000
# The title of the website
title: Flextype
# The description of the website
description: Build fast, flexible, easier to manage websites with Flextype.
# The keywords of the website
keywords: flextype, php, cms, flat-file cms, flat cms, flatfile cms, html
# The robots of the website
robots: index, follow
# The name and email address of the website author
author:
email: ''
name: ''
# The theme to use.
#
# Don't edit the provided theme templates directly, because they get updated
# in next releases. If you wish to modify a default theme, copy its folder, and
# change the name here accordingly.
theme: bootstrap
# The entries settings
#
# - main: Main entry
# - error404.title: Title to display on Error404 page
# - error404.description: Description to display on Error404 page
# - error404.content: Content to display on Error404 page
# - error404.template: Template to use on Error404 page
entries:
main: home
error404:
title: Error 404
description: We're sorry but the page you are looking for doesn't appear to exist!
content: "<center>We're sorry but the page you are looking for doesn't appear to exist!</center>"
template: default

View File

@@ -1,22 +0,0 @@
# enabled: true or false to disable the plugin
enabled: true
# Sitemap plugin priority
priority: 100
# Route
route: sitemap.xml
# Ignore list
ignore:
# Addition list
additions:
# Default values for entries
default:
changefreq: daily
priority: !!float 1
# Date format
date_format: Y-m-d

View File

@@ -1,154 +0,0 @@
# enabled: true or false to disable the plugin
enabled: true
# Plugin priority
priority: 41
# Place to load
assetsLoadOnAdmin: true
assetsLoadOnSite: false
# Blocks
blocks:
Tagify:
type: Tagify
properties:
name: tagify
# Tagify options
options:
# Tag data Object property which will be displayed as the tag's text.
# Remember to keep "value" property unique.
tagTextProp: "value"
# Placeholder text.
# If this attribute is set on an input/textarea element it will override this setting
placeholder: ""
# [RegEx string] split tags by any of these delimiters.
# Example delimeters: ",|.| " (comma, dot or whitespace)
delimiters: ","
# Validate input by RegEx pattern (can also be applied on the input itself as an attribute) Ex: /[1-9]/
pattern: null
# Use select for single-value dropdown-like select box.
# See mix as value to allow mixed-content. The 'pattern' setting must be set to some character.
mode: null
# Interpolation for mix mode.
# Everything between these will become a tag
mixTagsInterpolator: ['[[', ']]']
# Define conditions in which typed mix-tags content is allowing a tag to be created after.
mixTagsAllowedAfter: /,|\.|\:|\s/
# Should duplicate tags be allowed or not
duplicates: false
# If `true` trim the tag's value (remove before/after whitespaces)
trim: true
# Should ONLY use tags allowed in whitelist.
# In `mix-mode`, setting it to `false` will not allow creating new tags.
enforceWhitelist: false
# Tries to suggest the input's value while typing (match from whitelist) by adding the rest of term as grayed-out text
autoComplete.enabled: true
# If `true`, when `→` is pressed, use the suggested value to create a tag, else just auto-completes the input.
# In mixed-mode this is ignored and treated as "true"
rautoComplete.rightKey: false
# An array of allowed tags (Strings or Objects).
# When using Objects in the whitelist array a `value` property is a must & should be unique.
# Also, the *whitelist used for auto-completion when `autoCompletion.enabled` is `true`
whitelist: []
# An array of tags which aren't allowed
blacklist: []
# Automatically adds the text which was inputed as a tag when blur event happens
addTagOnBlur: true
# `false` or `null` will disallow editing
editTags:
# Number of clicks to enter "edit-mode": 1 for single click.
# Any other value is considered as double-click
clicks: 1
# keeps invalid edits as-is until esc is pressed while in focus
keepInvalid: true
# If `true`, do not remove tags which did not pass validation
keepInvalidTags: false
# If `true`, do not add invalid, temporary, tags before automatically removing them
skipInvalid: true
# On pressing backspace key:
# true - remove last tag
# edit - edit last tag
backspace: true
# `node` or `string` to add after a tag added
mixMode:
insertAfterTag: \u00A0
# allows tags to get focus, and also to be deleted via backspace
a11y:
focusableTags: false
dropdown:
# Minimum characters input for showing a suggestions list.
# `false` will not render a suggestions list.
enabled: 2
# if `true`, match exact item when a suggestion is selected (from the dropdown) and also more strict matching for dulpicate items.
# Ensure `fuzzySearch` is `false` for this to work.
caseSensitive: false
# Maximum items to show in the suggestions list
maxItems: 10
# Custom classname for the dropdown suggestions selectbox
classname: ""
# Enables filtering dropdown items values' by string containing and not only beginning
fuzzySearch: true
# Enable searching for accented items in the whitelist without typing exact match
accentedSearch: true
# manual - will not render the dropdown, and you would need to do it yourself.
# text - places the dropdown next to the caret
# input - places the dropdown next to the input (useful in rare situations)
# all - normal, full-width design
position: "all"
# When a suggestions list is shown, highlight the first item,
# and also suggest it in the input (The suggestion can be accepted with `→` key)
highlightFirst: false
# close the dropdown after selecting an item, if `enabled:0` is set (which means always show dropdown on focus)
closeOnSelect: true
# Keep typed text after selecting a suggestion
clearOnSelect: true
# When a user types something and trying to match the whitelist items for suggestions,
# this setting allows matching other keys of a whitelist objects
searchKeys: ["value", "searchBy"]
# If defined, will force the placement of the dropdown in respect
# to the Boolean value: `true` will always show the suggestions dropdown above the input field a
# and `false` will always show it below.
#
# By default this setting it not defined and the placement of the dropdown is automatically decided according to the space availble,
# where opening it below the input is preferred.
placeAbove: ""
template: plugins/tagify/blocks/Tagify/block.html

View File

@@ -1,18 +0,0 @@
# enabled: true or false to disable the plugin
enabled: true
# Themes Admin plugin priority
priority: 90
# Themes Admin navigation
navigation:
dropdown: []
actions:
- properties:
target: "_blank"
href: "{{ getBaseUrl() }}"
icon:
set: bootstrap
name: globe

View File

@@ -1,151 +0,0 @@
# enabled: true or false to disable the plugin
enabled: true
# Plugin priority
priority: 41
# Place to load
assetsLoadOnAdmin: true
assetsLoadOnSite: false
# Blocks
blocks:
Trumbowyg:
type: Trumbowyg
properties:
name: trumbowyg
# Trumbowyg options
options:
# Localization
#
# If the lang was not found, english values are used by default.
lang: en
# SVG icons
#
# A pack of SVG icons is available and enabled by default.
# This file is loaded via XHR request in JavaScript so it is possible the path is not matching with your assets file paths.
# You can change the path of the SVG or disable this feature.
#
# If you do not want SVG icons, you can set this option to `false`.
# Then, you can add your custom icons by CSS or what you want.
svgPath: ../../project/plugins/trumbowyg/blocks/Trumbowyg/dist/fonts/trumbowyg/icons.svg
# Semantic
#
# Generates a better, more semantic oriented HTML
# (i.e. <em> instead of <i>, <strong> instead of <b>, etc.).
semantic:
'b': 'strong'
'i': 'em'
's': 'del'
'strike': 'del'
'p': 'p'
# Reset CSS
#
# If you don't want the page style to impact on the look of the text in the editor,
# you will need to apply a reset-css on the editor.
# To activate this feature set `true`
resetCss: false
# Auto grow
#
# The text editing zone can extend itself when writing a long text.
# To activate this feature set `true`
autogrow: false
# Auto grow on enter
#
# The text editing zone can extend itself when editor get focus and reduce on blur.
# To activate this feature set `true`
autogrowOnEnter: false
# URL protocol
#
# An option to auto-prefix URLs with a protocol.
# When this option is set to true, URLs missing a protocol will be prefixed
# with https://. Alternatively, a string can be provided for a custom prefix.
# For example, a value of true would convert example.com to https://example.com,
# while a value of ftp converts to ftp://example.com.
#
# Anchors, email addresses and relative links are left unchanged.
urlProtocol: false
# Image width modal edit
#
# Add a field in image insert/edit modal which allow users to set the image width.
# To activate this feature set `true`
imageWidthModalEdit: false
# Remove format pasted
#
# If you don't want styles pasted from clipboard (from Word or other webpage for example),
# set the removeformatPasted option to `true`
removeformatPasted: true
# Hide button texts
#
# You can hide button texts showed when you put `svgPath` to `false`.
# If you disable SVG icons and button texts, you should design them by yourself.
hideButtonTexts: false
# Tags to remove
#
# Allow to sanitize the code by removing all tags you want.
# The `tagsToRemove` option is an array.
tagsToRemove: []
# Tags to keep
#
# Sometimes you want to keep some empty `i` tags for Font Awesome or anything else.
# You can define this list via the `tagsToKeep` option.
tagsToKeep: ['hr', 'img', 'embed', 'iframe', 'input']
# Minimal links
#
# Reduce the link overlay to use only `url` and `text` fields, omitting `title` and `target`.
minimalLinks: false
# Default link target
#
# Allow to set link target attribute value to what you want, even if the `minimalLinks` option is set to `true`.
defaultLinkTarget: _blank
# Tag classes
#
# Add classes to any tag.
# for e.g:
# h1: 'h1', // Bootstrap example
# blockquote: 'bg-grey-100 rounded-xl', // Tailwind CSS example
tagClasses: []
# Active dropdown icon
#
# Dropdown icon can change to the active sub-button icon with this option enabled.
# To activate this feature set `true`
changeActiveDropdownIcon: false
# Prefix
#
# Prefix of all class added on elements of Trumbowyg
prefix: 'trumbowyg-'
# Disabled
disabled: false
# Button pane
#
# Available buttons: viewHTML, undo, redo, strong, em, del, superscript, subscript, link
# insertImage, justifyLeft, justifyCenter, justifyRight, justifyFull, unorderedList, orderedList,
# horizontalRule, removeformat, fullscreen
btns: []
# Plugins
#
# Available plugins https://alex-d.github.io/Trumbowyg/documentation/plugins/
plugins: []
template: plugins/trumbowyg/blocks/Trumbowyg/block.html

View File

@@ -1,42 +0,0 @@
# enabled: true or false to disable the plugin
enabled: true
# Twig
#
# - auto_reload: When developing with Twig, it's useful to recompile the template
# whenever the source code changes. If you don't provide a value
# for the auto_reload option, it will be determined automatically
# based on the debug value.
#
# - debug: When set to true, the generated templates have a __toString()
# method that you can use to display the generated nodes
#
# - charset: The charset used by the templates.
#
# - cache: Set false to disable caching.
#
# - extensions Flextype Twig Extension to load.
auto_reload: true
cache: true
debug: false
charset: "UTF-8"
extensions:
- I18n
- Filesystem
- Csrf
- Constants
- Strings
- Arrays
- Filters
- Functions
- Tests
- Emitter
- Registry
- Entries
- Serializers
- Parsers
- Flash
- Slugify
# Twig plugin priority
priority: 0

View File

@@ -1 +0,0 @@
blog_id: blog

View File

@@ -1,11 +0,0 @@
hashed_password: $2y$10$lAEa.dne32mIfa5qxdsOL.zbPPk1n4cpZgtvz4Iit7TyRYLcXy/Fy
roles: admin
state: enabled
published_at: '09-09-2021 17:41'
published_by: ''
created_at: '09-09-2021 17:41'
created_by: ''
routable: true
visibility: visible
uuid: 1b22573f-4c8a-45c6-a860-5f24a1d6ae5b
blueprint: admin/entries/default

View File

@@ -1,10 +0,0 @@
resource:
file:
name: photo-1557682250-33bd709cbe85.jpeg
type: image/jpeg
tmp_name: /Applications/MAMP/tmp/php/phpMqaoYu
error: 0
size: 14714
created_at: '22-08-2021 14:45'
created_by: ''
uuid: 1479014f-bc8e-4ed0-959c-b858ccdfb249

View File

@@ -1,10 +0,0 @@
resource:
file:
name: photo-1557682250-33bd709cbe85.jpeg
type: image/jpeg
tmp_name: /Applications/MAMP/tmp/php/php29hCcV
error: 0
size: 14714
created_at: '22-08-2021 14:48'
created_by: ''
uuid: 49a4d3e6-dcd3-4c24-8cd4-53cfbbc18ba2

View File

@@ -1,10 +0,0 @@
resource:
file:
name: photo-1557682250-33bd709cbe85.jpeg
type: image/jpeg
tmp_name: /Applications/MAMP/tmp/php/php4QPI2d
error: 0
size: 14714
created_at: '22-08-2021 14:48'
created_by: ''
uuid: 4e54069c-1cbd-48da-9990-8f7d9731fd20

View File

@@ -1,10 +0,0 @@
resource:
file:
name: photo-1557682250-33bd709cbe85.jpeg
type: image/jpeg
tmp_name: /Applications/MAMP/tmp/php/phpxN5uxW
error: 0
size: 14714
created_at: '22-08-2021 14:40'
created_by: ''
uuid: 2adce02f-8a5c-40ed-935a-6991ce48d415

View File

@@ -1,10 +0,0 @@
resource:
file:
name: photo-1557682250-33bd709cbe85.jpeg
type: image/jpeg
tmp_name: /Applications/MAMP/tmp/php/phpRLVfwT
error: 0
size: 14714
created_at: '22-08-2021 15:13'
created_by: ''
uuid: 66f6280e-6622-41e9-ac12-23e09c3d442d

View File

@@ -1,10 +0,0 @@
resource:
file:
name: photo-1557682250-33bd709cbe85.jpeg
type: image/jpeg
tmp_name: /Applications/MAMP/tmp/php/phpHhbN48
error: 0
size: 14714
created_at: '22-08-2021 14:59'
created_by: ''
uuid: 7cfdaf9c-89bb-43a2-a3d1-fcbbfff29182

View File

@@ -1,10 +0,0 @@
resource:
file:
name: photo-1557682250-33bd709cbe85.jpeg
type: image/jpeg
tmp_name: /Applications/MAMP/tmp/php/phpKXRCiQ
error: 0
size: 14714
created_at: '22-08-2021 15:00'
created_by: ''
uuid: 3fcd6289-540f-40c8-9616-3350dd5a6072

View File

@@ -1,3 +0,0 @@
created_at: '21-08-2021 18:17'
created_by: ''
uuid: 2304c28d-7407-4221-b978-e73c773f7932

View File

@@ -1,10 +0,0 @@
resource:
file:
name: photo-1557682250-33bd709cbe85.jpeg
type: image/jpeg
tmp_name: /Applications/MAMP/tmp/php/phpgVzMz3
error: 0
size: 14714
created_at: '22-08-2021 14:50'
created_by: ''
uuid: a4b9bc9d-fbde-46a3-a17f-e585753b37e1

View File

@@ -1,10 +0,0 @@
resource:
file:
name: photo-1557682250-33bd709cbe85.jpeg
type: image/jpeg
tmp_name: /Applications/MAMP/tmp/php/phpQhhVQx
error: 0
size: 14714
created_at: '22-08-2021 14:47'
created_by: ''
uuid: a6a49d66-eba0-4518-9c85-5e199081dcd2

View File

@@ -1,10 +0,0 @@
resource:
file:
name: photo-1557682250-33bd709cbe85.jpeg
type: image/jpeg
tmp_name: /Applications/MAMP/tmp/php/phpBI26Gm
error: 0
size: 14714
created_at: '22-08-2021 14:47'
created_by: ''
uuid: b81ad556-a311-46ab-aaaa-23eb4d6a96b0

View File

@@ -1,4 +0,0 @@
title: Foo
calls: 31
limit_calls: 0
state: enabled

View File

@@ -1,12 +0,0 @@
title: Default
icon:
icon: newspaper
set: bootstrap
limit_calls: 0
calls: 0
state: enabled
uuid: 1b22573f-4c8a-45c6-a860-5f24a1d6ae5b
created_by: 1b22573f-4c8a-45c6-a860-5f24a1d6ae5b
created_at: null
updated_by: 1b22573f-4c8a-45c6-a860-5f24a1d6ae5b
updated_at: null

View File

@@ -1,12 +0,0 @@
title: Default
icon:
icon: images
set: bootstrap
limit_calls: 0
calls: 0
state: enabled
uuid: 1b22573f-4c8a-45c6-a860-5f24a1d6ae5b
created_by: 1b22573f-4c8a-45c6-a860-5f24a1d6ae5b
created_at: null
updated_by: 1b22573f-4c8a-45c6-a860-5f24a1d6ae5b
updated_at: null

View File

@@ -1,12 +0,0 @@
title: Default
icon:
icon: archive
set: bootstrap
limit_calls: 0
calls: 0
state: enabled
uuid: 1b22573f-4c8a-45c6-a860-5f24a1d6ae5b
created_by: 1b22573f-4c8a-45c6-a860-5f24a1d6ae5b
created_at: null
updated_by: 1b22573f-4c8a-45c6-a860-5f24a1d6ae5b
updated_at: null

View File

@@ -1,12 +0,0 @@
title: Default
icon:
icon: archive
set: bootstrap
limit_calls: 0
calls: 0
state: enabled
uuid: 1b22573f-4c8a-45c6-a860-5f24a1d6ae5b
created_by: 1b22573f-4c8a-45c6-a860-5f24a1d6ae5b
created_at: null
updated_by: 1b22573f-4c8a-45c6-a860-5f24a1d6ae5b
updated_at: null

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 MiB