Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
111 commits
Select commit Hold shift + click to select a range
5e92516
Created node.js.yml action
bsaranga Oct 18, 2024
aa47926
added working directory to the actions spec
bsaranga Oct 18, 2024
5efa395
specified the cache dependency path for the node.js build action
bsaranga Oct 18, 2024
28f4a00
Merge pull request #1 from tracet2t/github-actions-maintenance
bsaranga Oct 18, 2024
b4f4547
86b2j5p5v-venue-cards-poc: Venue cards with image carousel POC
LakshananS Oct 21, 2024
07d61fd
86b2j5p5v-venue-cards-poc: Changed default type name
LakshananS Oct 21, 2024
7efb0e8
86b2j5p5v-venue-cards-poc: Updated file structure
LakshananS Oct 22, 2024
847b992
86b2j5p74-landing-page:Created Header, Footer and Venue page
Devousl Oct 22, 2024
8f5fc5c
86b2j5p5v-venue-cards-poc: Updated filea and folders name
LakshananS Oct 22, 2024
c543e8d
86b2j5p5v-venue-cards-poc: Updated code for carousel component can be…
LakshananS Oct 23, 2024
25a8a07
i added venue card to landing page and update header welcome page and…
s92068606 Oct 23, 2024
a725ad3
i added venue card to landing page and update header welcome page and…
s92068606 Oct 23, 2024
84aafd6
i added venue card to landing page and update header welcome page and…
s92068606 Oct 23, 2024
85a32a3
86b2j5p74-landing-page: Resolve conflict regarding font/page.tsx
Devousl Oct 23, 2024
e73663f
Merge pull request #3 from tracet2t/86b2j5p5v-venue-cards-poc
bsaranga Oct 23, 2024
d540937
resolve previous errors and made as responsive
s92068606 Oct 23, 2024
21f6562
Merge branch '86b2j5p74-landing-page' of https://github.com/tracet2t/…
s92068606 Oct 23, 2024
8f51b92
Resolved merge conflicts
Vihari7 Oct 24, 2024
d172625
86b2j5p74-landing-page: create footer responsively
Devousl Oct 24, 2024
6f9f21c
Merge branch '86b2j5p74-landing-page' of https://github.com/tracet2t/…
Devousl Oct 24, 2024
213cc8a
Resolved merge conflict in page.tsx
Vihari7 Oct 24, 2024
3ee1255
Merge branch '86b2j5p74-landing-page' of https://github.com/tracet2t/…
Vihari7 Oct 24, 2024
31bf54d
chore(components): integrate existing header and footer as separate c…
Vihari7 Oct 24, 2024
966b4a2
feat: create logo component
Vihari7 Oct 24, 2024
158d876
chore: update common layout
Vihari7 Oct 24, 2024
ffd256a
added detailed image part which is shows the details
s92068606 Oct 24, 2024
2fd26cc
Merge branch '86b2j5p74-landing-page' of https://github.com/tracet2t/…
s92068606 Oct 24, 2024
8395aeb
86b2j5p74-landing-page: Add footer layout for landing page
Devousl Oct 24, 2024
349251f
86b2j5p74-landing-page: resolve merge conflict
Devousl Oct 24, 2024
083ec6b
86b2j5p74-landing-page: Creating header component responsively
Devousl Oct 24, 2024
882c1fd
i created the types of venue section and make it as a scrollable
s92068606 Oct 24, 2024
4f9c214
Merge branch '86b2j5p74-landing-page' of https://github.com/tracet2t/…
s92068606 Oct 24, 2024
af9ec6b
update additional section image view
s92068606 Oct 24, 2024
836c1d5
Additional detail image part added as a responsive
s92068606 Oct 24, 2024
9193567
86b2j5p74-landing-page: Complete Landing Page
Devousl Oct 25, 2024
ff4ae19
Types of venue color and alignment changes
s92068606 Oct 25, 2024
080fb5c
Merge branch '86b2j5p74-landing-page' of https://github.com/tracet2t/…
s92068606 Oct 25, 2024
1dd3bc8
added merged venue card component, and made some changes on colors
s92068606 Oct 25, 2024
7aebb61
create landing venue card file
s92068606 Oct 25, 2024
44c3ed0
make it landing venue card responsive
s92068606 Oct 25, 2024
05c60af
add a carousel to additional image section.
s92068606 Oct 25, 2024
2ba2b1b
Add a text on additional section image, and add a button
s92068606 Oct 25, 2024
7e696b3
types of venue section card size chanings
s92068606 Oct 25, 2024
e93eb2a
make types of venue title to centre
s92068606 Oct 25, 2024
a414493
86b2kuqe7-database-creation: Craeted databse using prisma and compile…
LakshananS Oct 30, 2024
f12e870
Your commit message
LakshananS Oct 30, 2024
f74ac62
86b2kuqe7-database-creations: Separate Database Project and Generate …
LakshananS Nov 1, 2024
1ba6de2
86b2kuqe7-database-creation: Updated docker file
LakshananS Nov 1, 2024
c089878
feat: Create filters for locations and venu type of reservation
Vihari7 Nov 1, 2024
5edab4e
86b2kuqe7-database-creation: Added landing image and updated landing …
LakshananS Nov 1, 2024
59e1fb5
Change img to Next Image fromat
LakshananS Nov 1, 2024
a8d5107
Updated Iamge format and added icon images
LakshananS Nov 2, 2024
c564472
resolve errors when buld the landing page (remove the unused property)
s92068606 Nov 4, 2024
e2199d8
resolve errors when buld the landing page (title string)
s92068606 Nov 4, 2024
d2d98e7
Updated pagination for cards
LakshananS Nov 4, 2024
4e465e9
change footer setup for single page
s92068606 Nov 7, 2024
f79b041
Updated database relate to venue cards
LakshananS Nov 11, 2024
6d17d3b
86b2kuqe7-database-creation : Upadated database, vemue card, calendar…
LakshananS Nov 11, 2024
314736b
signup page frontend complete update
s92068606 Nov 13, 2024
8c4aacc
86b2rcaaf-venue-availability - Updated Guest user view venue availabi…
LakshananS Nov 14, 2024
c85ef92
Updated and pulled from all the branches
LakshananS Nov 18, 2024
8ef7599
Complete User account creation link with backend work
s92068606 Nov 18, 2024
0a47bd9
general: Added user session management
LakshananS Nov 20, 2024
f896e4f
general: Resolved build errors
LakshananS Nov 21, 2024
1dacba7
general: Fixed package errors
LakshananS Nov 21, 2024
3ae9256
genenral: Based on the time schedule venue calendar show form
LakshananS Nov 23, 2024
5a39d77
genenral: Based on the time schedule venue calendar show form
LakshananS Nov 23, 2024
b01d4b2
genenral: Based on the time schedule venue calendar show Hourly, Sess…
LakshananS Nov 23, 2024
4a10234
Merge branch 'development' into general
LakshananS Nov 24, 2024
55dc70e
gneneral: Resolved conflicts and build errors
LakshananS Nov 24, 2024
8d092c3
Merge branch 'general' of https://github.com/tracet2t/Venue-Reservati…
LakshananS Nov 24, 2024
32e7f48
update signup page with backend
s92068606 Nov 29, 2024
1460500
reset password page connect with forgot password token
s92068606 Nov 29, 2024
cd3174e
package update
s92068606 Nov 29, 2024
ada3366
Merge branch 'general' into 86b2x8cm9-reset-password
s92068606 Dec 2, 2024
0cfbdd1
package.json file updtes
s92068606 Dec 2, 2024
e5b5fb4
error solved
s92068606 Dec 2, 2024
b279759
landing page ui correction
s92068606 Dec 2, 2024
7303cc2
general: Updated reservation card, reservation summar and confimation
LakshananS Dec 3, 2024
37fce6b
general- Updated user session in login, login-link and google auth. u…
LakshananS Dec 4, 2024
c8862d1
general: Updated user profile work with logged in user credentials
LakshananS Dec 4, 2024
0aaa3a4
delete generate and migrations
Devousl Dec 4, 2024
79bdeb4
delete generate and migration files
Devousl Dec 4, 2024
963e2b3
general: Updated admin login
LakshananS Dec 4, 2024
7e176aa
Merge branches 'general' and 'general' of https://github.com/tracet2t…
LakshananS Dec 4, 2024
7d8c4d5
general : Admin user can login. In header page user can find manage o…
LakshananS Dec 4, 2024
e4e1772
general: Admin can creates new venues
LakshananS Dec 6, 2024
dc5a715
admin venue details(venue details are hard coded here)
s92068606 Dec 9, 2024
98930b5
updated code for hard coded venue details-admin
s92068606 Dec 9, 2024
92b3847
Add side bar code
s92068606 Dec 9, 2024
91e4f36
theme changed
s92068606 Dec 11, 2024
acf44cf
text colo and active color changed
s92068606 Dec 11, 2024
7edfb5d
general: Updated admin update the venue, admin reservation status and…
LakshananS Dec 13, 2024
696050d
general: Updated admin reservation update ststus
LakshananS Dec 15, 2024
2c14a41
update when pull general
s92068606 Dec 16, 2024
5aaaf1f
updated side bar componenet
s92068606 Dec 18, 2024
dda766a
Merge branch '86b31ednt-side-bar' into general
s92068606 Dec 18, 2024
0ee5443
side bar
s92068606 Dec 18, 2024
bcbe8af
resolve conflicts
s92068606 Dec 18, 2024
dc65b14
path changed
s92068606 Dec 18, 2024
873b242
Resolved important bugs
LakshananS Dec 21, 2024
a58edb1
Resolved important bugs
LakshananS Dec 21, 2024
585a098
If user reserved the venue it will generate mail to admin, and admin …
LakshananS Dec 21, 2024
daa87b3
general: Resolved magic link authentication session management; Searc…
LakshananS Dec 22, 2024
1c434e8
resolved build error
LakshananS Dec 22, 2024
739c441
resolved reservation summary, admin venue, reservation pages build error
LakshananS Dec 23, 2024
85f06ff
general: user profile picture show on header
LakshananS Dec 24, 2024
c71dd75
If user selected the date it will show the blue status on calendar, R…
LakshananS Dec 24, 2024
d82d7e3
general: Updated admin account in the seed file; Added function to di…
LakshananS Dec 26, 2024
6701727
style: update availability modal
Vihari7 Dec 27, 2024
edc599c
style: update heading of availability modal
Vihari7 Dec 30, 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
  •  
  •  
  •  
