-
-
Notifications
You must be signed in to change notification settings - Fork 519
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* release/4.1.3: (23 commits) Fixed #434 wip ui/ux enhancements to the editor Added the medium-zoom package to the default template Dependency updates and Laravel 5.8 support polishing the default template wip on the default template wip wip wip added support in the stub files for #434 wip wip wip wip wip on #434 wip on #434 added topic support in the view stubs and wip on single select vue component #434 Apply fixes from StyleCI (#437) wip on topics #434 ...
- Loading branch information
Showing
56 changed files
with
976 additions
and
268 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
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
public/fonts/vendor/@fortawesome/fontawesome-free/webfa-regular-400.eot
Binary file not shown.
6 changes: 1 addition & 5 deletions
6
public/fonts/vendor/@fortawesome/fontawesome-free/webfa-regular-400.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+0 Bytes
(100%)
public/fonts/vendor/@fortawesome/fontawesome-free/webfa-regular-400.ttf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
public/fonts/vendor/@fortawesome/fontawesome-free/webfa-regular-400.woff
Binary file not shown.
Binary file modified
BIN
-16 Bytes
(100%)
public/fonts/vendor/@fortawesome/fontawesome-free/webfa-regular-400.woff2
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
public/fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.eot
Binary file not shown.
6 changes: 1 addition & 5 deletions
6
public/fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+0 Bytes
(100%)
public/fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.ttf
Binary file not shown.
Binary file modified
BIN
-4 Bytes
(100%)
public/fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.woff
Binary file not shown.
Binary file modified
BIN
+28 Bytes
(100%)
public/fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.woff2
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"/js/app.js": "/js/app.js?id=cab446fe67c77f318dd0", | ||
"/css/app.css": "/css/app.css?id=bda34711dea8821a4299", | ||
"/js/app.js.map": "/js/app.js.map?id=80a9c6938a70e635658a", | ||
"/js/app.js": "/js/app.js?id=af6689c6964800e9f755", | ||
"/css/app.css": "/css/app.css?id=f13a10a1564f49e2b5f0", | ||
"/js/app.js.map": "/js/app.js.map?id=159ebb8d695d07b48e9d", | ||
"/favicon.png": "/favicon.png?id=39d853e8c2bdbc38fde3" | ||
} |
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
4 changes: 2 additions & 2 deletions
4
resources/js/components/Tag.vue → resources/js/components/Slug.vue
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,82 @@ | ||
<script type="text/ecmascript-6"> | ||
import Multiselect from 'vue-multiselect' | ||
export default { | ||
props: ['topics', 'assigned'], | ||
components: { | ||
Multiselect | ||
}, | ||
data() { | ||
const allTopics = this.topics.map(obj => { | ||
let filtered = {}; | ||
filtered['name'] = obj.name; | ||
filtered['slug'] = obj.slug; | ||
return filtered; | ||
}); | ||
return { | ||
value: this.assigned ? this.assigned : [], | ||
options: allTopics | ||
} | ||
}, | ||
methods: { | ||
onChange(value, id) { | ||
if (this.value == null) { | ||
this.value = []; | ||
} | ||
}, | ||
addTopic(searchQuery, id) { | ||
const topic = { | ||
name: searchQuery, | ||
slug: this.slugify(searchQuery) | ||
}; | ||
this.options.push(topic); | ||
this.value.push(topic); | ||
}, | ||
/** | ||
* Convert a string to a slug. | ||
* | ||
* @source https://gist.github.com/mathewbyrne/1280286 | ||
*/ | ||
slugify(text) { | ||
return text.toString().toLowerCase() | ||
.replace(/\s+/g, '-') | ||
.replace(/[^\w\-]+/g, '') | ||
.replace(/--+/g, '-') | ||
} | ||
} | ||
} | ||
</script> | ||
|
||
<template> | ||
<div> | ||
<multiselect | ||
v-model="value" | ||
placeholder="Select a topic..." | ||
tag-placeholder="Add this as new topic" | ||
label="name" | ||
track-by="slug" | ||
:options="options" | ||
:taggable="true" | ||
@input="onChange" | ||
@tag="addTopic"> | ||
</multiselect> | ||
|
||
<div class="topics"> | ||
<template v-if="value.length != 0"> | ||
<input hidden type="hidden" :name="`topic[name]`" :value="value.name"> | ||
<input hidden type="hidden" :name="`topic[slug]`" :value="value.slug"> | ||
</template> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<style rel="stylesheet" type="text/css" src="vue-multiselect/dist/vue-multiselect.min.css"></style> |
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,27 @@ | ||
<form role="form" id="form-create" method="POST" action="{{ route('canvas.topic.store') }}"> | ||
@csrf | ||
<input type="hidden" name="id" hidden value="{{ $data['id'] }}"> | ||
|
||
<slug inline-template> | ||
<div> | ||
<div class="form-group row my-5"> | ||
<div class="col-lg-12"> | ||
<input type="text" name="name" v-model="name" title="Name" | ||
class="form-control-lg form-control border-0 px-0" | ||
value="{{ old('name') }}" required placeholder="Give your topic a name"> | ||
@if ($errors->has('name')) | ||
<div class="invalid-feedback d-block"> | ||
<strong>{{ $errors->first('name') }}</strong> | ||
</div> | ||
@endif | ||
</div> | ||
</div> | ||
<div class="form-group row"> | ||
<div class="col-lg-12"> | ||
<p class="lead text-muted" style="cursor: default"><span class="text-primary">@{{ slug }}</span></p> | ||
<input type="hidden" name="slug" v-model="slug" readonly> | ||
</div> | ||
</div> | ||
</div> | ||
</slug> | ||
</form> |
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,32 @@ | ||
<form role="form" id="form-edit" method="POST" action="{{ route('canvas.topic.update', $data['topic']->id) }}"> | ||
@method('PUT') | ||
@csrf | ||
|
||
<slug :entity="{{ $data['topic'] }}" inline-template> | ||
<div> | ||
<div class="form-group row my-5"> | ||
<div class="col-lg-12"> | ||
<input type="text" name="name" v-model="name" value="{{ $data['topic']->name }}" | ||
class="form-control-lg form-control border-0 px-0" | ||
title="Name" required placeholder="Give your topic a name"> | ||
@if ($errors->has('name')) | ||
<div class="invalid-feedback d-block"> | ||
<strong>{{ $errors->first('name') }}</strong> | ||
</div> | ||
@endif | ||
</div> | ||
</div> | ||
<div class="form-group row"> | ||
<div class="col-lg-12"> | ||
<p class="lead text-muted" style="cursor: default"><span class="text-primary">@{{ slug }}</span></p> | ||
<input type="hidden" name="slug" v-model="slug" readonly> | ||
@if ($errors->has('slug')) | ||
<div class="invalid-feedback d-block"> | ||
<strong>{{ $errors->first('slug') }}</strong> | ||
</div> | ||
@endif | ||
</div> | ||
</div> | ||
</div> | ||
</slug> | ||
</form> |
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.