Compare commits
17 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2ef0ebd380 | ||
|
|
fce7bcffd3 | ||
|
|
32366f5679 | ||
|
|
13297491d0 | ||
|
|
6dc24b6911 | ||
|
|
25e00a217d | ||
|
|
54d0136aa5 | ||
|
|
670830cf3e | ||
|
|
06ac7eff64 | ||
|
|
f87c391547 | ||
|
|
8bf71cf947 | ||
|
|
bfa2376653 | ||
|
|
cfec912d12 | ||
|
|
8c26cacebc | ||
|
|
71fb78a3b7 | ||
|
|
dfce2e0b13 | ||
|
|
491fde75bb |
22
.github/workflows/lint.yml
vendored
22
.github/workflows/lint.yml
vendored
@@ -1,6 +1,11 @@
|
|||||||
name: Run linters
|
name: Run linters
|
||||||
|
|
||||||
on: push
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- 'master'
|
||||||
|
- 'v*.*'
|
||||||
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
@@ -8,7 +13,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Use Node.js 10.x
|
- name: Use Node.js 10.x
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v1
|
||||||
@@ -18,14 +23,11 @@ jobs:
|
|||||||
- name: Install npm dependencies
|
- name: Install npm dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
|
||||||
- name: Run linters
|
- name: Eslint
|
||||||
uses: samuelmeuli/lint-action@v1
|
run: npm run lint:js
|
||||||
with:
|
|
||||||
github_token: ${{ secrets.github_token }}
|
- name: Stylelint
|
||||||
eslint: true
|
run: npm run lint:sass
|
||||||
eslint_dir: "src/javascripts"
|
|
||||||
stylelint: true
|
|
||||||
stylelint_dir: "src/sass"
|
|
||||||
|
|
||||||
- name: Check build
|
- name: Check build
|
||||||
run: npm run build
|
run: npm run build
|
||||||
|
|||||||
12
.lintstagedrc.js
Normal file
12
.lintstagedrc.js
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
module.exports = {
|
||||||
|
"src/**/*.js": files => [
|
||||||
|
`eslint "${files.join('" "')}"`,
|
||||||
|
'grunt js',
|
||||||
|
'git add javascripts/'
|
||||||
|
],
|
||||||
|
"src/**/*.scss": files => [
|
||||||
|
`stylelint "${files.join('" "')}"`,
|
||||||
|
'grunt css',
|
||||||
|
'git add stylesheets/ plugins/'
|
||||||
|
],
|
||||||
|
}
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
A free Redmine theme for modern browsers.
|
A free Redmine theme for modern browsers.
|
||||||
|
|
||||||
 [](http://standardjs.com/) [](https://actions-badge.atrox.dev/mrliptontea/PurpleMine2/goto) [](https://github.com/mrliptontea/PurpleMine2/issues)
|
 [](http://standardjs.com/)  [](https://github.com/mrliptontea/PurpleMine2/issues)
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -56,6 +56,11 @@ If you need to customize styles for [Redmine Backlogs][redmine_backlogs] remembe
|
|||||||
|
|
||||||
## Changelog
|
## Changelog
|
||||||
|
|
||||||
|
v2.12.0 (2020-08-01):
|
||||||
|
|
||||||
|
* Fixed #196 and #199: text wrapping in certain column types.
|
||||||
|
* Merged #203: fixed pagination overlapping wiki content.
|
||||||
|
|
||||||
v2.11.0 (2020-05-08):
|
v2.11.0 (2020-05-08):
|
||||||
|
|
||||||
* Fixed #179: full screen mode issues when using redmine_wysiwyg_editor plugin.
|
* Fixed #179: full screen mode issues when using redmine_wysiwyg_editor plugin.
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
4166
package-lock.json
generated
4166
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
25
package.json
25
package.json
@@ -25,29 +25,36 @@
|
|||||||
"lint": "npm run -S lint:js && npm run -S lint:sass"
|
"lint": "npm run -S lint:js && npm run -S lint:sass"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"autoprefixer": "^9.7.5",
|
"autoprefixer": "^9.8.0",
|
||||||
"grunt": "^1.1.0",
|
"grunt": "^1.1.0",
|
||||||
"grunt-contrib-uglify": "^4.0.1",
|
"grunt-contrib-uglify": "^4.0.1",
|
||||||
"grunt-contrib-watch": "^1.1.0",
|
"grunt-contrib-watch": "^1.1.0",
|
||||||
"grunt-postcss": "^0.9.0",
|
"grunt-postcss": "^0.9.0",
|
||||||
"grunt-sass": "^3.1.0",
|
"grunt-sass": "^3.1.0",
|
||||||
"node-sass": "^4.13.1",
|
"node-sass": "^4.14.1",
|
||||||
"sass-inline-svg": "^1.2.3"
|
"sass-inline-svg": "^1.2.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"eslint": "^6.8.0",
|
"eslint": "^7.1.0",
|
||||||
"eslint-config-standard": "^14.1.1",
|
"eslint-config-standard": "^14.1.1",
|
||||||
"eslint-plugin-import": "^2.20.1",
|
"eslint-plugin-import": "^2.20.2",
|
||||||
"eslint-plugin-node": "^11.0.0",
|
"eslint-plugin-node": "^11.1.0",
|
||||||
"eslint-plugin-promise": "^4.2.1",
|
"eslint-plugin-promise": "^4.2.1",
|
||||||
"eslint-plugin-standard": "^4.0.1",
|
"eslint-plugin-standard": "^4.0.1",
|
||||||
"stylelint": "^10.1.0",
|
"husky": "^4.2.5",
|
||||||
"stylelint-order": "^3.1.1",
|
"lint-staged": "^10.2.6",
|
||||||
"stylelint-scss": "^3.16.0"
|
"stylelint": "^13.5.0",
|
||||||
|
"stylelint-order": "^4.0.0",
|
||||||
|
"stylelint-scss": "^3.17.2"
|
||||||
},
|
},
|
||||||
"browserslist": [
|
"browserslist": [
|
||||||
"last 2 versions",
|
"last 2 versions",
|
||||||
"> 1%",
|
"> 1%",
|
||||||
"not dead"
|
"not dead"
|
||||||
]
|
],
|
||||||
|
"husky": {
|
||||||
|
"hooks": {
|
||||||
|
"pre-commit": "lint-staged --relative"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -124,6 +124,11 @@ img {
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
max-height: 100%;
|
max-height: 100%;
|
||||||
|
|
||||||
|
&.wiki {
|
||||||
|
position: static;
|
||||||
|
padding-bottom: $line-height-computed;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -193,10 +193,15 @@ tr.issue {
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
|
||||||
|
.category,
|
||||||
|
.enumeration,
|
||||||
|
.list,
|
||||||
|
.parent-subject,
|
||||||
|
.parent,
|
||||||
|
.relations,
|
||||||
.string,
|
.string,
|
||||||
.text,
|
|
||||||
.subject,
|
.subject,
|
||||||
.category {
|
.text {
|
||||||
white-space: normal;
|
white-space: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -303,6 +308,11 @@ td.center {
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
td.assigned_to,
|
||||||
|
td.last_updated_by {
|
||||||
|
white-space: normal;
|
||||||
|
}
|
||||||
|
|
||||||
.issue-report {
|
.issue-report {
|
||||||
table-layout: fixed;
|
table-layout: fixed;
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user