-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add MVEA vue.js components to Person edit page (CFM-205) (#80)
* Addition of Person Overview/Canvas. Commit also includes reworking of subnavigation for a Person view, VueJS starter components, updates for AJAX API access, and a minor fix to textarea rendering. (CFM-205) * Revert changes to edit() and view() function signatures. (CFM-205) * Fix "Using $this when not in object context" error in StringUtilities.php (NOJIRA) * Post rebase cleanup; pass flash messages to subnavigation * Output all available mvea text in Vue.js components (CFM-205) * Allow User with Session to by pass basic auth when making ajax requests (#69) * Rebasing against develop (#71) * Fix "Using $this when not in object context" error in StringUtilities.php (NOJIRA) (#67) * Addition of Person Overview/Canvas. Commit also includes reworking of subnavigation for a Person view, VueJS starter components, updates for AJAX API access, and a minor fix to textarea rendering. (CFM-205) * Revert changes to edit() and view() function signatures. (CFM-205) * Post rebase cleanup; pass flash messages to subnavigation * Output all available mvea text in Vue.js components (CFM-205) * Allow User with Session to by pass basic auth when making ajax requests (#69) * CO-205_Create_langauge_labels_via_javascript_for_items_with_a_lang_string_definition (#72) * Create language labels using standard BC-47 abbreviation codes * Move language label after type * Fetch MVEA types as part of the REST API responses * Request extended REST API data * Construct names in Vue.js component (display, rtl, ltr); hide comment out non-javascript approach on Person canvas. (CFM-205) (#75) * Initial implementation for loading animation and skeleton placeholders for components on Person canvas. (CFM-205) (#76) * Rebasing against current develop (#77) * Fix "Using $this when not in object context" error in StringUtilities.php (NOJIRA) (#67) * Addition of Person Overview/Canvas. Commit also includes reworking of subnavigation for a Person view, VueJS starter components, updates for AJAX API access, and a minor fix to textarea rendering. (CFM-205) * Revert changes to edit() and view() function signatures. (CFM-205) * Post rebase cleanup; pass flash messages to subnavigation * Output all available mvea text in Vue.js components (CFM-205) * Allow User with Session to by pass basic auth when making ajax requests (#69) * Rebasing against develop (#71) * Fix "Using $this when not in object context" error in StringUtilities.php (NOJIRA) (#67) * Addition of Person Overview/Canvas. Commit also includes reworking of subnavigation for a Person view, VueJS starter components, updates for AJAX API access, and a minor fix to textarea rendering. (CFM-205) * Revert changes to edit() and view() function signatures. (CFM-205) * Post rebase cleanup; pass flash messages to subnavigation * Output all available mvea text in Vue.js components (CFM-205) * Allow User with Session to by pass basic auth when making ajax requests (#69) * CO-205_Create_langauge_labels_via_javascript_for_items_with_a_lang_string_definition (#72) * Create language labels using standard BC-47 abbreviation codes * Move language label after type * Fetch MVEA types as part of the REST API responses * Request extended REST API data * Construct names in Vue.js component (display, rtl, ltr); hide comment out non-javascript approach on Person canvas. (CFM-205) (#75) * Initial implementation for loading animation and skeleton placeholders for components on Person canvas. (CFM-205) (#76) * Person_canvas_improvements (#78) * Dynamically calculate mvea Model name * Localizations load from CAKEPHP helper * Update access to txt lexicals * Update Person edit page to hold the person "canvas". Remove the /canvas action from the People controller. (CFM-205) (#79) This PR special-cases the Person /edit page to contain vue.js components.
- Loading branch information
Showing
41 changed files
with
1,643 additions
and
548 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,9 @@ | |
msgid "activate" | ||
msgstr "Activate" | ||
|
||
msgid "add" | ||
msgstr "Add" | ||
|
||
msgid "add.a" | ||
msgstr "Add a New {0}" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
<?php | ||
/** | ||
* COmanage Registry Vue Helper | ||
* | ||
* Portions licensed to the University Corporation for Advanced Internet | ||
* Development, Inc. ("UCAID") under one or more contributor license agreements. | ||
* See the NOTICE file distributed with this work for additional information | ||
* regarding copyright ownership. | ||
* | ||
* UCAID licenses this file to you under the Apache License, Version 2.0 | ||
* (the "License"); you may not use this file except in compliance with the | ||
* License. You may obtain a copy of the License at: | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
* @link https://www.internet2.edu/comanage COmanage Project | ||
* @package registry | ||
* @since COmanage Registry v5.0.0 | ||
* @license Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) | ||
*/ | ||
|
||
declare(strict_types = 1); | ||
|
||
namespace App\View\Helper; | ||
|
||
use Cake\I18n\FrozenTime; | ||
use Cake\Utility\Inflector; | ||
use Cake\View\Helper; | ||
use Cake\I18n\I18n; | ||
|
||
class VueHelper extends Helper { | ||
private array $locales_list = [ | ||
'field' => [ | ||
'login', | ||
'primary', | ||
'datepicker.hour', | ||
'unverified' | ||
], | ||
'information' => [ | ||
'global.value.none', | ||
'datepicker.hour' | ||
] | ||
]; | ||
|
||
/** | ||
* Helper which will produce an array of configured locales | ||
* | ||
* @param string $lang The language of the locale | ||
* | ||
* @return array [] | ||
* @since COmanage Registry v5.0.0 | ||
*/ | ||
|
||
public function locales(string $lang = 'en_US'): array { | ||
|
||
I18n::setLocale($lang); | ||
|
||
$locales = []; | ||
foreach ($this->locales_list as $domain => $key_list) { | ||
foreach ($key_list as $key) { | ||
$locales[$key] = __d($domain, $key); | ||
} | ||
} | ||
|
||
return $locales; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.