diff --git a/.github/AUTHORS.txt b/.github/AUTHORS.txt index 37e64dbb..09040d51 100644 --- a/.github/AUTHORS.txt +++ b/.github/AUTHORS.txt @@ -17,6 +17,7 @@ jnach <33467747+jnach@users.noreply.github.com> - 1 commits BOZG - 2 commits Brendan <'Lear> - 2 commits Dan - 2 commits +Ruben - 2 commits liss-bot <87835202+liss-bot@users.noreply.github.com> - 2 commits ᗪєνιη <υн> - 2 commits Walkx <71191962+walkxcode@users.noreply.github.com> - 3 commits @@ -31,13 +32,13 @@ Alicia - 16 commits github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> - 16 commits snyk-bot - 18 commits EVOTk <45015615+EVOTk@users.noreply.github.com> - 22 commits -repo-visualizer - 22 commits -snyk-bot - 25 commits +repo-visualizer - 23 commits Alicia - 28 commits -Alicia - 45 commits -liss-bot - 58 commits +snyk-bot - 29 commits +Alicia - 47 commits +liss-bot - 59 commits Alicia - 60 commits Lissy93 - 78 commits Lissy93 - 206 commits -Alicia - 323 commits -Alicia - 1346 commits \ No newline at end of file +Alicia - 332 commits +Alicia - 1374 commits \ No newline at end of file diff --git a/README.md b/README.md index e8134096..8800f8b9 100644 --- a/README.md +++ b/README.md @@ -516,10 +516,25 @@ Huge thanks to the sponsors helping to support Dashy's development! - ratty222 + ratty222
Ratty222
+ + + + undefined +
+ undefined +
+ + + + + jtfinley72 +
+ jtfinley72 +
diff --git a/docs/assets/CONTRIBUTORS.svg b/docs/assets/CONTRIBUTORS.svg index f2984c00..f6bd0f86 100644 --- a/docs/assets/CONTRIBUTORS.svg +++ b/docs/assets/CONTRIBUTORS.svg @@ -30,40 +30,43 @@ + + + - + - + - + - + - + - + - + - + - + - + - + - + \ No newline at end of file diff --git a/docs/assets/repo-visualization.svg b/docs/assets/repo-visualization.svg index 05ed50f1..2607c19b 100644 --- a/docs/assets/repo-visualization.svg +++ b/docs/assets/repo-visualization.svg @@ -1 +1 @@ -viewsviewsutilsutilsstylesstylesmixinsmixinscomponentscomponentsassetsassetsWorkspaceWorkspaceWidgetsWidgetsSettingsSettingsPageStrcturePageStrctureMinimalViewMinimalViewLinkItemsLinkItemsInteractiveEditorInteractiveEditorFormElementsFormElementsConfigurationConfigurationChartsChartslocaleslocalesinterface-iconsinterface-iconsemojis.jsonemojis.jsonemojis.jsonConfigSc...ConfigSc...ConfigSc...color-th...color-th...color-th...WidgetBa...WidgetBa...WidgetBa...Item.vueItem.vueItem.vuehi.jsonhi.jsonhi.json.js.json.scss.svg.vueeach dot sized by file size \ No newline at end of file +viewsviewsutilsutilsstylesstylesmixinsmixinscomponentscomponentsassetsassetsWorkspaceWorkspaceWidgetsWidgetsSettingsSettingsPageStrcturePageStrctureMinimalViewMinimalViewLinkItemsLinkItemsInteractiveEditorInteractiveEditorFormElementsFormElementsConfigurationConfigurationChartsChartslocaleslocalesinterface-iconsinterface-iconsemojis.jsonemojis.jsonemojis.jsonConfigSc...ConfigSc...ConfigSc...color-th...color-th...color-th...WidgetBa...WidgetBa...WidgetBa...Item.vueItem.vueItem.vuehi.jsonhi.jsonhi.json.js.json.scss.svg.vueeach dot sized by file size \ No newline at end of file diff --git a/docs/credits.md b/docs/credits.md index ea1571df..201cf697 100644 --- a/docs/credits.md +++ b/docs/credits.md @@ -34,10 +34,25 @@ - ratty222 + ratty222
Ratty222
+ + + + undefined +
+ undefined +
+ + + + + jtfinley72 +
+ jtfinley72 +
@@ -124,14 +139,21 @@ Dan Gilbert + + + rubenandre +
+ Rúben Silva +
+ + BeginCI
Begin
- - + skaarj1989 @@ -166,15 +188,15 @@
Ishan Jain
- + + KierenConnell
Kieren Connell
- - + rubjo @@ -209,7 +231,8 @@
Aniket Teredesai
- + + jnach diff --git a/server.js b/server.js index bc66efc3..4cef9e23 100644 --- a/server.js +++ b/server.js @@ -1,8 +1,8 @@ /** - * Note: The app must first be built (yarn build) before this script is run * This is the main entry point for the application, a simple server that * runs some checks, and then serves up the app from the ./dist directory - * Also includes some routes for status checks/ ping and config saving + * Also imports some routes for status checks/ ping and config saving + * Note: The app must first be built (yarn build) before this script is run * */ /* Import built-in Node server modules */ @@ -46,10 +46,15 @@ const getLocalIp = () => { /* Gets the users local IP and port, then calls to print welcome message */ const printWelcomeMessage = () => { - getLocalIp().then(({ address }) => { - const ip = address || 'localhost'; - console.log(printMessage(ip, port, isDocker)); // eslint-disable-line no-console - }); + try { + getLocalIp().then(({ address }) => { + const ip = address || 'localhost'; + console.log(printMessage(ip, port, isDocker)); // eslint-disable-line no-console + }); + } catch (e) { + // Fetching info for welcome message failed, print simple msg instead + console.log(`Dashy server has started (${port})`); // eslint-disable-line no-console + } }; /* Just console.warns an error */ @@ -65,7 +70,7 @@ const app = express() .use(express.static(path.join(__dirname, 'dist'))) .use(express.static(path.join(__dirname, 'public'), { index: 'initialization.html' })) // Load middlewares for parsing JSON, and supporting HTML5 history routing - .use(express.json()) + .use(express.json({ limit: '1mb' })) .use(history()) // GET endpoint to run status of a given URL with GET request .use(ENDPOINTS.statusCheck, (req, res) => { @@ -114,7 +119,13 @@ const app = express() }); /* Create HTTP server from app on port, and print welcome message */ -http.createServer(app).listen(port, () => { printWelcomeMessage(); }); +http.createServer(app) + .listen(port, () => { + printWelcomeMessage(); + }) + .on('error', (err) => { + printWarning('Unable to start Dashy\'s Node server', err); + }); /* Check, and if possible start SSL server too */ sslServer(app);