34 changes: 34 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: Node.js CI

on:
push:
branches: [ "development" ]
pull_request:
branches: [ "development" ]

jobs:
build:

runs-on: ubuntu-latest
defaults:
run:
working-directory: ./venue-reservation
strategy:
matrix:
node-version: [18.x, 20.x, 22.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: ./venue-reservation/package-lock.json
- run: npm ci
- run: npm run build --if-present
- run: npm test --if-present
15 changes: 15 additions & 0 deletions database/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Environment variables declared in this file are automatically made available to Prisma.
# See the documentation for more detail: https://pris.ly/d/prisma-schema#accessing-environment-variables-from-the-schema

# Prisma supports the native connection string format for PostgreSQL, MySQL, SQLite, SQL Server, MongoDB and CockroachDB.
# See the documentation for all the connection string options: https://pris.ly/d/connection-strings

DATABASE_URL="postgresql://postgres:postgres@localhost:5432/postgres?schema=public"

EMAIL_SERVER_HOST=smtp.gmail.com
EMAIL_SERVER_PORT=587
[email protected]
EMAIL_SERVER_PASSWORD=lrcz vzvy wwpf tfzh
EMAIL_FROM="[email protected]"

AUTH_SECRET="3ZtPGZl+VhD8X+3GDW8TebiwHkKZ4yjYdf9To7O90fE=" # Added by `npx auth`. Read more: https://cli.authjs.dev
1 change: 1 addition & 0 deletions database/doc/doc-filelist.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
var tree={};
228 changes: 228 additions & 0 deletions database/doc/doc-script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,228 @@
// # res/script.js
//
// This is the script file that gets copied into the output. It mainly manages the display
// of the folder tree. The idea of this script file is to be minimal and standalone. So
// that means no jQuery.

// Use localStorage to store data about the tree's state: whether or not
// the tree is visible and which directories are expanded. Unless the state
var sidebarVisible = (window.localStorage && window.localStorage.docker_showSidebar) ?
window.localStorage.docker_showSidebar == 'yes' :
defaultSidebar;

/**
* ## makeTree
*
* Consructs the folder tree view
*
* @param {object} treeData Folder structure as in [queueFile](../src/docker.js.html#docker.prototype.queuefile)
* @param {string} root Path from current file to root (ie `'../../'` etc.)
* @param {string} filename The current file name
*/
function makeTree(treeData, root, filename) {
var treeNode = document.getElementById('tree');
var treeHandle = document.getElementById('sidebar-toggle');
treeHandle.addEventListener('click', toggleTree, false);

// Build the html and add it to the container.
treeNode.innerHTML = nodeHtml('', treeData, '', root);

// Root folder (whole tree) should always be open
treeNode.childNodes[0].className += ' open';

// Attach click event handler
treeNode.addEventListener('click', nodeClicked, false);

if (sidebarVisible) document.body.className += ' sidebar';

// Restore scroll position from localStorage if set. And attach scroll handler
if (window.localStorage && window.localStorage.docker_treeScroll) treeNode.scrollTop = window.localStorage.docker_treeScroll;
treeNode.onscroll = treeScrolled;

// Only set a class to allow CSS transitions after the tree state has been painted
setTimeout(function() { document.body.className += ' slidey'; }, 100);
}

/**
* ## treeScrolled
*
* Called when the tree is scrolled. Stores the scroll position in localStorage
* so it can be restored on the next pageview.
*/
function treeScrolled() {
var tree = document.getElementById('tree');
if (window.localStorage) window.localStorage.docker_treeScroll = tree.scrollTop;
}

/**
* ## nodeClicked
*
* Called when a directory is clicked. Toggles open state of the directory
*
* @param {Event} e The click event
*/
function nodeClicked(e) {
// Find the target
var t = e.target;

// If the click target is actually a file (rather than a directory), ignore it
if (t.tagName.toLowerCase() !== 'div' || t.className === 'children') return;

// Recurse upwards until we find the actual directory node
while (t && t.className.substring(0, 3) != 'dir') t = t.parentNode;

// If we're at the root node, then do nothing (we don't allow collapsing of the whole tree)
if (!t || t.parentNode.id == 'tree') return;

// Find the path and toggle the state, saving the state in the localStorage variable
var path = t.getAttribute('rel');
if (t.className.indexOf('open') !== -1) {
t.className = t.className.replace(/\s*open/g, '');
if (window.localStorage) window.localStorage.removeItem('docker_openPath:' + path);
} else {
t.className += ' open';
if (window.localStorage) window.localStorage['docker_openPath:' + path] = 'yes';
}
}


/**
* ## nodeHtml
*
* Constructs the markup for a directory in the tree
*
* @param {string} nodename The node name.
* @param {object} node Node object of same format as whole tree.
* @param {string} path The path form the base to this node
* @param {string} root Relative path from current page to root
*/
function nodeHtml(nodename, node, path, root) {
// Firstly, figure out whether or not the directory is expanded from localStorage
var isOpen = window.localStorage && window.localStorage['docker_openPath:' + path] == 'yes';
var out = '<div class="dir' + (isOpen ? ' open' : '') + '" rel="' + path + '">';
out += '<div class="nodename">' + nodename + '</div>';
out += '<div class="children">';

// Loop through all child directories first
if (node.dirs) {
var dirs = [];
for (var i in node.dirs) {
if (node.dirs.hasOwnProperty(i)) dirs.push({ name: i, html: nodeHtml(i, node.dirs[i], path + i + '/', root) });
}
// Have to store them in an array first and then sort them alphabetically here
dirs.sort(function(a, b) { return (a.name > b.name) ? 1 : (a.name == b.name) ? 0 : -1; });

for (var k = 0; k < dirs.length; k += 1) out += dirs[k].html;
}

// Now loop through all the child files alphabetically
if (node.files) {
node.files.sort();
for (var j = 0; j < node.files.length; j += 1) {
out += '<a class="file" href="' + root + path + node.files[j] + '.html">' + node.files[j] + '</a>';
}
}

// Close things off
out += '</div></div>';

return out;
}

/**
* ## toggleTree
*
* Toggles the visibility of the folder tree
*/
function toggleTree() {
// Do the actual toggling by modifying the class on the body element. That way we can get some nice CSS transitions going.
if (sidebarVisible) {
document.body.className = document.body.className.replace(/\s*sidebar/g, '');
sidebarVisible = false;
} else {
document.body.className += ' sidebar';
sidebarVisible = true;
}
if (window.localStorage) {
if (sidebarVisible) {
window.localStorage.docker_showSidebar = 'yes';
} else {
window.localStorage.docker_showSidebar = 'no';
}
}
}

/**
* ## wireUpTabs
*
* Wires up events on the sidebar tabe
*/
function wireUpTabs() {
var tabEl = document.getElementById('sidebar_switch');
var children = tabEl.childNodes;

// Each tab has a class corresponding of the id of its tab pane
for (var i = 0, l = children.length; i < l; i += 1) {
// Ignore text nodes
if (children[i].nodeType !== 1) continue;
children[i].addEventListener('click', function(c) {
return function() { switchTab(c); };
}(children[i].className));
}
}

/**
* ## switchTab
*
* Switches tabs in the sidebar
*
* @param {string} tab The ID of the tab to switch to
*/
function switchTab(tab) {
var tabEl = document.getElementById('sidebar_switch');
var children = tabEl.childNodes;

// Easiest way to go through tabs without any kind of selector is just to look at the tab bar
for (var i = 0, l = children.length; i < l; i += 1) {
// Ignore text nodes
if (children[i].nodeType !== 1) continue;

// Figure out what tab pane this tab button corresponts to
var t = children[i].className.replace(/\s.*$/, '');
if (t === tab) {
// Show the tab pane, select the tab button
document.getElementById(t).style.display = 'block';
if (children[i].className.indexOf('selected') === -1) children[i].className += ' selected';
} else {
// Hide the tab pane, deselect the tab button
document.getElementById(t).style.display = 'none';
children[i].className = children[i].className.replace(/\sselected/, '');
}
}

// Store the last open tab in localStorage
if (window.localStorage) window.localStorage.docker_sidebarTab = tab;
}

/**
* ## window.onload
*
* When the document is ready, make the sidebar and all that jazz
*/
(function(init) {
if (window.addEventListener) {
window.addEventListener('DOMContentLoaded', init);
} else { // IE8 and below
window.onload = init;
}
}(function() {
makeTree(tree, relativeDir, thisFile);
wireUpTabs();

// Switch to the last viewed sidebar tab if stored, otherwise default to folder tree
if (window.localStorage && window.localStorage.docker_sidebarTab) {
switchTab(window.localStorage.docker_sidebarTab);
} else {
switchTab('tree');
}
}));
Loading