Skip to content

Commit

Permalink
Merge branch 'release/4.1.15'
Browse files Browse the repository at this point in the history
* release/4.1.15:
  work
  compile assets and cleanup annotations
  Fixed a but with textarea autosizing
  fixed the svg line fills
  updated the changelog
  compiling assets
  Apply fixes from StyleCI (#449)
  wip
  • Loading branch information
austintoddj committed Mar 23, 2019
2 parents c54d9e4 + 8f44752 commit 084acaa
Show file tree
Hide file tree
Showing 33 changed files with 491 additions and 108 deletions.
5 changes: 5 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Release Notes

## [v4.1.15](https://github.com/cnvs/canvas/compare/v4.1.14...v4.1.15)

### Added
- Added a dark mode ([e3723ac](https://github.com/cnvs/canvas/commit/e3723ac6523ef000b0901f3c073a94bcad7cfebf))

## [v4.1.14](https://github.com/cnvs/canvas/compare/v4.1.13...v4.1.14)

### Fixed
Expand Down
6 changes: 3 additions & 3 deletions config/canvas.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
| Route Middleware
|--------------------------------------------------------------------------
|
| Assign any custom middleware to limit access to the admin interface.
| If your app needs roles or permissions that allow for specific
| users to manage the blog, create and add a middleware here.
| These middleware will be attached to each route in Canvas, giving you
| the chance to add your own middleware to this list or change any of
| the existing middleware. Or, you can simply stick with this list.
|
*/

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"sass": "^1.15.2",
"sass-loader": "^7.1.0",
"vue": "^2.5.7",
"vue-multiselect": "^2.1.3",
"vue-multiselect": "^2.1.4",
"vue-template-compiler": "^2.5.21",
"vue-textarea-autosize": "^1.0.4",
"vue2-frappe": "^1.0"
Expand Down
23 changes: 23 additions & 0 deletions public/css/app-dark.css

Large diffs are not rendered by default.

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

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.map

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions public/mix-manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"/js/app.js": "/js/app.js?id=490deb75e999a7466efb",
"/css/app.css": "/css/app.css?id=a2c0da91701ff768556b",
"/js/app.js.map": "/js/app.js.map?id=9e83587ea744b07c733e",
"/js/app.js": "/js/app.js?id=e14eab4148aca57fd14d",
"/css/app.css": "/css/app.css?id=30702a620a23ba741c32",
"/css/app-dark.css": "/css/app-dark.css?id=1fb783dd9139fe579906",
"/js/app.js.map": "/js/app.js.map?id=cac20b4e6af75f105d50",
"/favicon.png": "/favicon.png?id=39d853e8c2bdbc38fde3"
}
6 changes: 2 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ A [Laravel](https://laravel.com) publishing platform. Canvas is a fully open sou
application and get you up-and-running with a blog in just a few minutes. In addition to a distraction-free
writing experience, you can view monthly trends on your content, get insights into reader traffic and more!

<img src="https://cnvs.io/img/zDTOCfMeOf2pr1sHax9KqNzWsnF8KOa55CPPyppc.png#1">

## Installation

> **Note:** Canvas requires you to have user authentication in place prior to installation. You may run the `make:auth` Artisan command to satisfy this requirement.
Expand Down Expand Up @@ -73,10 +71,10 @@ Run any new migrations using the `migrate` Artisan command:
php artisan migrate
```

You may also want to run this command to re-publish the assets:
Re-publish the assets using the `canvas:publish` Artisan command:

```bash
php artisan vendor:publish --tag=canvas-assets --force
php artisan canvas:publish
```

## Testing
Expand Down
31 changes: 25 additions & 6 deletions resources/js/bootstrap.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

window._ = require('lodash');

/**
Expand All @@ -12,15 +11,35 @@ try {
window.$ = window.jQuery = require('jquery');
window.autosize = window.autosize ? window.autosize : require('autosize');

// Apply auto-sizing to textarea inputs
$(function () {autosize($('textarea'))});
/**
* Current workaround for using the Autosize library which will only resize
* elements when clicked, not on the initial page load.
*
* @link http://www.jacklmoore.com/autosize/#faq-hidden
*/
$(function () {
let textarea = $('textarea');

autosize(textarea);

textarea.focus(function () {
autosize.update(textarea);
});
});

// Opt-in to tooltip functionality
$(function () {$('[data-toggle="tooltip"]').tooltip()});
/**
* Initialize all tooltips on a page by manually opting in.
*
* @link https://getbootstrap.com/docs/4.3/components/tooltips/#example-enable-tooltips-everywhere
*/
$(function () {
$('[data-toggle="tooltip"]').tooltip()
});

require('bootstrap');
require('@fortawesome/fontawesome-free');
} catch (e) {}
} catch (e) {
}

/**
* We'll load the axios HTTP library which allows us to easily issue requests
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/DateTimePicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/**
* Create the default date/time picker.
*
* @source https://github.com/writingink/wink
* @author Mohamed Said <themsaid@gmail.com>
*/
export default {
props: ['value'],
Expand Down
4 changes: 2 additions & 2 deletions resources/js/components/Editor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/**
* Create an instance of the QuillJS editor.
*
* @source https://github.com/writingink/wink
* @author Mohamed Said <themsaid@gmail.com>
*/
export default {
components: {
Expand Down Expand Up @@ -70,7 +70,7 @@
/**
* Temporary workaround for customizing the link tooltip.
*
* @source: https://github.com/quilljs/quill/issues/1107#issuecomment-259938173
* @link https://github.com/quilljs/quill/issues/1107#issuecomment-259938173
*/
let tooltip = quill.theme.tooltip;
let input = tooltip.root.querySelector("input[data-link]");
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/FeaturedImageUploader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* Upload a featured image.
*
* @source https://github.com/writingink/wink
* @author Mohamed Said <themsaid@gmail.com>
*/
export default {
props: ['post', 'url', 'caption', 'unsplash'],
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/ImagePicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/**
* Create the default image picker.
*
* @source https://github.com/writingink/wink
* @author Mohamed Said <themsaid@gmail.com>
*/
export default {
props: ['unsplash'],
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/editorComponents/DividerBlot.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Create the divider blot.
*
* @source https://github.com/writingink/wink
* @author Mohamed Said <themsaid@gmail.com>
*/

import Quill from 'quill';
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/editorComponents/HTMLBlot.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Create the HTML blot.
*
* @source https://github.com/writingink/wink
* @author Mohamed Said <themsaid@gmail.com>
*/

import Quill from 'quill'
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/editorComponents/HTMLEmbedder.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Embed a block of HTML.
*
* @source https://github.com/writingink/wink
* @author Mohamed Said <themsaid@gmail.com>
*/
export default {
data() {
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/editorComponents/ImageBlot.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Create the divider blot.
*
* @source https://github.com/writingink/wink
* @author Mohamed Said <themsaid@gmail.com>
*/

import Quill from 'quill';
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/editorComponents/ImageUploader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/**
* Upload an image from the editor.
*
* @source https://github.com/writingink/wink
* @author Mohamed Said <themsaid@gmail.com>
*/
export default {
props: ['unsplash'],
Expand Down
174 changes: 174 additions & 0 deletions resources/sass/app-dark.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,174 @@

// Fonts
@import url("https://fonts.googleapis.com/css?family=Nunito|Merriweather:300,400,700");
@import "~@fortawesome/fontawesome-free/scss/regular";
@import "~@fortawesome/fontawesome-free/scss/solid";
@import "~@fortawesome/fontawesome-free/scss/fontawesome";

// Typography
$font-family-sans-serif: "Nunito", sans-serif;
$font-family-serif: "Merriweather", serif;
$fa-font-path: "../fonts" !default;
$font-size-base: 0.9rem;
$line-height-base: 1.6;

@import "base";

body {
background-color: #252830;
color: #cfd2da;
}

a {
color: #cfd2da;
}

a.nav-link {
color: #cfd2da !important;
}

a:hover {
color: #434857 !important;
}

blockquote {
border-left: 4px solid #434857 !important;

span {
color: #cfd2da !important;
}
}

.btn-outline-primary {
color: #cfd2da;
border-color: #cfd2da;
}

.btn-outline-primary:hover {
color: #252830 !important;
background-color: #cfd2da;
border-color: #cfd2da;
}

.btn-primary,
.btn-danger {
color: #cfd2da !important;
}

.btn-primary:hover,
.btn-danger:hover {
color: #252830 !important;
}

.border-bottom {
border-bottom: 1px solid #434857 !important;
}

.border-top {
border-top: 1px solid #434857 !important;
}

.card {
background: transparent;
border: 1px solid #434857;
}

.custom-select {
background-color: transparent !important;
color: #cfd2da !important;
}

.dropdown-menu {
background-color: #252830 !important;
border: 1px solid #434857 !important;
}

.dropdown-menu a {
color: #cfd2da !important;
}

.dropdown-menu a:hover {
color: #252830 !important;
background-color: #cfd2da;
}

.dropdown-divider {
border-top: 1px solid #434857 !important;
}

div.controls {
background-color: #252830 !important;
}

input, textarea {
background: transparent !important;
color: #cfd2da !important;
}

.line-chart {
line.line-horizontal,
line.line-vertical {
stroke: #434857 !important;
}
}

.logo i {
font-size: 20px;
color: #cfd2da;
}

.modal-content {
background-color: #252830 !important;
border: 1px solid #434857 !important;
}

.modal-footer {
border-top: 1px solid #434857 !important;
}

.multiselect__content-wrapper {
background-color: #252830 !important;
border: 1px solid #434857 !important;
}

.multiselect__element {
color: #cfd2da !important;
}

.multiselect__option--selected, .multiselect__option--selected::after {
color: #252830 !important;
background-color: #cfd2da !important;
}

.multiselect__single {
background: none !important;
color: #cfd2da !important;
}

.multiselect__tags {
background: none !important;
}

.ql-editor {
color: #cfd2da !important;

.bg-white {
background-color: transparent !important;
}

hr {
color: #434857 !important;
}
}

.ql-editor.ql-blank::before {
color: #59616A !important;
}

select.input {
color: #cfd2da !important;
}

text {
fill: #cfd2da !important;
}
Loading

0 comments on commit 084acaa

Please sign in to comment.