Moving public
directory away:
Moving `public/images` dir to `assets/images`, because it conflicts with gitlab CI/CD for documentation. Moving `assets/styles.css` to `assets/styles/styles.css`. Related to #117.
@ -5,6 +5,7 @@
|
|||||||
### Minor changes and fixes
|
### Minor changes and fixes
|
||||||
|
|
||||||
* Updating a link to the documentation in the settings page.
|
* Updating a link to the documentation in the settings page.
|
||||||
|
* Moving `public/images` dir to `assets/images`, because it conflicts with gitlab CI/CD for documentation. Moving `assets/styles.css` to `assets/styles/styles.css`.
|
||||||
|
|
||||||
## 6.1.0
|
## 6.1.0
|
||||||
|
|
||||||
|
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 48 KiB |
Before Width: | Height: | Size: 5.4 KiB After Width: | Height: | Size: 5.4 KiB |
Before Width: | Height: | Size: 8.2 KiB After Width: | Height: | Size: 8.2 KiB |
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 4.7 KiB |
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 4.8 KiB |
@ -4,7 +4,7 @@
|
|||||||
const sharp = require('sharp')
|
const sharp = require('sharp')
|
||||||
const path = require('path')
|
const path = require('path')
|
||||||
|
|
||||||
const inputDir = './public/images/avatars/'
|
const inputDir = './assets/images/avatars/'
|
||||||
const outputDir = './dist/server/avatars/'
|
const outputDir = './dist/server/avatars/'
|
||||||
const backgrounds = [
|
const backgrounds = [
|
||||||
'#ffffff',
|
'#ffffff',
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
type SVGButton = () => string
|
type SVGButton = () => string
|
||||||
|
|
||||||
const closeSVG: SVGButton = () => {
|
const closeSVG: SVGButton = () => {
|
||||||
// This content comes from the file public/image/bye.svg, after svgo cleaning.
|
// This content comes from the file assets/images/bye.svg, after svgo cleaning.
|
||||||
// To get the formated content, you can do:
|
// To get the formated content, you can do:
|
||||||
// xmllint dist/client/images/bye.svg --format
|
// xmllint dist/client/images/bye.svg --format
|
||||||
// Then replace the main color by «currentColor»
|
// Then replace the main color by «currentColor»
|
||||||
@ -25,7 +25,7 @@ const closeSVG: SVGButton = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const openChatSVG: SVGButton = () => {
|
const openChatSVG: SVGButton = () => {
|
||||||
// This content comes from the file public/image/talking.svg, after svgo cleaning.
|
// This content comes from the file assets/images/talking.svg, after svgo cleaning.
|
||||||
// To get the formated content, you can do:
|
// To get the formated content, you can do:
|
||||||
// xmllint dist/client/images/talking.svg --format
|
// xmllint dist/client/images/talking.svg --format
|
||||||
// Note: it was highly simplified in this file.
|
// Note: it was highly simplified in this file.
|
||||||
@ -43,7 +43,7 @@ const openChatSVG: SVGButton = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const openBlankChatSVG: SVGButton = () => {
|
const openBlankChatSVG: SVGButton = () => {
|
||||||
// This content comes from the file public/image/new-window.svg, after svgo cleaning.
|
// This content comes from the file assets/images/new-window.svg, after svgo cleaning.
|
||||||
// To get the formated content, you can do:
|
// To get the formated content, you can do:
|
||||||
// xmllint dist/client/images/new-window.svg --format
|
// xmllint dist/client/images/new-window.svg --format
|
||||||
// Then replace the main color by «currentColor»
|
// Then replace the main color by «currentColor»
|
||||||
@ -86,7 +86,7 @@ const openBlankChatSVG: SVGButton = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const shareChatUrlSVG: SVGButton = () => {
|
const shareChatUrlSVG: SVGButton = () => {
|
||||||
// This content comes from the file public/image/url.svg, after svgo cleaning.
|
// This content comes from the file assets/images/url.svg, after svgo cleaning.
|
||||||
// To get the formated content, you can do:
|
// To get the formated content, you can do:
|
||||||
// xmllint dist/client/images/url.svg --format
|
// xmllint dist/client/images/url.svg --format
|
||||||
// Then replace the color by `currentColor`
|
// Then replace the color by `currentColor`
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"css": [
|
"css": [
|
||||||
"dist/assets/style.css"
|
"dist/assets/styles/style.css"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"async": "^3.2.2",
|
"async": "^3.2.2",
|
||||||
@ -86,18 +86,18 @@
|
|||||||
"prepare": "npm run clean && npm run build",
|
"prepare": "npm run clean && npm run build",
|
||||||
"build:converse": "bash conversejs/build-conversejs.sh",
|
"build:converse": "bash conversejs/build-conversejs.sh",
|
||||||
"build:prosody": "bash build-prosody.sh",
|
"build:prosody": "bash build-prosody.sh",
|
||||||
"build:images": "mkdir -p dist/client/images && npx svgo -f public/images/ -o dist/client/images/",
|
"build:images": "mkdir -p dist/client/images && npx svgo -f assets/images/ -o dist/client/images/",
|
||||||
"build:avatars": "mkdir -p dist/server/avatars && ./build-avatars.js",
|
"build:avatars": "mkdir -p dist/server/avatars && ./build-avatars.js",
|
||||||
"check:client:tsc": "npx tsc --p client/ --noEmit --skipLibCheck",
|
"check:client:tsc": "npx tsc --p client/ --noEmit --skipLibCheck",
|
||||||
"build:client": "node ./build-client.js --mode=production",
|
"build:client": "node ./build-client.js --mode=production",
|
||||||
"build:server": "npx tsc --build server/tsconfig.json",
|
"build:server": "npx tsc --build server/tsconfig.json",
|
||||||
"build:serverconverse": "mkdir -p dist/server/conversejs && cp conversejs/index.html dist/server/conversejs/",
|
"build:serverconverse": "mkdir -p dist/server/conversejs && cp conversejs/index.html dist/server/conversejs/",
|
||||||
"build:prosodymodules": "mkdir -p dist/server/prosody-modules && cp -r prosody-modules/* dist/server/prosody-modules/",
|
"build:prosodymodules": "mkdir -p dist/server/prosody-modules && cp -r prosody-modules/* dist/server/prosody-modules/",
|
||||||
"build:styles": "sass assets:dist/assets",
|
"build:styles": "sass assets/styles:dist/assets/styles",
|
||||||
"build": "npm-run-all -s clean:light check:client:tsc -p build:converse build:prosody build:images build:avatars build:client build:server build:serverconverse build:prosodymodules build:styles",
|
"build": "npm-run-all -s clean:light check:client:tsc -p build:converse build:prosody build:images build:avatars build:client build:server build:serverconverse build:prosodymodules build:styles",
|
||||||
"lint": "npm-run-all -s lint:script lint:styles",
|
"lint": "npm-run-all -s lint:script lint:styles",
|
||||||
"lint:script": "npx eslint --ext .js --ext .ts .",
|
"lint:script": "npx eslint --ext .js --ext .ts .",
|
||||||
"lint:styles": "stylelint 'conversejs/**/*.scss' 'assets/**/*.css'",
|
"lint:styles": "stylelint 'conversejs/**/*.scss' 'assets/styles/**/*.css'",
|
||||||
"show:npmfiles": "npx npm-packlist",
|
"show:npmfiles": "npx npm-packlist",
|
||||||
"doc:generatemissingtranslations": "bash doc-generate-missing-translations.sh"
|
"doc:generatemissingtranslations": "bash doc-generate-missing-translations.sh"
|
||||||
},
|
},
|
||||||
|