}
}
],
- ["@babel/typescript", {"isTSX": true, "allExtensions": true}]
+ ["@babel/typescript", { "isTSX": true, "allExtensions": true }]
],
"plugins": [
"@babel/plugin-transform-runtime",
- ["babel-plugin-inferno", { "imports": true }],
- ["@babel/plugin-proposal-class-properties", { "loose": true }],
+ ["babel-plugin-inferno", { "imports": true }],
+ ["@babel/plugin-proposal-class-properties", { "loose": true }]
]
}
generate_translations.js
webpack.config.js
src/api_tests
+**/*.png
+**/*.svg
+**/*.css
+**/*.scss
\ No newline at end of file
"env": {
"browser": true
},
- "plugins": [
- "@typescript-eslint"
- ],
+ "plugins": ["@typescript-eslint"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
---
name: "\U0001F41E Bug Report"
about: Create a report to help us improve Lemmy
-title: ''
+title: ""
labels: bug
-assignees: ''
-
+assignees: ""
---
Found a bug? Please fill out the sections below. 👍
A summary of the bug.
-
### Steps to Reproduce
1. (for example) I clicked login, and an endless spinner show up.
### Technical details
-* Please post your log: `sudo docker-compose logs > lemmy_log.out`.
-* What OS are you trying to install lemmy on?
-* Any browser console errors?
+- Please post your log: `sudo docker-compose logs > lemmy_log.out`.
+- What OS are you trying to install lemmy on?
+- Any browser console errors?
---
name: "\U0001F680 Feature request"
about: Suggest an idea for improving Lemmy
-title: ''
+title: ""
labels: enhancement
-assignees: ''
-
+assignees: ""
---
For backend issues, use [lemmy](https://github.com/LemmyNet/lemmy)
---
name: "? Question"
about: General questions about Lemmy
-title: ''
+title: ""
labels: question
-assignees: ''
-
+assignees: ""
---
What's the question you have about lemmy?
---
name: Hexbear
about: For hexbear issues
-title: ''
+title: ""
labels: hexbear
-assignees: ''
-
+assignees: ""
---
For hexbear-related issues
-src/shared/translations
\ No newline at end of file
+src/shared/translations
+lemmy-translations
\ No newline at end of file
publish_release_docker_manifest:
image: plugins/manifest
- settings:
+ settings:
username:
from_secret: docker_username
password:
publish_latest_release_docker_manifest:
image: plugins/manifest
- settings:
+ settings:
username:
from_secret: docker_username
password:
-# lemmy-ui\r
-\r
-The official web app for [Lemmy](https://github.com/LemmyNet/lemmy), written in inferno.\r
-\r
-Based off of MrFoxPro's [inferno-isomorphic-template](https://github.com/MrFoxPro/inferno-isomorphic-template).\r
-\r
-## Configuration\r
-\r
-The following environment variables can be used to configure lemmy-ui:\r
-\r
-`ENV_VAR` | type | default | description\r
---- | --- | --- | ---\r
-`LEMMY_UI_HOST` | `string` | `0.0.0.0:1234` | The IP / port that the lemmy-ui isomorphic node server is hosted at.\r
-`LEMMY_UI_LEMMY_INTERNAL_HOST` | `string` | `0.0.0.0:8536` | The internal IP / port that lemmy is hosted at. Often `lemmy:8536` if using docker.\r
-`LEMMY_UI_LEMMY_EXTERNAL_HOST` | `string` | `0.0.0.0:8536` | The external IP / port that lemmy is hosted at. Often `DOMAIN.TLD`.\r
-`LEMMY_UI_LEMMY_WS_HOST` | `string` | `0.0.0.0:8536` | An alternate location for lemmy's websocket address. Not usually necessary.\r
-`LEMMY_UI_HTTPS` | `bool` | `false` | Whether to use https.\r
-`LEMMY_UI_EXTRA_THEMES_FOLDER` | `string` | `./extra_themes` | A location for additional lemmy css themes.\r
-`LEMMY_UI_DEBUG` | `bool` | `false` | Loads the [Eruda](https://github.com/liriliri/eruda) debugging utility.\r
-`LEMMY_UI_DISABLE_CSP` | `bool` | `false` | Disables CSP security headers\r
-`LEMMY_UI_CUSTOM_HTML_HEADER` | `string` | | Injects a custom script into `<head>`.\r
+# lemmy-ui
+
+The official web app for [Lemmy](https://github.com/LemmyNet/lemmy), written in inferno.
+
+Based off of MrFoxPro's [inferno-isomorphic-template](https://github.com/MrFoxPro/inferno-isomorphic-template).
+
+## Configuration
+
+The following environment variables can be used to configure lemmy-ui:
+
+| `ENV_VAR` | type | default | description |
+| ------------------------------ | -------- | ---------------- | ----------------------------------------------------------------------------------- |
+| `LEMMY_UI_HOST` | `string` | `0.0.0.0:1234` | The IP / port that the lemmy-ui isomorphic node server is hosted at. |
+| `LEMMY_UI_LEMMY_INTERNAL_HOST` | `string` | `0.0.0.0:8536` | The internal IP / port that lemmy is hosted at. Often `lemmy:8536` if using docker. |
+| `LEMMY_UI_LEMMY_EXTERNAL_HOST` | `string` | `0.0.0.0:8536` | The external IP / port that lemmy is hosted at. Often `DOMAIN.TLD`. |
+| `LEMMY_UI_LEMMY_WS_HOST` | `string` | `0.0.0.0:8536` | An alternate location for lemmy's websocket address. Not usually necessary. |
+| `LEMMY_UI_HTTPS` | `bool` | `false` | Whether to use https. |
+| `LEMMY_UI_EXTRA_THEMES_FOLDER` | `string` | `./extra_themes` | A location for additional lemmy css themes. |
+| `LEMMY_UI_DEBUG` | `bool` | `false` | Loads the [Eruda](https://github.com/liriliri/eruda) debugging utility. |
+| `LEMMY_UI_DISABLE_CSP` | `bool` | `false` | Disables CSP security headers |
+| `LEMMY_UI_CUSTOM_HTML_HEADER` | `string` | | Injects a custom script into `<head>`. |
"build:prod": "webpack --mode=production",
"clean": "yarn run rimraf dist",
"dev": "yarn start",
- "lint": "node generate_translations.js && tsc --noEmit && eslint --report-unused-disable-directives --ext .js,.ts,.tsx src && prettier --check \"src/**/*.{ts,tsx,js,css,scss}\"",
+ "lint": "node generate_translations.js && tsc --noEmit && eslint --report-unused-disable-directives --ext .js,.ts,.tsx \"src/**\" && prettier --check \"src/**/*.{ts,tsx,js,css,scss}\"",
"prepare": "husky install",
"start": "yarn build:dev --watch"
},
async function fetchIconPng(iconUrl: string) {
return await fetch(
- iconUrl.replace(/https?:\/\/localhost:\d+/g, getHttpBaseInternal())
+ iconUrl.replace(/https?:\/\/[^\/]+/g, getHttpBaseInternal())
)
.then(res => res.blob())
.then(blob => blob.arrayBuffer());
-{\r
- "compilerOptions": {\r
- "pretty": true,\r
- "target": "esnext",\r
- "module": "esnext",\r
- "allowSyntheticDefaultImports": true,\r
- "preserveConstEnums": true,\r
- "sourceMap": true,\r
- "moduleResolution": "node",\r
- "lib": ["es2017", "dom"],\r
- "types": [\r
- "inferno"\r
- ],\r
- "jsx": "preserve",\r
- "noUnusedLocals": true,\r
- "baseUrl": "./src",\r
- "noEmit": true,\r
- "skipLibCheck": true,\r
- "noUnusedParameters": true,\r
- "noImplicitReturns": true,\r
- "experimentalDecorators": true,\r
- "strictNullChecks": true,\r
- "noFallthroughCasesInSwitch": true\r
- },\r
- "include": [\r
- "src/**/*",\r
- "node_modules/inferno/dist/index.d.ts"\r
- ]\r
-}\r
+{
+ "compilerOptions": {
+ "pretty": true,
+ "target": "esnext",
+ "module": "esnext",
+ "allowSyntheticDefaultImports": true,
+ "preserveConstEnums": true,
+ "sourceMap": true,
+ "moduleResolution": "node",
+ "lib": ["es2017", "dom"],
+ "types": ["inferno"],
+ "jsx": "preserve",
+ "noUnusedLocals": true,
+ "baseUrl": "./src",
+ "noEmit": true,
+ "skipLibCheck": true,
+ "noUnusedParameters": true,
+ "noImplicitReturns": true,
+ "experimentalDecorators": true,
+ "strictNullChecks": true,
+ "noFallthroughCasesInSwitch": true
+ },
+ "include": [
+ "src/**/*.ts",
+ "src/**/*.tsx",
+ "node_modules/inferno/dist/index.d.ts"
+ ]
+}