Skip to content

Commit

Permalink
fixes for lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
austintoddj committed Oct 13, 2020
1 parent da6afbb commit b96a89b
Show file tree
Hide file tree
Showing 20 changed files with 152 additions and 143 deletions.
21 changes: 11 additions & 10 deletions .gitpod.yml
@@ -1,3 +1,4 @@
# The Docker image to run the workspace in (defaults to gitpod/workspace-full)
image:
file: Dockerfile

Expand All @@ -6,9 +7,9 @@ checkoutLocation: canvas

vscode:
extensions:
- octref.vetur@0.27.0:a+OljFHzmH1YrzbM13sMhQ==
- octref.vetur@0.28.0:bW1RGNnmWYQO43JdJgK34w==
- eamodio.gitlens@10.2.1:WIWu3zHU4VPT8r/v866LUw==
- esbenp.prettier-vscode@5.5.0:xcEnHt0vYXkhJ8IkBmNAuA==
- esbenp.prettier-vscode@5.7.1:GDba64T6G+TUi1qmc6BE3A==

github:
prebuilds:
Expand All @@ -29,21 +30,20 @@ github:
# Add a label once the prebuild is ready to pull requests (defaults to false)
addLabel: true

# Command to start on workspace startup (optional)
tasks:
- init: |
# Initializing the Laravel app
# Reload the .bash_profile to utilize composer-link()
# Reload the .bash_profile to utilize the composer-link() function
source ~/.bash_profile
cd /workspace
# Create a new Laravel app
# Create a fresh Laravel app
composer create-project --prefer-dist laravel/laravel laravel
cd /workspace/laravel
# Create a new database
# Create a new in-memory database
touch database/database.sqlite
# Update the .env database configuration
Expand All @@ -54,14 +54,14 @@ tasks:
composer-link ../canvas/
composer require austintoddj/canvas @dev
# Install Canvas
# Install Canvas and its resources
php artisan canvas:install
php artisan storage:link
# Remove existing assets from the Laravel app
# Remove existing assets if any exist from the Laravel app
rm -rf public/vendor/canvas/*
# Create a symlink to the package assets
# Create a symlink to the local package assets
cd public/vendor/canvas
ln -s ../../../../canvas/public/* .
Expand Down Expand Up @@ -102,6 +102,7 @@ tasks:
openMode: split-right
# Ports to expose on workspace startup (optional)
ports:
- port: 3306
onOpen: ignore
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -16,10 +16,10 @@
],
"require": {
"php": "^7.3",
"ext-json": "*",
"laravel/framework": "^6.0|^7.0|^8.0"
},
"require-dev": {
"ext-json": "*",
"laravel/legacy-factories": "^1.0",
"mockery/mockery": "^1.4",
"orchestra/testbench": "^4.0|^5.0|^6.0",
Expand Down
16 changes: 8 additions & 8 deletions package.json
Expand Up @@ -12,46 +12,46 @@
"bootstrap": "^4.5.2",
"chart.js": "^2.9.3",
"cross-env": "^7.0.2",
"filepond": "^4.19.2",
"filepond": "^4.21.1",
"filepond-plugin-file-validate-size": "^2.2.1",
"filepond-plugin-file-validate-type": "^1.2.5",
"filepond-plugin-image-exif-orientation": "^1.0.9",
"filepond-plugin-image-preview": "^4.6.4",
"filepond-plugin-image-validate-size": "^1.2.4",
"jquery": "^3.5.1",
"laravel-mix": "^5.0.4",
"laravel-mix": "^5.0.7",
"lodash": "^4.17.19",
"md5": "^2.3.0",
"moment": "^2.27.0",
"moment": "^2.29.1",
"nprogress": "^0.2.0",
"numeral": "^2.0.6",
"parchment": "^1.1.4",
"popper.js": "^1.16.1",
"quill": "1.3.7",
"resolve-url-loader": "^3.1.1",
"sass": "^1.26.11",
"sass-loader": "^10.0.0",
"sass": "^1.27.0",
"sass-loader": "^10.0.3",
"unsplash-js": "^6.0.0",
"url-parse": "^1.4.7",
"vue": "^2.6.11",
"vue-filepond": "^6.0.2",
"vue-fuse": "^2.2.1",
"vue-infinite-loading": "^2.4.5",
"vue-multiselect": "^2.1.6",
"vue-router": "^3.4.2",
"vue-router": "^3.4.6",
"vue-template-compiler": "^2.6.11",
"vue-textarea-autosize": "^1.1.1",
"vue-toasted": "^1.1.28",
"vuex": "^3.5.1"
},
"devDependencies": {
"babel-eslint": "^10.1.0",
"eslint": "^7.6.0",
"eslint": "^7.11.0",
"eslint-config-prettier": "^6.11.0",
"eslint-loader": "^4.0.2",
"eslint-plugin-prettier": "^3.1.4",
"eslint-plugin-sort-imports-es6-autofix": "^0.5.0",
"eslint-plugin-vue": "^6.2.2",
"eslint-plugin-vue": "^7.0.1",
"prettier": "^2.0.5"
}
}
2 changes: 1 addition & 1 deletion public/css/app.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/css/app.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/js/app.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/js/app.js.LICENSE.txt
Expand Up @@ -22,7 +22,7 @@
*/

