Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
634 commits
Select commit Hold shift + click to select a range
bf46746
Merge branch 'master' into public-holiday-management-page
vpp Dec 13, 2019
352b862
Merge pull request #401 from timeoff-management/public-holiday-manage…
vpp Dec 13, 2019
f8294bf
Merge branch 'master' into bring-more-default-bank-holidays
vpp Dec 13, 2019
a2a982b
Fix config file structure for bank holidays
vpp Dec 13, 2019
43245e8
Add special country for automated tests
vpp Dec 13, 2019
d9b527f
Merge pull request #402 from timeoff-management/bring-more-default-ba…
vpp Dec 13, 2019
655ce71
fix: upgrade mocha to 6.2.2 to fix potential security issue
jdambron Dec 16, 2019
3ee6a87
Merge pull request #403 from jdambron/tom-upgrade-mocha-6-2-2
vpp Dec 16, 2019
35b303c
Make feed calculation less resource consuming
vpp Dec 19, 2019
1a5d70b
fix: clean unused require and variables
jdambron Dec 20, 2019
b6f7021
Merge pull request #405 from jdambron/tom-christmas-cleanup
vpp Dec 27, 2019
fbaff4d
fix: remove unused fetching of company feed
jdambron Dec 27, 2019
703df0d
Merge pull request #408 from jdambron/tom-407-remove-fetching-company…
vpp Dec 27, 2019
7068214
Fix issue with carry over feature and accral allowance #410
vpp Jan 2, 2020
7f4be59
Re-adjust tests for new year
vpp Jan 2, 2020
ab02457
Merge pull request #411 from timeoff-management/tom-410-carry-over-an…
vpp Jan 2, 2020
b2d2ee7
Add calendar section to admin view of user details (#194)
vpp Jan 5, 2020
391880f
Add basic test for admin view of user calendar
vpp Jan 5, 2020
386e493
Re-write test in modern JS
vpp Jan 5, 2020
9d7f60f
Merge pull request #412 from timeoff-management/tom-194-expose-user-c…
vpp Jan 5, 2020
65ecdb0
Fix missing data from label
vpp Jan 6, 2020
05dafb8
Fix Individual Calendar Feed
pavelito Jan 14, 2020
7f08c7a
Freeze handlbar version so its breaking changes do not break the app
vpp Jan 16, 2020
1f22f4f
Merge pull request #422 from timeoff-management/tom-416-freeze-handle…
vpp Jan 16, 2020
2166061
Merge pull request #420 from pavelito/master
vpp Jan 17, 2020
3403145
fix: remove slack required username
simllll Feb 2, 2020
1b9320b
Update links to travis tests result
vpp Mar 9, 2020
0d2ea9e
Multi-Stage Dockerfile
jjasonkal May 12, 2020
959532e
Fix footer urls
hathorsoft Oct 30, 2020
f51002c
Update footer links to open in a new tab
hathorsoft Oct 30, 2020
26b2f90
Fix tests after new year
vpp Feb 9, 2021
ef98c34
Bump up required version of Node.js
vpp Feb 9, 2021
d982c63
Add lock file
vpp Feb 9, 2021
1faa7b1
Add Leaves report
vpp Feb 9, 2021
4727c03
Expose leave details as a popup
vpp Feb 10, 2021
bf68823
Calendar feed to expose caomments
vpp Feb 10, 2021
51f8b5e
Be strict with Node.js version
vpp Feb 10, 2021
54e123a
Merge pull request #464 from timeoff-management/leaves-report
vpp Feb 10, 2021
3834b0a
Fix issue with leave details and non-admin
vpp Feb 15, 2021
50037d7
Include comment label in leaves report csv
vpp Feb 15, 2021
172f094
Add comment collumn to leave views
vpp Feb 16, 2021
3fd0072
Add insructions how to extend available colours for leave types
vpp Feb 16, 2021
9f03277
Use file pahs rather than MD's links
vpp Feb 16, 2021
ae23729
Merge pull request #467 from timeoff-management/leaves-report-issues
vpp Feb 16, 2021
dc876a3
Sort users in the "For" dropdown on book a leave modal
Jul 7, 2021
688cac3
Merge pull request #481 from timeoff-management/tom-xxx-sort-users-in…
vpp Jul 7, 2021
7fd6461
feat: add leave type id
simllll Jul 9, 2021
21c2697
feat: encode base 64 again
simllll Jul 9, 2021
cd8a1fb
feat: encode base 64 again
simllll Jul 9, 2021
3bd653f
Add ability to define locale for sorting
Jul 21, 2021
edc4ce4
Merge pull request #482 from timeoff-management/tom-xxx-make-sort-loc…
vpp Jul 22, 2021
0839c2b
Expose notification bell in the header
Jul 23, 2021
853d1f9
Merge pull request #483 from timeoff-management/tom-xxx-notification-…
vpp Jul 23, 2021
c630f75
Fix issues with sorting
Jul 28, 2021
bd98cd1
Merge pull request #484 from timeoff-management/tom-xxx-fix-sorting-i…
vpp Jul 28, 2021
64d5875
Fix issues with sorting of leave types
Jul 29, 2021
3fdbe6f
Merge pull request #485 from timeoff-management/tom-xxx-leave-type-so…
vpp Jul 30, 2021
873c564
Modernise code
Aug 9, 2021
fe8a914
Implement Grouped mode on TeamView page
Aug 10, 2021
d70267d
Add wideget to toggle grouped mode on team view page
Aug 10, 2021
75f19b1
Merge pull request #486 from timeoff-management/tom-xxx-grouped-team-…
vpp Aug 10, 2021
08a2156
The case for labels to be consistant
Aug 23, 2021
5d583d9
Capture grouped_mode value into session
Aug 24, 2021
351e238
Merge pull request #490 from timeoff-management/tom-xxx-cleanup-for-g…
vpp Aug 24, 2021
9387c5e
Save Team View's department ID in session
Aug 25, 2021
319091d
Merge pull request #491 from timeoff-management/tom-xxx-store-team-vi…
vpp Aug 25, 2021
d935974
Properly respect the date range on the Leaves report
Aug 30, 2021
a711ad7
Merge pull request #492 from timeoff-management/tom-xxx-fix-leaves-re…
vpp Aug 30, 2021
a08b6aa
Prevent double submission from browser
Sep 9, 2021
df738ee
Merge pull request #493 from timeoff-management/tom-xxx-prevent-doubl…
vpp Sep 9, 2021
cf37823
Introduce redis as alternative session storage.
Oct 19, 2021
fcbcb8d
Merge pull request #497 from timeoff-management/tom-xxx-redis-as-sess…
vpp Oct 19, 2021
91e7573
Update README
vpp Oct 19, 2021
ca28e51
add portugal public holidays for 2022
Jan 31, 2022
f790b82
Merge pull request #504 from joaopires/add-public-portugal-holidays-2022
vpp Apr 26, 2022
9cba323
Bump up year in the footer.
vpp Apr 26, 2022
7198792
Merge pull request #456 from jcreek/fix-footer-links
vpp Apr 26, 2022
4eaeea6
Merge pull request #434 from jjasonkal/master
vpp Apr 26, 2022
274e671
Fix test to acount for notifications counter in title
Jun 15, 2022
e913a88
adding auto approved leave types (#427)
fery Jun 16, 2022
7f13062
Update Report.js (#520)
officeschwarts Jul 4, 2022
10cc4c9
Align values in Leave backup with Import leaves file on CLOUD vertion…
vpp Jul 5, 2022
81587ee
Allow enforcing users explicitly to pick up type of leave when bookin…
vpp Sep 12, 2022
684162c
Prevent leave request submission with empty leave type (#547)
vpp Jan 13, 2023
a08815e
Close connection to LDAP server after calling authenticate user (#565)
vpp Aug 9, 2023
de23899
minimum changes for docker build to succeed
dougbreaux Sep 22, 2023
e507584
Merge pull request #1 from dougbreaux/master
mermetbt Oct 16, 2023
e90959f
Merge pull request #2 from dkraemerwork/feature/#249_mysql_overlappin…
mermetbt Oct 16, 2023
89a8452
Merge branch 'ldap-filter'
mermetbt Oct 16, 2023
f58af04
Merge prettier.
mermetbt Oct 16, 2023
b325efa
Add package-lock and editorconfig.
mermetbt Oct 16, 2023
25956a0
Add redis dependency.
mermetbt Oct 16, 2023
f9daa7f
Update package-lock.
mermetbt Oct 16, 2023
89285c4
Add docker compose. Fix merge issue.
mermetbt Oct 16, 2023
4cd81b6
Fix invalid version.
mermetbt Oct 16, 2023
29c8a81
Fix.
mermetbt Oct 16, 2023
267f3bd
Fix Dockerfile.
mermetbt Oct 16, 2023
9190ba5
Change Dockerfile.
mermetbt Oct 16, 2023
7796d51
Add support for env.
mermetbt Oct 16, 2023
5bc4f63
Fix issues.
mermetbt Oct 16, 2023
5beb524
Prettier.
mermetbt Oct 17, 2023
54c76fc
Prettier.
mermetbt Oct 17, 2023
981e552
Add prettierrc.
mermetbt Oct 17, 2023
e75c76f
Set quote to double quote.
mermetbt Oct 17, 2023
5e6730c
Add semi columns.
mermetbt Oct 17, 2023
59d23bd
Merge.
mermetbt Oct 17, 2023
52684a2
Prettier.
mermetbt Oct 17, 2023
1338b3c
Fix.
mermetbt Oct 17, 2023
bab0c76
Fix issues.
mermetbt Oct 18, 2023
cfb248f
Add eslint.
mermetbt Oct 18, 2023
d80e283
Prettier.
mermetbt Oct 18, 2023
2a568f4
Eslint
mermetbt Oct 18, 2023
29c0fde
Eslint and prettier.
mermetbt Oct 18, 2023
7fe3402
Set the test database to sqlite.
mermetbt Oct 18, 2023
bb33c96
Fix.
mermetbt Oct 18, 2023
42651da
Add environment variables.
mermetbt Oct 19, 2023
fbde1b1
fix: Solve part of the issues for the tests to pass.
mermetbt Oct 28, 2023
4c1c613
fix: Bug fixes and force consistency in the database.
mermetbt Oct 29, 2023
fda8405
fix: Issues with leave types and request approval.
mermetbt Oct 29, 2023
66800a5
fix: Fix leave types issue.
mermetbt Oct 29, 2023
050c96e
fix: Improve consistency of the database.
mermetbt Jan 26, 2024
c6ace7c
Create docker-image.yml
mermetbt Feb 6, 2024
1b078fc
fix: Email from not set in emails.
mermetbt Feb 7, 2024
f975b1d
Merge branch 'master' of github.com:AlienGen/timeoff-management-appli…
mermetbt Feb 7, 2024
f235e96
ci: keep bin dir into the docker image.
mermetbt Feb 7, 2024
91849a3
fix: LDAP configuration issue when checkboxes are not ticked. LDAP se…
mermetbt Feb 7, 2024
622761c
fix: Some environment variables were not working.
mermetbt Feb 7, 2024
a000cfa
fix: Change datatypes for comments and timezone.
mermetbt Feb 7, 2024
14eff2a
feat: Change configurations and update the documentation.
mermetbt Feb 7, 2024
362523a
fix: Google auth domains.
mermetbt Feb 8, 2024
46140ad
fix: Settings company wide schedule.
mermetbt Feb 8, 2024
02a2f93
fix: Change table names for comment and schedule.
mermetbt Feb 8, 2024
e9c6459
fix: Checkboxes in department settings not working.
mermetbt Feb 8, 2024
a0a0501
fixed /register
ashlessscythe Feb 25, 2024
5f4d19b
sqlite3 works, mysql not somuch
ashlessscythe Feb 25, 2024
9865a81
invalid date err still lives
Mar 1, 2024
596f17b
damn date err
Mar 5, 2024
ba1362a
err still there
Mar 5, 2024
c340414
aliendev
Apr 2, 2024
5478f42
fixed date err
Apr 2, 2024
31adf30
fixed department creation
Apr 2, 2024
9418bc0
fixing err with comment.entitytype
ashlessscythe Apr 2, 2024
53e83a4
added pg to package.json, updated .env.example
ashlessscythe Apr 2, 2024
d6afd14
added ssl to dbconfig
ashlessscythe Apr 2, 2024
a184977
updated env.example
ashlessscythe Apr 2, 2024
275482a
added allow_new_reg env option
ashlessscythe Apr 2, 2024
f98619e
removed tmux submodule
ashlessscythe Apr 2, 2024
5248962
can add email config via dockerfile takes precedence
ashlessscythe Apr 2, 2024
008495e
fixed reports page
Apr 3, 2024
2223e57
fixed bulk user importer
Apr 3, 2024
d299284
added smtp stuff to compose
Apr 3, 2024
0a850ab
Merge branch 'alien-dev' of https://github.com/ashlessscythe/timeoff-…
ashlessscythe Apr 3, 2024
4b449ef
added args for email config
ashlessscythe Apr 3, 2024
196f9d3
fixed email pager, fixing email context
ashlessscythe Apr 3, 2024
9802dff
fixing email, stuff still, names are blank
ashlessscythe Apr 3, 2024
5d585ab
fixing email stuff, still....
ashlessscythe Apr 3, 2024
09a2931
fixed email names sending
Apr 4, 2024
deb45e0
pw reset and new user emails fixed
Apr 4, 2024
0600395
adding personal days feature from public
Apr 4, 2024
cd234f3
added personal days stuff to departments
ashlessscythe Apr 4, 2024
6799e02
adding more personal days stuff to dept
ashlessscythe Apr 4, 2024
aea4ba2
fixed ? bubble popup on requests list
ashlessscythe Apr 4, 2024
97c2f3d
rejection comment appears in email now
ashlessscythe Apr 4, 2024
f1ded5f
personal days display on allowance breakdown, still pending some fixes
ashlessscythe Apr 4, 2024
55783f6
fix dept with personal days
ashlessscythe Apr 4, 2024
31b4b09
fixed deleting departments
ashlessscythe Apr 5, 2024
67ac646
fixed dept allowances from int to float
ashlessscythe Apr 5, 2024
abc6be9
changed int to float for dept allowance and personal, added migration…
ashlessscythe Apr 5, 2024
c8b2c1a
updated migration files, fixed approve and reject comment element in req
ashlessscythe Apr 5, 2024
36b8176
added header title and cleaned up smtp variables
Apr 6, 2024
5e1cbfb
cleanedup bootstrap, added session msg when importing more than 200 u…
Apr 6, 2024
7a1d35c
updated .gitignore to ignore mock_data (local)
Apr 7, 2024
d7b5092
Merge branch 'alien-public' of github.com:ashlessscythe/timeoff-alien…
Apr 7, 2024
a34b8a5
merging alien-dev into alien-public
Apr 7, 2024
394cf50
added mock data
Apr 13, 2024
b350c46
reduced logging, cleaned up .env file can up with only useSSL and dat…
Apr 13, 2024
e3999eb
Merge pull request #1 from ashlessscythe/alien-dev
ashlessscythe Apr 13, 2024
142651a
fixed undefined approver in email to requestor
ashlessscythe Apr 16, 2024
6d9ef35
fixed end_date.diff in userAllowance
Apr 17, 2024
a527b13
updated dockerignore added config/ removed config.example/
ashlessscythe Apr 17, 2024
85f8b18
updated dockerignore
ashlessscythe Apr 17, 2024
b9299c4
Merge branch 'alien-dev' of https://github.com/ashlessscythe/timeoff-…
ashlessscythe Apr 17, 2024
559ac64
allowance_adjustment to float
ashlessscythe Apr 18, 2024
3d0360a
added send_email flag in .env.example this controls email instead of …
ashlessscythe Apr 18, 2024
ef944e6
Merge pull request #2 from ashlessscythe/alien-dev
ashlessscythe Apr 23, 2024
e39e72f
Merge pull request #3 from ashlessscythe/alien-public
ashlessscythe Apr 23, 2024
26a335f
updated .env.example for easy deployment via compose
ashlessscythe Apr 23, 2024
5891f7d
Merge branch 'dev'
ashlessscythe May 2, 2024
59a0d20
added sql scripts to adjust sequences and get current seq from db
ashlessscythe May 2, 2024
c6dc6ce
local files added to .gitignore and .dockerignore
ashlessscythe May 2, 2024
4d60029
teamview link in header for managers and admin
ashlessscythe May 7, 2024
4f77aa3
limit leaves by type
ashlessscythe May 7, 2024
277a9e5
env file for contact email
ashlessscythe May 8, 2024
4ee1589
contact:email added with default
ashlessscythe May 8, 2024
f0d4c90
Merge pull request #1 from bigheadsmith/dev
bigheadsmith May 8, 2024
ac235b4
updated teamview access, removed double render
ashlessscythe May 8, 2024
29d7b16
am/pm vs morning afternoon
ashlessscythe May 9, 2024
476c4cf
removed status from popup summary
ashlessscythe May 9, 2024
86c0a11
fixed dept_supervisor edit
ashlessscythe May 10, 2024
d3eef33
ran lint:fix
ashlessscythe May 10, 2024
7c490fd
starting darkmode toggle
ashlessscythe May 10, 2024
d34baa6
extended dark mode for dropdowns and calendar
ashlessscythe May 10, 2024
de094c0
some adjustments to darkmode
ashlessscythe May 10, 2024
6369c47
further updates to dark mode
ashlessscythe May 10, 2024
39628f9
exclude pub holidays for appropriate depts
ashlessscythe May 13, 2024
a4a8f66
started with i18n
ashlessscythe May 13, 2024
28f1a96
fixed bank_holidays display on teamview including with and without in…
ashlessscythe May 16, 2024
4d46116
reduced holiday related logging
ashlessscythe May 16, 2024
0c18534
reduced logging some more
ashlessscythe May 16, 2024
4d8a4e4
more console.logging reduction
ashlessscythe May 16, 2024
5849665
Merge pull request #13 from ashlessscythe/dev
bigheadsmith May 17, 2024
d1e4095
Color picker
bigheadsmith May 17, 2024
8d01a03
fix leave_popup_details showing data for wrong leave
ashlessscythe May 17, 2024
f59c2bf
ignoreyear true in popup (allow for previous year's info to be displa…
ashlessscythe May 17, 2024
6bbf3e9
Merge pull request #8 from bigheadsmith/color-picker
ashlessscythe May 17, 2024
92cfd09
SMTP no auth
bigheadsmith May 20, 2024
4d9b738
added SMTP_REQUIRE_AUTH variable
bigheadsmith May 21, 2024
24885f7
Changed variable name
bigheadsmith May 23, 2024
9489889
Revert "Changed variable name"
bigheadsmith May 27, 2024
95fba0b
Revert "added SMTP_REQUIRE_AUTH variable"
bigheadsmith May 27, 2024
8613112
Revert "SMTP no auth"
bigheadsmith May 27, 2024
b69fa7d
Fixed smtp no-euth
bigheadsmith May 27, 2024
96c05e9
fixed download backup button in general settings
ashlessscythe May 29, 2024
851a586
correct year for absences
bigheadsmith May 31, 2024
fac9455
fix overlap
bigheadsmith May 31, 2024
9c16d2c
Update application domain for email wrapper (footer)
ashlessscythe May 31, 2024
0b62a3b
get branding from .env with defaults in config.js
ashlessscythe May 31, 2024
55887fb
Fix Bank Holidays
bigheadsmith Jun 1, 2024
46d0799
Allowance adjustments for all years
bigheadsmith Jun 2, 2024
6538dda
changed datetime display on reports/leave page
ashlessscythe Jun 2, 2024
fe68024
Fix year loop
bigheadsmith Jun 3, 2024
457dcf7
fixed schedule buttons company wide and user_specific
ashlessscythe Jun 7, 2024
bb1c6a5
Merge pull request #9 from bigheadsmith/smtp-no-auth
ashlessscythe Jun 7, 2024
a9256f0
Merge pull request #18 from bigheadsmith/overlap-fix
ashlessscythe Jun 7, 2024
6c5cf0a
Merge pull request #21 from bigheadsmith/bank-holiday-fix
ashlessscythe Jun 7, 2024
af998cd
fixed bank holidays not respecting company date format
ashlessscythe Jun 10, 2024
fa510c1
Manager/supervisor only leave types
bigheadsmith Jun 10, 2024
0890ab6
1st commit approval comment modal added
ashlessscythe Jun 10, 2024
c17a642
modal on approve button appears with optional textarea, db updates, r…
ashlessscythe Jun 11, 2024
9cca771
fix sequelize error when updating admin checkbox
bigheadsmith Jun 12, 2024
fae27f6
Merge pull request #24 from bigheadsmith/admin-checkbox-sequelize-fix
ashlessscythe Jun 12, 2024
80b3fcb
Merge pull request #16 from bigheadsmith/cal-fix
ashlessscythe Jun 12, 2024
382208e
Merge branch 'dev' into allowance-adjustment-multiyear
ashlessscythe Jun 12, 2024
352f39e
Merge pull request #22 from bigheadsmith/allowance-adjustment-multiyear
ashlessscythe Jun 12, 2024
4d6c55d
Merge pull request #23 from bigheadsmith/manager-only-leave-types
ashlessscythe Jun 12, 2024
7a33b44
updated migration file for manager_only field in leave_types
ashlessscythe Jun 12, 2024
a87757b
add approver_comment, to reports list
ashlessscythe Jun 13, 2024
1f2e7eb
updated password requirements and added verbiage to pw reset email
ashlessscythe Jun 28, 2024
d7089e5
updated wording on reset pw email subj, diff between reset request an…
ashlessscythe Jul 1, 2024
fbabe73
Private LEaves
bigheadsmith Jul 3, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 1 addition & 4 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
languages:
Ruby: true
JavaScript: true
PHP: true
Python: true
exclude_paths:
- "public/js/bootstrap-datepicker.js"
- "public/js/bootstrap-datepicker.js"
11 changes: 11 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.git
.github
.vscode
docs
config.example/
scripts/
import/
export/
mock_data/
import_data/
node_modules/
15 changes: 15 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# EditorConfig is awesome: https://EditorConfig.org

# top-most EditorConfig file
root = true

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

[*.js]
quote_type = single
18 changes: 18 additions & 0 deletions .env.dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
DB_ROOT_PASSWORD=rootpass
DB_DATABASE=pgdb
DB_USERNAME=pguser
DB_PASSWORD=pgpass
DB_HOST=localhost
DB_DIALECT=postgres
DB_PORT=5432
DB_URL=postgres://pguser:pgpass@localhost:5432/pgdb # set to match your database
USE_SSL=false
# DB_SSL_REQUIRE=false
# DB_SSL_REJECT_UNAUTHORIZED=false
OPTION_ALLOW_NEW_REGISTRATIONS=true
# SMTP_AUTH_PASS=''
# SMTP_AUTH_USER=''
# SMTP_FROM=''
SMTP_HOST=''
# SMTP_PORT=''
# SMTP_REQUIRE_TLS=''
46 changes: 46 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
## ENV FILE

## copy this file save as .env
## run `docker compose up -d --build`
## should work as-is, modify based on use-case, some notes below:

### URL STUFFS
# BRANDING_URI=https://timeoff.management
# BRANDING_WEBSITE=https://promotional.website
# HEADER_TITLE="Timeoff.Management"
# CONTACT_EMAIL_ADDRESS=email@ddre.ss

## DB STUFFS
# You can get away with setting below only if using external db
# i.e. neon, supabase, etc
DATABASE_URL=postgres://user:pass@postgres/dbname # set to match your database
# APP_PORT=3001

## these below should be set if using docker db or other local (non-hosted) db
## if using url above, make sure they match
DB_DATABASE=dbname
DB_USER=user
DB_PASSWORD=pass
DB_HOST=postgres
# DB_DIALECT=mysql # mysql, postgres, sqlite, mssql
# DB_PORT=3306 # 5432, 1433
# DB_ROOT_PASS=changeme

## SSL STUFFS for hosted db mostly
# USE_SSL=false
# DB_SSL_REQUIRE=true
# DB_SSL_REJECT_UNAUTHORIZED=true

### REG and API stuffs
OPTION_ALLOW_NEW_REGISTRATIONS=false # set to true for initial setup
# API_KEY=changeme

### EMAIL STUFFS
# SEND_EMAIL=false
# SMTP_AUTH_REQUIRED=true # false=user/pass not required for SMTP server
# SMTP_AUTH_PASS=changeme
# SMTP_AUTH_USER=username
# SMTP_FROM=emailname
# SMTP_HOST=smtp.example.com
# SMTP_PORT=587
# SMTP_REQUIRE_TLS=true
33 changes: 33 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"env": {
"browser": true,
"commonjs": true,
"es2021": true
},
"extends": [
"standard",
"prettier",
"plugin:mocha/recommended"
],
"parserOptions": {
"ecmaVersion": "latest"
},
"plugins": [
"mocha"
],
"rules": {
"camelcase": 0,
"space-before-function-paren": 0,
"arrow-body-style": ["error", "as-needed"],
//"prefer-arrow-callback": [
// "error",
// { "allowNamedFunctions": true }
//],
"func-style": [
"error",
"declaration",
{ "allowArrowFunctions": true }
]

}
}
38 changes: 38 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Publish Docker image

on:
push:
branches:
- master
- release/*
release:
types: [published]

jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4

- name: Log in to Docker Hub
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
with:
images: aliengen/timeoff-management-application

- name: Build and push Docker image
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
with:
context: .
file: ./Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,12 @@
*.swn
*.swm
node_modules/
config/
mock_data/
import_data/
import/
export/
.env
*.sqlite
*.DS_Store
t/integration/test.csv
11 changes: 11 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# This configuration file was automatically generated by Gitpod.
# Please adjust to your needs (see https://www.gitpod.io/docs/introduction/learn-gitpod/gitpod-yaml)
# and commit this file to your remote git repository to share the goodness with others.

# Learn more from ready-to-use templates: https://www.gitpod.io/docs/introduction/getting-started/quickstart

tasks:
- init: bootstrap
command: sh ./bootstrap.sh


1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engine-strict=true
6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"semi": false,
"singleQuote": true,
"arrowParens": "avoid",
"trailingComma": "none"
}
11 changes: 7 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
language: node_js
node_js:
- "0.10"
- "0.12"
- "v6.10.1"
- 'v10.16.3'
sudo: false
addons:
chrome: stable
cache:
directories:
- node_modules
env:
before_install:
- USE_CHROME=1
before_script:
- wget https://chromedriver.storage.googleapis.com/77.0.3865.40/chromedriver_linux64.zip
- cd bin; unzip ../chromedriver_linux64.zip; cd ../
- export PATH=$PWD/bin:$PATH
- node bin/wwww > /dev/null 2>&1 &
27 changes: 27 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"runtimeExecutable": "npm",
"runtimeArgs": ["start"],
"skipFiles": ["<node_internals>/**"],
"console": "integratedTerminal",
"envFile": "${workspaceFolder}/.env"
},
{
"type": "node",
"request": "attach",
"name": "Docker: Attach to Node",
"port": 9229,
"address": "localhost",
"localRoot": "${workspaceFolder}",
"remoteRoot": "/usr/src/app"
}
]
}
25 changes: 25 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": "explicit",
"source.addMissingImports": "explicit",
"source.fixAll.eslint": "explicit"
},
"search.exclude": {
"**/node_modules": true,
"**/.vscode": true,
"**/build": true,
"**/dist": true
},
"git.autofetch": true,
"editor.trimAutoWhitespace": true,
"files.encoding": "utf8",
"files.trimFinalNewlines": false,
"files.trimTrailingWhitespace": true,
"css.validate": false,
"editor.quickSuggestions": {
"strings": true
},
"editor.detectIndentation": false,
"editor.tabSize": 2
}
50 changes: 50 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# -------------------------------------------------------------------
# Minimal dockerfile from alpine base
#
# Instructions:
# =============
# 1. Create an empty directory and copy this file into it.
#
# 2. Create image with:
# docker build --tag timeoff:latest .
#
# 3. Run with:
# docker run -d -p 3000:3000 --name alpine_timeoff timeoff
#
# --------------------------------------------------------------------
FROM node:16-alpine

RUN apk update
#RUN apk upgrade

# Install dependencies
RUN apk add \
git \
make \
python3 \
g++ \
gcc \
libc-dev \
clang

WORKDIR /app

LABEL org.label-schema.schema-version="1.0"
LABEL org.label-schema.docker.cmd="docker run -d -p 3000:3000 --name alpine_timeoff"

# Cache the docker layer with the node_modules
COPY package.json /app/package.json
COPY package-lock.json /app/package-lock.json

RUN npm install

# Copy the application into the container.
COPY . /app

# Add user so it doesn't run as root
RUN adduser --system app --home /app
USER app

EXPOSE 3000

CMD npm start
6 changes: 6 additions & 0 deletions Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM node:14
WORKDIR /usr/src/app
COPY package*.json ./
RUN npm install
COPY . .
CMD [ "node", "--inspect=0.0.0.0", "bin/wwww" ]
Loading