Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 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
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
e73663f
Merge pull request #3 from tracet2t/86b2j5p5v-venue-cards-poc
bsaranga Oct 23, 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
d2d98e7
Updated pagination for cards
LakshananS Nov 4, 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
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
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
0dc6c92
Merge branch 'development' into general
LakshananS Nov 24, 2024
55dc70e
gneneral: Resolved conflicts and build errors
LakshananS Nov 24, 2024
df1ac74
Merge branch 'general' of https://github.com/tracet2t/Venue-Reservati…
LakshananS Nov 24, 2024
9b52976
general: Updated reservation card, reservation summar and confimation
LakshananS Dec 3, 2024
9dc5642
general- Updated user session in login, login-link and google auth. u…
LakshananS Dec 4, 2024
7fd26db
general: Updated user profile work with logged in user credentials
LakshananS Dec 4, 2024
bb69b58
delete generate and migrations
Devousl Dec 4, 2024
ea1c0e1
delete generate and migration files
Devousl Dec 4, 2024
de5c9d0
general: Updated admin login
LakshananS Dec 4, 2024
a8287bb
Merge branches 'general' and 'general' of https://github.com/tracet2t…
LakshananS Dec 4, 2024
834526a
general : Admin user can login. In header page user can find manage o…
LakshananS Dec 4, 2024
98919b6
general: Admin can creates new venues
LakshananS Dec 6, 2024
031eb0e
general: Updated admin update the venue, admin reservation status and…
LakshananS Dec 13, 2024
fc49d5c
general: Updated admin reservation update ststus
LakshananS Dec 15, 2024
757410a
feat: add edit profile functionality with secure API integration
Vihari7 Dec 16, 2024
968bb3e
fix: implement proper cancel functionality for edit mode
Vihari7 Dec 16, 2024
707b779
feat: enhance phone number validation with correct format
Vihari7 Dec 16, 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
  •  
  •  
  •  
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_SERVER_USER=lakshanansa@gmail.com
EMAIL_SERVER_PASSWORD=lrcz vzvy wwpf tfzh
EMAIL_FROM="lakshanansa@gmail.com"

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