/*!
* FilePond 4.21.0
* FilePond 4.21.1
* Licensed under MIT, https://opensource.org/licenses/MIT/
* Please visit https://pqina.nl/filepond/ for details.
*/
Expand Down
2 changes: 1 addition & 1 deletion public/js/app.js.map

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions public/mix-manifest.json
@@ -1,6 +1,6 @@
{
"/js/app.js": "/js/app.js?id=87de4564761161188539",
"/css/app.css": "/css/app.css?id=275ebb89871e5f9dca7a",
"/js/app.js.map": "/js/app.js.map?id=d36e9e7f53b9ddab1777",
"/css/app.css.map": "/css/app.css.map?id=db11b78da46b5c2c6055"
"/js/app.js": "/js/app.js?id=bd3f5dfd2728dd6ed7d4",
"/css/app.css": "/css/app.css?id=19ea79a138b52ba255e6",
"/js/app.js.map": "/js/app.js.map?id=6a526130f725e6380694",
"/css/app.css.map": "/css/app.css.map?id=fb1e43343083b7c71be0"
}
2 changes: 1 addition & 1 deletion resources/js/components/editor/EmbedContentModal.vue
Expand Up @@ -87,7 +87,7 @@ export default {
methods: {
clickDone() {
if (!isEmpty(this.content)) {
this.$emit('addingEmbedContent', {
this.$emit('adding-embed-content', {
content: this.content,
existingBlot: this.blot,
});
Expand Down
4 changes: 2 additions & 2 deletions resources/js/components/editor/EmbedImageModal.vue
Expand Up @@ -351,12 +351,12 @@ export default {
clickDone() {
if (!this.selectedImageUrl) {
if (!isEmpty(this.selectedImageBlot)) {
this.$emit('removingEmbedImage', {
this.$emit('removing-embed-image', {
existingBlot: this.selectedImageBlot,
});
}
} else {
this.$emit('addingEmbedImage', {
this.$emit('adding-embed-image', {
url: this.selectedImageUrl,
caption: this.selectedImageCaption ?? '',
existingBlot: this.selectedImageBlot,
Expand Down
6 changes: 3 additions & 3 deletions resources/js/components/editor/QuillEditor.vue
Expand Up @@ -273,12 +273,12 @@ export default {
},
showEmbedImageModal(data = null) {
this.$emit('openingEmbedImageModal', data);
this.$emit('opening-embed-image-modal', data);
$(this.$refs.embedImageModal.$el).modal('show');
},
showEmbedContentModal(data = null) {
this.$emit('openingEmbedContentModal', data);
this.$emit('opening-embed-content-modal', data);
$(this.$refs.embedContentModal.$el).modal('show');
},
Expand Down Expand Up @@ -326,7 +326,7 @@ export default {
},
update: debounce(function () {
this.$emit('updatePost');
this.$emit('update-post');
}, 3000),
},
};
Expand Down
4 changes: 2 additions & 2 deletions resources/js/components/modals/FeaturedImageModal.vue
Expand Up @@ -335,7 +335,7 @@ export default {
},
removeFeaturedImage() {
this.$emit('removeFeaturedImage');
this.$emit('remove-featured-image');
this.isReadyToAcceptUploads = true;
this.update();
},
Expand All @@ -352,7 +352,7 @@ export default {
},
update: debounce(function () {
this.$emit('updatePost');
this.$emit('update-post');
}, 3000),
},
};
Expand Down
6 changes: 3 additions & 3 deletions resources/js/components/modals/SeoModal.vue
Expand Up @@ -154,17 +154,17 @@ export default {
methods: {
syncTitle() {
this.$emit('syncTitle', this.post.title);
this.$emit('sync-title', this.post.title);
this.update();
},
syncDescription() {
this.$emit('syncDescription', this.post.summary);
this.$emit('sync-description', this.post.summary);
this.update();
},
update: debounce(function () {
this.$emit('updatePost');
this.$emit('update-post');
}, 3000),
},
};
Expand Down
12 changes: 6 additions & 6 deletions resources/js/components/modals/SettingsModal.vue
Expand Up @@ -173,7 +173,7 @@ export default {
methods: {
syncSlug() {
this.$emit('syncSlug', strings.methods.slugify(this.post.title));
this.$emit('sync-slug', strings.methods.slugify(this.post.title));
this.update();
},
Expand All @@ -184,8 +184,8 @@ export default {
user_id: this.settings.user.id,
};
this.$emit('addPostTag', tag);
this.$emit('addTag', tag);
this.$emit('add-post-tag', tag);
this.$emit('add-tag', tag);
this.update();
},
Expand All @@ -196,13 +196,13 @@ export default {
user_id: this.settings.user.id,
};
this.$emit('addPostTopic', topic);
this.$emit('addTopic', topic);
this.$emit('add-post-topic', topic);
this.$emit('add-topic', topic);
this.update();
},
update: debounce(function () {
this.$emit('updatePost');
this.$emit('update-post');
}, 3000),
},
};
Expand Down
43 changes: 18 additions & 25 deletions resources/js/store/modules/search.js
@@ -1,4 +1,4 @@
import request from '../../mixins/request';
import axios from 'axios';

const initialState = {
searchIndex: [],
Expand All @@ -12,32 +12,25 @@ const actions = {
context.commit('RESET_STATE');
}

request.methods
.request()
.get('/api/search/posts')
.then(({ data }) => {
context.commit('UPDATE_INDEX', data);
});
// The request here was extracted from request.js since a mixin cannot be
// pulled into a store module in the same was it is a component. The
// tradeoff here is that it will not contain error modifiers.
let baseDomain = context.rootState['settings'].domain || `/${context.rootState['settings'].path}`;

axios.get(`${baseDomain}/api/search/posts`).then(({ data }) => {
context.commit('UPDATE_INDEX', data);
});

if (context.rootGetters['settings/isAdmin']) {
request.methods
.request()
.get('/api/search/tags')
.then(({ data }) => {
context.commit('UPDATE_INDEX', data);
});
request.methods
.request()
.get('/api/search/topics')
.then(({ data }) => {
context.commit('UPDATE_INDEX', data);
});
request.methods
.request()
.get('/api/search/users')
.then(({ data }) => {
context.commit('UPDATE_INDEX', data);
});
axios.get(`${baseDomain}/api/search/tags`).then(({ data }) => {
context.commit('UPDATE_INDEX', data);
});
axios.get(`${baseDomain}/api/search/topics`).then(({ data }) => {
context.commit('UPDATE_INDEX', data);
});
axios.get(`${baseDomain}/api/search/users`).then(({ data }) => {
context.commit('UPDATE_INDEX', data);
});
}
},
};
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions src/Console/UiCommand.php
Expand Up @@ -139,7 +139,7 @@ protected function exportBackend()

file_put_contents(
base_path('routes/web.php'),
file_get_contents(dirname(__DIR__, 2).'/routes/ui.php'),
file_get_contents(dirname(__DIR__, 2).'/resources/stubs/routes/web.stub'),
FILE_APPEND
);
}
Expand Down Expand Up @@ -181,7 +181,7 @@ protected function updateWebpackConfiguration()
{
file_put_contents(
base_path('webpack.mix.js'),
file_get_contents(dirname(__DIR__, 2).'/resources/stubs/webpack.mix.js'),
file_get_contents(dirname(__DIR__, 2).'/resources/stubs/webpack.mix.stub'),
FILE_APPEND
);
}
Expand Down

0 comments on commit b96a89b

Please sign in to comment.