1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-10-14 23:11:58 +00:00
The Great Maintenance Update. No new features here. Instead, we've updated the build system to webpack 4, updated all our dependencies, and cleaned up a lot of linting issues.
This commit is contained in:
SirStendec 2019-06-20 15:15:54 -04:00
parent 014eb203c3
commit 33e81bc7eb
60 changed files with 238 additions and 209 deletions

View file

@ -41,7 +41,9 @@
</aspect>
</div>
<div class="tw-card-body tw-overflow-hidden tw-relative">
<p class="tw-pd-x-1">{{ slot.item.displayName }}</p>
<p class="tw-pd-x-1">
{{ slot.item.displayName }}
</p>
</div>
</div>
</div>

View file

@ -5,10 +5,10 @@
</header>
<filter-editor
v-model="value.data"
:filters="filters"
:context="context"
:max-rules="type.maxRules"
v-model="value.data"
/>
</section>
</template>

View file

@ -11,7 +11,7 @@
class="tw-flex-grow-1 tw-mg-l-1 tw-border-radius-medium tw-font-size-6 tw-pd-x-1 tw-pd-y-05 tw-select"
>
<option
v-for="(route, key) in routes"
v-for="(_, key) in routes"
v-once
:key="key"
:value="key"
@ -88,8 +88,7 @@ export default {
try {
return decodeURI(new URL(this.route.url(parts), location));
} catch(err) {
console.error(err);
return null;
return '(unable to render url)';
}
},

View file

@ -5,7 +5,7 @@
// ============================================================================
import {EventEmitter} from 'utilities/events';
import {has, get as getter, array_equals, set_equals, map_equals, deep_copy} from 'utilities/object';
import {has, get as getter, array_equals, set_equals, map_equals} from 'utilities/object';
import * as DEFINITIONS from './types';

View file

@ -8,9 +8,7 @@ import {EventEmitter} from 'utilities/events';
import {has} from 'utilities/object';
import {createTester} from 'utilities/filtering';
const fetchJSON = (url, options) => {
return fetch(url, options).then(r => r.ok ? r.json() : null).catch(() => null);
}
const fetchJSON = (url, options) => fetch(url, options).then(r => r.ok ? r.json() : null).catch(() => null);
/**
* Instances of SettingsProfile are used for getting and setting raw settings
@ -88,7 +86,7 @@ export default class SettingsProfile extends EventEmitter {
if ( ! this.url )
return false;
const data = fetchJSON(this.url);
const data = await fetchJSON(this.url);
if ( ! data || ! data.type === 'profile' || ! data.profile || ! data.values )
return false;