diff --git a/npm_run_puplish.js b/npm_run_puplish.js index 11a36b2..0fbd4fb 100644 --- a/npm_run_puplish.js +++ b/npm_run_puplish.js @@ -33,15 +33,18 @@ apps[i] = apps[i].replace('.json', ''); if (captainVersion + '' === '2') { - if (!content.displayName) content.displayName = apps[i] + if (!content.displayName) { + content.displayName = apps[i] + content.displayName = content.displayName.substr(0, 1).toUpperCase() + content.displayName.substring(1, content.displayName.length) + } if (!content.description) content.description = '' - appDetails[i] = { - name: apps[i], - displayName: content.displayName, - description: content.description, - logoUrl: apps[i] + '.png' - } + appDetails[i] = { + name: apps[i], + displayName: content.displayName, + description: content.description, + logoUrl: apps[i] + '.png' + } } } diff --git a/public/v2/apps/gitlab-ce.json b/public/v2/apps/gitlab-ce.json index bc134a2..7723642 100644 --- a/public/v2/apps/gitlab-ce.json +++ b/public/v2/apps/gitlab-ce.json @@ -1,7 +1,7 @@ { "captainVersion": "2", "documentation": "Taken from https://docs.gitlab.com/omnibus/docker/", - "displayName": "", + "displayName": "Gitlab (CE)", "description": "CE version of GitLab for CI/CD pipeline", "dockerCompose": { "version": "3.3", diff --git a/public/v2/apps/gitlab-runner.json b/public/v2/apps/gitlab-runner.json index f2ede72..10fcc8e 100644 --- a/public/v2/apps/gitlab-runner.json +++ b/public/v2/apps/gitlab-runner.json @@ -1,7 +1,7 @@ { "captainVersion": "2", "documentation": "Taken from https://docs.gitlab.com/runner/install/docker.html and https://docs.gitlab.com/runner/register/", - "displayName": "", + "displayName": "Gitlab (runner)", "description": "Runner version of GitLab for CI/CD pipeline", "dockerCompose": { "version": "3", diff --git a/public/v2/apps/mongo-express.json b/public/v2/apps/mongo-express.json index 2936946..c8dd62b 100644 --- a/public/v2/apps/mongo-express.json +++ b/public/v2/apps/mongo-express.json @@ -1,7 +1,7 @@ { "captainVersion": "2", "documentation": "Taken from https://hub.docker.com/_/mongo-express/ except it is manually adjusted for port 80", - "displayName": "", + "displayName": "Mongo Express", "description": "Web-based MongoDB admin interface, written with Node.js and express", "dockerCompose": { "version": "3.3", diff --git a/public/v2/apps/mongodb.json b/public/v2/apps/mongodb.json index 4b86fa3..1269de6 100644 --- a/public/v2/apps/mongodb.json +++ b/public/v2/apps/mongodb.json @@ -1,7 +1,7 @@ { "captainVersion": "2", "documentation": "Taken from https://hub.docker.com/r/mongo/", - "displayName": "", + "displayName": "MongoDB", "description": "MongoDB is a cross-platform document-oriented database program. Classified as a NoSQL database program", "dockerCompose": { "version": "3.3", diff --git a/public/v2/apps/mssql.json b/public/v2/apps/mssql.json index c852bb8..d629582 100644 --- a/public/v2/apps/mssql.json +++ b/public/v2/apps/mssql.json @@ -1,7 +1,7 @@ { "captainVersion": "2", "documentation": "Taken from https://hub.docker.com/_/microsoft-mssql-server", - "displayName": "", + "displayName": "Microsoft SQL", "description": "Microsoft SQL Server is a relational database management system developed by Microsoft", "dockerCompose": { "version": "3.3", diff --git a/public/v2/apps/mysql.json b/public/v2/apps/mysql.json index ef51e36..ac4dedd 100644 --- a/public/v2/apps/mysql.json +++ b/public/v2/apps/mysql.json @@ -1,7 +1,7 @@ { "captainVersion": "2", "documentation": "Taken from https://docs.docker.com/compose/mysql/ port mapping removed from WP as it's not needed", - "displayName": "", + "displayName": "MySQL", "description": "MySQL is a relational database management system based on SQL", "dockerCompose": { "version": "3.3", diff --git a/public/v2/apps/nginx-reverse-proxy.json b/public/v2/apps/nginx-reverse-proxy.json index c3b4e19..044ab6a 100644 --- a/public/v2/apps/nginx-reverse-proxy.json +++ b/public/v2/apps/nginx-reverse-proxy.json @@ -1,7 +1,7 @@ { "captainVersion": "2", "documentation": "Taken from https://github.com/caprover/nginx-reverse-proxy", - "displayName": "", + "displayName": "Nginx Reverse Proxy", "description": "A simple nginx image preloaded with reverse proxy config that allows you to proxy a URL to another URL", "dockerCompose": { "version": "3.3", diff --git a/public/v2/apps/vsts.json b/public/v2/apps/vsts.json index a4ebd26..41f18f7 100644 --- a/public/v2/apps/vsts.json +++ b/public/v2/apps/vsts.json @@ -1,7 +1,7 @@ { "captainVersion": "2", "documentation": "Taken from https://hub.docker.com/r/microsoft/vsts-agent/", - "displayName": "", + "displayName": "VSTS", "description": "VSTS is an integrated development environment (IDE) developed as a software product by Microsoft Corp", "dockerCompose": { "version": "3.3", diff --git a/public/v2/apps/wordpress.json b/public/v2/apps/wordpress.json index b6b186c..0e99bec 100644 --- a/public/v2/apps/wordpress.json +++ b/public/v2/apps/wordpress.json @@ -1,7 +1,7 @@ { "captainVersion": "2", "documentation": "Taken from https://docs.docker.com/compose/wordpress/. Port mapping removed from WP as it is no longer needed", - "displayName": "", + "displayName": "WordPress", "description": "WordPress is a content management system based on PHP and MySQL that is usually used with the MySQL or MariaDB database", "dockerCompose": { "version": "3.3",