Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion resources/js/app/app.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import Vue from 'vue';

import 'libs/filters';
import 'config/config';

import '../../style.scss';
Expand Down Expand Up @@ -654,6 +653,6 @@
Vue.component('ObjectCaptions', _vueInstance.$options.components.ObjectCaptions);
Vue.component('ObjectInfo', _vueInstance.$options.components.ObjectInfo);
Vue.component('RelatedObjectsFilter', _vueInstance.$options.components.RelatedObjectsFilter);
Vue.component('Thumbnail', _vueInstance.$options.components.Thumbnail);

Check warning on line 656 in resources/js/app/app.js

View workflow job for this annotation

GitHub Actions / Check javascript build (22.x)

Component name "Thumbnail" should always be multi-word

Check warning on line 656 in resources/js/app/app.js

View workflow job for this annotation

GitHub Actions / Check javascript build (20.x)

Component name "Thumbnail" should always be multi-word

Check warning on line 656 in resources/js/app/app.js

View workflow job for this annotation

GitHub Actions / Check javascript build (24.x)

Component name "Thumbnail" should always be multi-word
Vue.component('RibbonItem', _vueInstance.$options.components.RibbonItem);
Vue.component('UploadedObject', _vueInstance.$options.components.UploadedObject);
7 changes: 6 additions & 1 deletion resources/js/app/components/json-fields/key-value-list.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div class="input textarea text">
<label :for="name">{{ label|humanize }}</label>
<label :for="name">{{ humanize(label) }}</label>
<div :id="name">
<div class="key-value-item mb-1" v-for="(item, index) in items">
<div>
Expand All @@ -26,6 +26,7 @@
</template>

<script>
import { humanizeString } from 'app/helpers/text-helper';

/**
* <key-value-list> component to handle simple JSON objects with key/values
Expand Down Expand Up @@ -63,6 +64,10 @@ export default {
},

methods: {
humanize(str) {
return humanizeString(str);
},

/**
* Update input hidden form value.
*
Expand Down
7 changes: 6 additions & 1 deletion resources/js/app/components/json-fields/string-list.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div class="input textarea text">
<label :for="`container-${name}`">{{ label|humanize }}</label>
<label :for="`container-${name}`">{{ humanize(label) }}</label>
<div :id="`container-${name}`">
<div class="key-value-item mb-1 is-flex" v-for="(item, index) in items">
<div class="is-expanded">
Expand All @@ -24,6 +24,7 @@
</template>

<script>
import { humanizeString } from 'app/helpers/text-helper';

/**
* <string-list> component to handle simple JSON array of strings
Expand Down Expand Up @@ -62,6 +63,10 @@ export default {
},

methods: {
humanize(str) {
return humanizeString(str);
},

/**
* Update input hidden form value.
*
Expand Down
27 changes: 0 additions & 27 deletions resources/js/libs/filters.js

This file was deleted.

Loading