From 471f30dcb84c5996a32e50c4279d999a399977fe Mon Sep 17 00:00:00 2001
From: Eugen Ciur <eugen@papermerge.com>
Date: Sat, 2 Oct 2021 07:54:22 +0200
Subject: [PATCH] prettier linting

---
 app/components/nav/sidebar.hbs |  2 +-
 app/components/tag/new.js      | 15 +++++++--------
 app/models/tag.js              |  1 +
 app/styles/app.scss            |  1 +
 app/styles/nav/sidebar.scss    |  3 +++
 5 files changed, 13 insertions(+), 9 deletions(-)
 create mode 100644 app/styles/nav/sidebar.scss

diff --git a/app/components/nav/sidebar.hbs b/app/components/nav/sidebar.hbs
index 552b34a..c3cc6ad 100644
--- a/app/components/nav/sidebar.hbs
+++ b/app/components/nav/sidebar.hbs
@@ -1,4 +1,4 @@
-<div class="d-flex flex-column flex-shrink-0 p-3 text-white bg-dark" style="width: 280px;">
+<div class="d-flex flex-column flex-shrink-0 p-3 text-white bg-dark sidebar-open" >
     <a href="/" class="d-flex align-items-center mb-3 mb-md-0 me-md-auto text-white text-decoration-none">
       <svg class="bi me-2" width="40" height="32"><use xlink:href="#bootstrap"></use></svg>
       <span class="fs-4">Papermerge</span>
diff --git a/app/components/tag/new.js b/app/components/tag/new.js
index 40dcca0..ca44888 100644
--- a/app/components/tag/new.js
+++ b/app/components/tag/new.js
@@ -3,15 +3,14 @@ import { action } from '@ember/object';
 import { tracked } from '@glimmer/tracking';
 import { inject as service } from '@ember/service';
 
-
 const COLORS = [
-  "#ff0000",
-  "#0000ff",
-  "#006684",
-  "#661200",
-  "#ce5c00",
-  "#5c3566",
-  "#4e9a06"
+  '#ff0000',
+  '#0000ff',
+  '#006684',
+  '#661200',
+  '#ce5c00',
+  '#5c3566',
+  '#4e9a06'
 ]
 
 function _random_color() {
diff --git a/app/models/tag.js b/app/models/tag.js
index 86cb9a6..353b9aa 100644
--- a/app/models/tag.js
+++ b/app/models/tag.js
@@ -1,6 +1,7 @@
 import { attr } from '@ember-data/model';
 import NodeModel from './node';
 
+
 export default class TagModel extends NodeModel {
   @attr name;
   @attr fg_color;
diff --git a/app/styles/app.scss b/app/styles/app.scss
index 9eca56c..380177d 100644
--- a/app/styles/app.scss
+++ b/app/styles/app.scss
@@ -1,6 +1,7 @@
 @import "node_modules/bootstrap/scss/bootstrap";
 @import "./tag";
 @import "./button";
+@import "./nav/sidebar";
 
 
 main {
diff --git a/app/styles/nav/sidebar.scss b/app/styles/nav/sidebar.scss
new file mode 100644
index 0000000..83f0dd7
--- /dev/null
+++ b/app/styles/nav/sidebar.scss
@@ -0,0 +1,3 @@
+.sidebar-open {
+  width: 280px;
+}
\ No newline at end of file
-- 
GitLab