Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
73 changes: 73 additions & 0 deletions .devcontainer/.tmux.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# Set prefix to Ctrl-a (like GNU screen)
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix

# Enable mouse support (pane selection, resizing, scrolling)
set -g mouse on

# Vi mode for copy mode and status line
setw -g mode-keys vi

# Split panes using | and -
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %

# Easier pane navigation with Alt + arrow keys
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D

# Resize panes with Alt + Shift + arrow keys
bind -n M-S-Left resize-pane -L 5
bind -n M-S-Right resize-pane -R 5
bind -n M-S-Up resize-pane -U 5
bind -n M-S-Down resize-pane -D 5

# Reload config
bind r source-file ~/.tmux.conf \; display-message "Config reloaded!"

# Set status bar colors and info
set -g status-bg colour235
set -g status-fg colour136
set -g status-interval 2
set -g status-left-length 40
set -g status-right-length 100
set -g status-left '#[fg=colour39]#S #[fg=colour244]|'
set -g status-right '#[fg=colour244]%Y-%m-%d #[fg=colour39]%H:%M #[fg=colour244]| #[fg=colour39]%a'

# Highlight active window
set-window-option -g window-status-current-style fg=colour81,bg=colour236

# Set window index to start at 1
set -g base-index 1
setw -g pane-base-index 1

# Enable 256 color support
set -g default-terminal "screen-256color"

# Allow faster command sequences
set -s escape-time 0

# Clipboard integration (for Linux with xclip)
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "xclip -selection clipboard -in"

# Activity monitoring
setw -g monitor-activity on
set -g visual-activity on

# Set pane border colors
set -g pane-border-style fg=colour238
set -g pane-active-border-style fg=colour39

# Bell style
set -g bell-action any

# Save and restore sessions (requires tmux-resurrect plugin)
# set -g @plugin 'tmux-plugins/tmux-resurrect'
# run '~/.tmux/plugins/tpm/tpm'

# End of file
87 changes: 24 additions & 63 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,68 +1,29 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/typescript-node

{
"name": "TripBot Dev",
"image": "mcr.microsoft.com/devcontainers/typescript-node:1-20-bullseye",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile

// Configure tool-specific properties.
"dockerComposeFile": ["../docker-compose.yml"],
"service": "tripbot",
"workspaceFolder": "/workspaces/tripbot",
"shutdownAction": "stopCompose",
"postStartCommand": "npm run tripbot:dev",
"customizations": {
"codespaces": {
"openFiles": [
"FIRSTRUN.MD"
]
},
// Configure properties specific to VS Code.
"vscode": {
"settings": {
"files.autoSave": "off",
// "editor.inlineSuggest.enabled": true,
// "eslint.codeActionsOnSave.rules": null,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"eslint.validate": [
"javascript",
"typescript"
],
// "editor.tabSize": 2,
// "git.enableSmartCommit": true,
// "git.autofetch": true,
// "git.confirmSync": false,
// "typescript.updateImportsOnFileMove.enabled": "always",
// "javascript.updateImportsOnFileMove.enabled": "always",
// "github.copilot.enable": {
// "*": true,
// "yaml": true,
// "plaintext": true,
// "markdown": true
// },
// "editor.rulers": [
// 120
// ],
},
//"devPort": {},
// Specify which VS Code extensions to install (List of IDs)
"extensions": [
// "dbaeumer.vscode-eslint",
// "GitHub.copilot",
// "mikestead.dotenv"
]
}
"vscode": {
"extensions": [
"streetsidesoftware.code-spell-checker",
"dbaeumer.vscode-eslint",
"mikestead.dotenv",
"oderwat.indent-rainbow",
"ms-vscode-remote.remote-containers",
"ms-azuretools.vscode-docker",
"Prisma.prisma",
"SonarSource.sonarlint-vscode"
]
},
"codespaces": {
"openFiles": ["FIRSTRUN.MD"]
}
},
"features": {
"ghcr.io/devcontainers/features/github-cli:1": {},
},

// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": ["npm install"]
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}
"ghcr.io/devcontainers/features/github-cli:1": {}
}
}

18 changes: 9 additions & 9 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Folders
.devcontainer
.github
.vscode
# .devcontainer
# .github
# .vscode
cache
# coverage
# dist - This is where the compiled code is, MUST be included in the container
Expand All @@ -10,14 +10,14 @@ node_modules
# src - This is where the code is, MUST be included in the container

# Files
.dockerignore
.drone.yml
# .dockerignore
# .drone.yml
# .env - We should def move to docker secrets
# .env.example
# .eslintignore
# .eslintrc
.gitattributes
.gitignore
# .gitattributes
# .gitignore
.gitpod.yml
captain-definition
# docker-compose.yml - Not needed, but is good for reference if anyone wants to inspect the container
Expand All @@ -26,7 +26,7 @@ FIRSTRUN.MD
# nodemon.json - We need this to run the container in development mode
# package-lock.json - We need this to install the dependencies!
# package.json - Same!
README.MD
sonar-project.properties
# README.MD
# sonar-project.properties
tempStorage.json
# tsconfig.json - We need this to compile the code!
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ src/prisma/moodle/@prisma-moodle/client/libquery_engine-linux-musl-openssl-3.0.x
*.user
*.userosscache
*.sln.docstates
.vscode

# User-specific files (MonoDevelop/Xamarin Studio)
*.userprefs
Expand Down
9 changes: 9 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"recommendations": [
"streetsidesoftware.code-spell-checker",
"dbaeumer.vscode-eslint",
"mikestead.dotenv",
"oderwat.indent-rainbow",
"ms-vscode-remote.remote-containers",
],
}
6 changes: 6 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
".prettierignore": true,
".git": true,
"coverage": true,
"build": true,
"docker-compose.yml": false,
"eslint.config.mjs": true,
"node_modules": true,
Expand Down Expand Up @@ -189,4 +190,9 @@
"cSpell.ignoreWords": [
"KIPP"
],
"deepscan.enable": true,
"sonarlint.connectedMode.project": {
"connectionId": "https-sonar-tripsit-me",
"projectKey": "TripSit_TripBot_AYmOpsWli19oCrgFtvQT"
},
}
Loading
Loading