mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-05-31 07:44:43 +00:00
- removed token profile page
- PhpCsFixer fix
This commit is contained in:
+66
-65
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
$finder = Symfony\Component\Finder\Finder::create()
|
$finder = PhpCsFixer\Finder::create()
|
||||||
->in([
|
->in([
|
||||||
__DIR__ . '/app',
|
__DIR__ . '/app',
|
||||||
__DIR__ . '/routes',
|
__DIR__ . '/routes',
|
||||||
@@ -11,69 +11,70 @@ $finder = Symfony\Component\Finder\Finder::create()
|
|||||||
->ignoreDotFiles(true)
|
->ignoreDotFiles(true)
|
||||||
->ignoreVCS(true);
|
->ignoreVCS(true);
|
||||||
|
|
||||||
return PhpCsFixer\Config::create()
|
$config = new PhpCsFixer\Config();
|
||||||
->setRules([
|
|
||||||
'@PSR2' => true,
|
return $config->setRules([
|
||||||
'array_syntax' => [
|
'@PSR2' => true,
|
||||||
'syntax' => 'short'
|
'array_syntax' => [
|
||||||
|
'syntax' => 'short'
|
||||||
|
],
|
||||||
|
'ordered_imports' => [
|
||||||
|
'sortAlgorithm' => 'length'
|
||||||
|
],
|
||||||
|
'blank_line_before_statement' => [
|
||||||
|
'statements' => ['break', 'case', 'continue', 'declare', 'default', 'die', 'do', 'exit', 'for', 'foreach', 'goto', 'if', 'include', 'include_once', 'require', 'require_once', 'return', 'switch', 'throw', 'try', 'while', 'yield', 'yield_from'],
|
||||||
|
],
|
||||||
|
'class_attributes_separation' => [
|
||||||
|
'elements' => [
|
||||||
|
'method',
|
||||||
],
|
],
|
||||||
'ordered_imports' => [
|
],
|
||||||
'sortAlgorithm' => 'length'
|
'method_argument_space' => [
|
||||||
],
|
'on_multiline' => 'ensure_fully_multiline',
|
||||||
'blank_line_before_statement' => [
|
'keep_multiple_spaces_after_comma' => true,
|
||||||
'statements' => ['break', 'case', 'continue', 'declare', 'default', 'die', 'do', 'exit', 'for', 'foreach', 'goto', 'if', 'include', 'include_once', 'require', 'require_once', 'return', 'switch', 'throw', 'try', 'while', 'yield', 'yield_from'],
|
],
|
||||||
],
|
'no_extra_blank_lines' => [
|
||||||
'class_attributes_separation' => [
|
'break', 'case', 'continue', 'curly_brace_block', 'default', 'extra', 'parenthesis_brace_block', 'return', 'square_brace_block', 'switch', 'throw', 'use', 'useTrait', 'use_trait'
|
||||||
'elements' => [
|
],
|
||||||
'method',
|
'cast_spaces' => [
|
||||||
],
|
'space' => 'single'
|
||||||
],
|
],
|
||||||
'method_argument_space' => [
|
'phpdoc_single_line_var_spacing' => true,
|
||||||
'on_multiline' => 'ensure_fully_multiline',
|
'phpdoc_var_without_name' => true,
|
||||||
'keep_multiple_spaces_after_comma' => true,
|
'single_space_after_construct' => true,
|
||||||
],
|
'single_line_after_imports' => true,
|
||||||
'no_extra_blank_lines' => [
|
'no_unused_imports' => true,
|
||||||
'break', 'case', 'continue', 'curly_brace_block', 'default', 'extra', 'parenthesis_brace_block', 'return', 'square_brace_block', 'switch', 'throw', 'use', 'useTrait', 'use_trait'
|
'not_operator_with_successor_space' => true,
|
||||||
],
|
'trailing_comma_in_multiline_array' => true,
|
||||||
'cast_spaces' => [
|
'phpdoc_scalar' => true,
|
||||||
'space' => 'single'
|
'unary_operator_spaces' => true,
|
||||||
],
|
'binary_operator_spaces' => true,
|
||||||
'phpdoc_single_line_var_spacing' => true,
|
'single_trait_insert_per_statement' => false,
|
||||||
'phpdoc_var_without_name' => true,
|
'no_spaces_around_offset' => true,
|
||||||
'single_space_after_construct' => true,
|
'method_chaining_indentation' => true,
|
||||||
'single_line_after_imports' => true,
|
'array_indentation' => true,
|
||||||
'no_unused_imports' => true,
|
'single_quote' => true,
|
||||||
'not_operator_with_successor_space' => true,
|
'no_singleline_whitespace_before_semicolons' => true,
|
||||||
'trailing_comma_in_multiline_array' => true,
|
'no_empty_statement' => true,
|
||||||
'phpdoc_scalar' => true,
|
'standardize_increment' => true,
|
||||||
'unary_operator_spaces' => true,
|
'object_operator_without_whitespace' => true,
|
||||||
'binary_operator_spaces' => true,
|
'ternary_operator_spaces' => true,
|
||||||
'single_trait_insert_per_statement' => false,
|
'no_leading_namespace_whitespace' => true,
|
||||||
'no_spaces_around_offset' => true,
|
'no_blank_lines_before_namespace' => true,
|
||||||
'method_chaining_indentation' => true,
|
'blank_line_after_namespace' => true,
|
||||||
'array_indentation' => true,
|
'fully_qualified_strict_types' => true,
|
||||||
'single_quote' => true,
|
'single_line_throw' => true,
|
||||||
'no_singleline_whitespace_before_semicolons' => true,
|
'function_typehint_space' => true,
|
||||||
'no_empty_statement' => true,
|
'simplified_if_return' => true,
|
||||||
'standardize_increment' => true,
|
'no_useless_else' => true,
|
||||||
'object_operator_without_whitespace' => true,
|
'no_unneeded_curly_braces' => true,
|
||||||
'ternary_operator_spaces' => true,
|
'no_empty_comment' => true,
|
||||||
'no_leading_namespace_whitespace' => true,
|
'no_blank_lines_after_class_opening' => true,
|
||||||
'no_blank_lines_before_namespace' => true,
|
'whitespace_after_comma_in_array' => true,
|
||||||
'blank_line_after_namespace' => true,
|
'trim_array_spaces' => true,
|
||||||
'fully_qualified_strict_types' => true,
|
'no_whitespace_before_comma_in_array' => true,
|
||||||
'single_line_throw' => true,
|
'constant_case' => true,
|
||||||
'function_typehint_space' => true,
|
'lowercase_keywords' => true,
|
||||||
'simplified_if_return' => true,
|
'lowercase_static_reference' => true,
|
||||||
'no_useless_else' => true,
|
])
|
||||||
'no_unneeded_curly_braces' => true,
|
|
||||||
'no_empty_comment' => true,
|
|
||||||
'no_blank_lines_after_class_opening' => true,
|
|
||||||
'whitespace_after_comma_in_array' => true,
|
|
||||||
'trim_array_spaces' => true,
|
|
||||||
'no_whitespace_before_comma_in_array' => true,
|
|
||||||
'constant_case' => true,
|
|
||||||
'lowercase_keywords' => true,
|
|
||||||
'lowercase_static_reference' => true,
|
|
||||||
])
|
|
||||||
->setFinder($finder);
|
->setFinder($finder);
|
||||||
|
|||||||
Vendored
-10
@@ -434,16 +434,6 @@ const routesUser = [
|
|||||||
title: 'routes_title.settings_password'
|
title: 'routes_title.settings_password'
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
|
||||||
name: 'Token',
|
|
||||||
path: '/platform/token',
|
|
||||||
component: () =>
|
|
||||||
import(/* webpackChunkName: "chunks/settings-password" */ './views/User/AccessToken'),
|
|
||||||
meta: {
|
|
||||||
requiresAuth: true,
|
|
||||||
title: 'routes_title.token'
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
name: 'Storage',
|
name: 'Storage',
|
||||||
path: '/platform/settings/storage',
|
path: '/platform/settings/storage',
|
||||||
|
|||||||
@@ -31,15 +31,6 @@
|
|||||||
{{ $t('menu.password') }}
|
{{ $t('menu.password') }}
|
||||||
</div>
|
</div>
|
||||||
</router-link>
|
</router-link>
|
||||||
|
|
||||||
<router-link replace :to="{name: 'Token'}" class="menu-list-item link">
|
|
||||||
<div class="icon text-theme">
|
|
||||||
<key-icon size="17"></key-icon>
|
|
||||||
</div>
|
|
||||||
<div class="label text-theme">
|
|
||||||
{{ $t('menu.token') }}
|
|
||||||
</div>
|
|
||||||
</router-link>
|
|
||||||
</div>
|
</div>
|
||||||
</ContentGroup>
|
</ContentGroup>
|
||||||
|
|
||||||
|
|||||||
@@ -1,41 +0,0 @@
|
|||||||
<template>
|
|
||||||
<PageTab>
|
|
||||||
<PageTabGroup>
|
|
||||||
<FormLabel>{{ $t('user_token.title') }}</FormLabel>
|
|
||||||
</PageTabGroup>
|
|
||||||
</PageTab>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
import PageTabGroup from '@/components/Others/Layout/PageTabGroup'
|
|
||||||
import FormLabel from '@/components/Others/Forms/FormLabel'
|
|
||||||
import PageTab from '@/components/Others/Layout/PageTab'
|
|
||||||
|
|
||||||
export default {
|
|
||||||
name: 'AccessToken',
|
|
||||||
components: {
|
|
||||||
PageTabGroup,
|
|
||||||
FormLabel,
|
|
||||||
PageTab
|
|
||||||
},
|
|
||||||
data () {
|
|
||||||
return {
|
|
||||||
tokens: undefined
|
|
||||||
}
|
|
||||||
},
|
|
||||||
created () {
|
|
||||||
axios.
|
|
||||||
get('/api/user/tokens')
|
|
||||||
.then(response => {
|
|
||||||
this.tokens = response.data
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
|
||||||
@import '@assets/vuefilemanager/_variables';
|
|
||||||
@import '@assets/vuefilemanager/_mixins';
|
|
||||||
|
|
||||||
</style>
|
|
||||||
Reference in New Issue
Block a user