Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: initial version dashboard #9

Merged
merged 25 commits into from
Sep 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
4849d71
feat: initial version dashboard
manast Aug 9, 2022
ad42bac
feat: add login api route
manast Aug 15, 2022
7513cd8
feat: add initial dashboard component
manast Aug 15, 2022
14431c1
feat(dashboard): more dashboard improvements
manast Aug 17, 2022
ec0b81a
feat(login): add error message
weebecka Aug 18, 2022
af11aea
chore(gitignore): ignore dist
manast Aug 18, 2022
a753abc
feat(dashboard): add support for creating organizations
manast Aug 18, 2022
cfdc7da
chore(yarn): remove install-state.gz
manast Aug 18, 2022
b8bcc64
fix(dashboard): check organizations before mapping it
manast Aug 18, 2022
1c59d9a
done log out design
weebecka Aug 23, 2022
8d14478
feat(dashboard): add initial users view
manast Aug 31, 2022
04b3792
Merge branch 'feat/dashboard-ui' of github.com:taskforcesh/nandu into…
manast Aug 31, 2022
a769ce1
fix(dashboard): remove avatar
manast Aug 31, 2022
a9a5a44
chore(dashboard): parametrized api host
manast Aug 31, 2022
8161d37
feat(dashboard): add teams and packages views
manast Sep 1, 2022
671dbc7
fix: improve users,organization,teams CSS
weebecka Sep 1, 2022
14884bf
feat: add hooks view
manast Sep 5, 2022
1faed0d
fix: improve button css
weebecka Sep 7, 2022
0694cc2
fix: improve packages css
weebecka Sep 7, 2022
6ef31b2
fix: improve packages css
weebecka Sep 7, 2022
425a527
fix: improve packages css
weebecka Sep 7, 2022
4333ef2
feat: add profile view
manast Sep 8, 2022
3840c99
Merge branch 'feat/dashboard-ui' of github.com:taskforcesh/nandu into…
manast Sep 8, 2022
a08e016
feat(cli): add nandu cli as a workspace package
manast Sep 9, 2022
a1e7127
chore: prepare project for monorepo releases
manast Sep 9, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
root = true

[*]
end_of_line = lf
insert_final_newline = true

[*.{js,json,yml}]
charset = utf-8
indent_style = space
indent_size = 2
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
run: npx multi-semantic-release
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@ node_modules
/storage
.DS_Store
yarn-error.log
packages/service/storage
packages/service/dist
.yarn
packages/service/.env
786 changes: 786 additions & 0 deletions .yarn/releases/yarn-berry.cjs

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-berry.cjs
12 changes: 12 additions & 0 deletions ENV.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,15 @@
- `NANDU_SEQUELIZE_URI` (default: sqlite:./storage/db/nandu.db)
- `NANDU_S3_BUCKET`
- `NANDU_LOCAL_STORAGE_DIR`


| variable | meaning | required? | default |
| --- | --- | --- | --- |
| NANDU_LOG_LEVEL | the API token you generated in Slack | y | - |
| NANDU_ROOT_USER | the ID of the Slack channel to post to (not its name!) | y | - |
| NANDU_ROOT_PASSWD | the shared secret set up for the hooks you'll be receiving | y | - |
| NANDU_PASSWORD_SALT_ROUNDS | the port number to listen on | n | 6666 |
| NANDU_SEQUELIZE_URI | the path to mount the hook on | n | `/incoming` |
| NANDU_S3_BUCKET | used in logging | n | `hooks-bot` |
| NANDU_LOCAL_STORAGE_DIR | post as the inferred bot user (bot needs to be in the channel!) | n | - |

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,4 @@ In order to use Nandu you should use the [Nandu-cli](https://github.com/taskforc

This project is provided as open source and licensed under GNU's AGPL license terms.

(c) 2021 Taskforce.sh Inc.
(c) 2022 Taskforce.sh Inc.
93 changes: 6 additions & 87 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,95 +1,14 @@
{
"name": "nandu",
"version": "1.5.0",
"description": "Open NPM Registry",
"main": "dist/src/index.js",
"types": "dist/src/index.d.ts",
"source": "src/index.ts",
"files": [
"dist",
"LICENSE",
"README.md"
"packageManager": "yarn@3.2.1",
"private": true,
"workspaces": [
"packages/cli",
"packages/service",
"packages/dashboard"
],
"keywords": [
"npm",
"registry"
],
"scripts": {
"test": "test",
"dev:server": "nodemon --watch './src/**/*.ts' --exec 'ts-node' ./server.ts",
"build": "tsc",
"build:watch": "tsc --watch",
"prepare": "yarn build"
},
"author": "Taskforce.sh Inc.",
"license": "AGPL",
"dependencies": {
"@aws-sdk/client-s3": "^3.41.0",
"@aws-sdk/lib-storage": "^3.41.0",
"axios": "^0.24.0",
"bcrypt": "^5.0.1",
"express": "^4.17.1",
"http-status-codes": "^2.1.4",
"pino": "^7.1.0",
"range_check": "^2.0.4",
"sequelize": "^6.9.0",
"sqlite3": "^5.0.2",
"uuid": "^8.3.2"
},
"devDependencies": {
"@semantic-release/changelog": "^6.0.1",
"@semantic-release/commit-analyzer": "^9.0.1",
"@semantic-release/exec": "^6.0.2",
"@semantic-release/git": "^10.0.1",
"@semantic-release/github": "^8.0.2",
"@semantic-release/npm": "^8.0.3",
"@semantic-release/release-notes-generator": "^10.0.2",
"@types/bcrypt": "^5.0.0",
"@types/express": "^4.17.13",
"@types/node": "*",
"@types/sqlite3": "^3.1.7",
"@types/uuid": "^8.3.1",
"@types/validator": "^13.6.6",
"nodemon": "^2.0.14",
"ts-node": "^10.4.0",
"tslib": "^2.3.1",
"typescript": "^4.4.4"
},
"repository": {
"type": "git",
"url": "https://github.com/taskforcesh/nandu.git"
},
"release": {
"branches": [
"main"
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@semantic-release/changelog",
{
"changelogFile": "docs/gitbook/changelog.md"
}
],
[
"@semantic-release/npm",
{
"npmPublish": true
}
],
"@semantic-release/github",
[
"@semantic-release/git",
{
"assets": [
"package.json",
"pnpm-lock.yaml",
"docs/gitbook/changelog.md"
],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
]
]
}
}
11 changes: 11 additions & 0 deletions packages/cli/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
root = true

[*]
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false
1 change: 1 addition & 0 deletions packages/cli/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/lib
6 changes: 6 additions & 0 deletions packages/cli/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": [
"oclif",
"oclif-typescript"
]
}
8 changes: 8 additions & 0 deletions packages/cli/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
*-debug.log
*-error.log
/.nyc_output
/dist
/lib
/package-lock.json
/tmp
node_modules
Loading