Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
354 commits
Select commit Hold shift + click to select a range
b79425a
added loggout action to session store
lxorb Dec 15, 2024
6a0b7b9
reworked header
lxorb Dec 16, 2024
2796a1a
prototyped new home page
lxorb Dec 16, 2024
69c9964
finished home page fundamental structure
lxorb Dec 16, 2024
f15837f
Add basic line chart and wip chart backend
alessioC42 Dec 17, 2024
2843d20
added gsap animations for home page first panel
lxorb Dec 17, 2024
1c2a2eb
Adjust chart style
alessioC42 Dec 18, 2024
7c65071
Expandable Sidebar concept to free up user space
alessioC42 Dec 18, 2024
139e1f4
Add whitespace to draggable
alessioC42 Dec 18, 2024
3bade80
add config to vis node
Servant-of-Scietia Dec 18, 2024
029aa5f
fix bugs in stop training and training status - button now working
Servant-of-Scietia Dec 19, 2024
a5f7794
Merge remote-tracking branch 'origin/development' into development
Servant-of-Scietia Dec 19, 2024
21fbc65
finished new homagepage with animations
lxorb Dec 19, 2024
490ee43
minor changes to homepage
lxorb Dec 19, 2024
0aad0a4
renamed Whitemind to WhiteMind
lxorb Dec 19, 2024
607f329
Enhance sidebar with fixed to left and removed footer
alessioC42 Dec 20, 2024
25e16f6
pin toolbar and allow basic scrolling in new sidebar
alessioC42 Dec 20, 2024
3ba8596
reworked login page
lxorb Dec 21, 2024
d3bccbf
added new plain layout
lxorb Dec 21, 2024
95fd195
minor display fixes for homepage
lxorb Dec 21, 2024
6b18b53
changed header color
lxorb Dec 21, 2024
cfdb6f7
changed /profile/login url to /login
lxorb Dec 21, 2024
a81572d
added whitemind text next to logo in app header
lxorb Dec 21, 2024
1aa0c2d
changed footer to black color
lxorb Dec 21, 2024
fbc3267
made homepage usable on mobile
lxorb Dec 21, 2024
0a92150
finished new login page
lxorb Dec 21, 2024
1d5efed
added empty privacy page
lxorb Dec 21, 2024
3b8260e
made app header transparent
lxorb Dec 21, 2024
a0a8830
modified default layout
lxorb Dec 21, 2024
47d8b73
made footer fully translucent
lxorb Dec 21, 2024
8a45fef
changed index page layout
lxorb Dec 21, 2024
f7c9d6a
modified layouts
lxorb Dec 21, 2024
d8e7e3c
modified login page to decide to login with password or email
lxorb Dec 21, 2024
f1443d0
remove redundant params due to worker update
Servant-of-Scietia Dec 21, 2024
a2ef754
Merge remote-tracking branch 'origin/development' into development
Servant-of-Scietia Dec 21, 2024
27774d8
merged current with development
lxorb Dec 21, 2024
3a2526e
finished merge
lxorb Dec 21, 2024
e11bdf0
Merge pull request #18 from Neurologism/11-tutorial-interface
lxorb Dec 21, 2024
4d1d06a
fixed build issues
lxorb Dec 21, 2024
0c40086
added icon components
lxorb Dec 22, 2024
5be39cc
modified login page to submit on enter
lxorb Dec 22, 2024
dd9e19e
mulitple fixes for homepage
lxorb Dec 22, 2024
8c30902
added whitemind logo svg
lxorb Dec 22, 2024
d9ae187
modified tailwind colors
lxorb Dec 22, 2024
fa6c942
modified project header
lxorb Dec 22, 2024
883e6aa
reworked signup page
lxorb Dec 22, 2024
f696447
minor changes to register page
lxorb Dec 22, 2024
fff42e4
Render line chart items
alessioC42 Dec 22, 2024
6473002
Optimize node connection style
alessioC42 Dec 22, 2024
982e2c6
deleted obsolete empty profile page
lxorb Dec 22, 2024
1b06aaa
added axios
lxorb Dec 22, 2024
c7ba835
added typescript user type
lxorb Dec 22, 2024
c8c9aa5
created user store
lxorb Dec 22, 2024
46e3e8f
modified session store
lxorb Dec 22, 2024
46d752d
removed unnecessary impor
lxorb Dec 22, 2024
d845263
renamed variables
lxorb Dec 22, 2024
2c6a1d5
renamed variables
lxorb Dec 22, 2024
96be4e1
minor changes to projects pages
lxorb Dec 22, 2024
82e10fe
added placeholder settings page
lxorb Dec 22, 2024
7c82826
added loading skeleton component
lxorb Dec 22, 2024
4e3b3ac
removed unnecessary imports from ProjectCard
lxorb Dec 22, 2024
6615778
implemented profile page component
lxorb Dec 22, 2024
21996a4
implemented new profile page
lxorb Dec 22, 2024
101eac6
changed background color globally to black
lxorb Dec 22, 2024
ec3e738
removed unnecessary imports
lxorb Dec 22, 2024
0c36c58
Fix chart resizing problem
alessioC42 Dec 23, 2024
f65e5e1
updated
lxorb Dec 23, 2024
a4c1891
finished upload pfp feature
lxorb Dec 23, 2024
1f32806
added new test pfp
lxorb Dec 23, 2024
7dfc96c
fixes and enhancements for profile component
lxorb Dec 23, 2024
c78d73c
changed user icon to svg
lxorb Dec 23, 2024
22c7411
modified session store for pfp display
lxorb Dec 23, 2024
1f45266
profile picture is now displayed in navbar / sidebar
lxorb Dec 23, 2024
0761c6e
changed project editor background color
lxorb Dec 23, 2024
2aa007d
fixed sidebar animation when pinned
lxorb Dec 23, 2024
d940909
added loading overlay component
lxorb Dec 23, 2024
f0b0079
added loading value to session store
lxorb Dec 23, 2024
b1d55aa
added loading overlay component to app
lxorb Dec 23, 2024
ca36e0c
implemented loading component for project loading
lxorb Dec 23, 2024
a1647a0
added showLoadingAnimation function that can change the displayed text
lxorb Dec 23, 2024
150ae8a
removed project loaded toast
lxorb Dec 23, 2024
5a0af58
added fancy loading animation to login and register
lxorb Dec 23, 2024
c9f8ed2
disabled text selection for editor sidebar
lxorb Dec 23, 2024
a5a730a
fixed homepage display bug on ipad / mis res devices
lxorb Dec 23, 2024
c7c429b
fixed project loading error forwarding to login page
lxorb Dec 23, 2024
e4b60a7
fixed issue regarding persistent loading animation on forward to logi…
lxorb Dec 23, 2024
9f8ae70
fixed pfp uploading bug
lxorb Dec 23, 2024
094571a
fixed projects page loading screen issue
lxorb Dec 23, 2024
236c2ec
optimized server deployment for minimal downtime
lxorb Dec 23, 2024
9cce8b2
add early stopping option
Servant-of-Scietia Dec 26, 2024
cdbb750
now working
Servant-of-Scietia Dec 26, 2024
fa16aeb
Add types to blocks.ts
alessioC42 Dec 23, 2024
3d5d4ef
add connection direction icons
alessioC42 Dec 23, 2024
00a833a
custom edge properties and style
alessioC42 Dec 23, 2024
7445eb8
implemented loading component for project loading
lxorb Dec 23, 2024
f0cf074
removed project loaded toast
lxorb Dec 23, 2024
2f8e5ef
wip: move editor to basic pinia store
alessioC42 Dec 24, 2024
47c9d3e
fix chart resizing problem
alessioC42 Dec 24, 2024
a29522a
WIP: Implement basic color edges
alessioC42 Dec 25, 2024
09c32e5
export custom handle to own Component
alessioC42 Dec 27, 2024
c511d92
Fix connection constraints checks
alessioC42 Dec 27, 2024
086b805
remove debug logs
alessioC42 Dec 27, 2024
c6d9a61
Merge pull request #21 from Neurologism/19-edge-connection-validation
Servant-of-Scietia Dec 27, 2024
af9e4c8
fix bug with line chart rescaling
Servant-of-Scietia Dec 27, 2024
85efc9e
Connection edge in style of actual edge
alessioC42 Dec 27, 2024
2ab72a2
axis scaling with log 10 superscripts
Servant-of-Scietia Dec 27, 2024
5d234ed
Merge remote-tracking branch 'origin/development' into development
Servant-of-Scietia Dec 27, 2024
a4ff33a
introduce seeded smoothstep edge offset
alessioC42 Dec 27, 2024
e01db09
hover and remove
alessioC42 Dec 27, 2024
7a5570f
enable mae
Servant-of-Scietia Dec 28, 2024
71c7005
Merge remote-tracking branch 'origin/development' into development
Servant-of-Scietia Dec 28, 2024
f103d7f
enable train and validation in line chart
Servant-of-Scietia Dec 28, 2024
09f6f26
omg
Servant-of-Scietia Dec 28, 2024
502ec3f
modified login page to login when pressing enter in password field
lxorb Dec 29, 2024
1158b72
fixed session detection bug on homepage
lxorb Dec 29, 2024
439f4f6
fix: sidebar overflow issues
alessioC42 Dec 29, 2024
b23d501
modified colors in tailwind config
lxorb Dec 29, 2024
c58e42c
added tutorial button component
lxorb Dec 29, 2024
212c766
implemented tutorials page prototype
lxorb Dec 29, 2024
0bbdad6
fixed loading overlay pointer events
lxorb Dec 29, 2024
1c857d0
added error on project loading failure
lxorb Dec 29, 2024
a80cca5
prototype of expandable sidebar buttons
alessioC42 Dec 30, 2024
c72eb13
typing fixes
lxorb Dec 30, 2024
1231253
start train button is now disabled / enabled in tutorial editor based…
lxorb Dec 30, 2024
379a35f
added progress bar to assistant speech bubble
lxorb Dec 30, 2024
241c5cf
added small husky fix regarding command expansion
lxorb Dec 30, 2024
d0bbbee
implemented tutorial narrator icon display
lxorb Dec 30, 2024
ea38abd
actually fixed husky
lxorb Dec 30, 2024
dce6e1c
wip: improve style of sidebar prototype without functionality
alessioC42 Dec 30, 2024
e5e9453
sidebar scrolling and category buttons
alessioC42 Dec 30, 2024
856a0d0
added next tutorial button for tutorial narrator
lxorb Dec 30, 2024
f526ddf
changed default visibility of assistant speech bubble
lxorb Dec 30, 2024
b282dc7
bugfix for startTraining button
lxorb Dec 30, 2024
d960b28
added privacy page prototype
lxorb Dec 30, 2024
cfd155f
feat: when a node is created in the tutorials editor and the node is …
lxorb Dec 30, 2024
9513946
terms of use txt
Servant-of-Scietia Dec 30, 2024
f0c338e
Merge remote-tracking branch 'origin/development' into development
Servant-of-Scietia Dec 30, 2024
a8b9e9d
sidebar: Make side elements scrollable + smaal fixes
alessioC42 Dec 30, 2024
c29c0bc
implemented tutorials addEdge creation
lxorb Dec 30, 2024
78b2a1d
modified terms and conditions
lxorb Dec 30, 2024
f6dcac4
modified terms-and-conditions
lxorb Dec 30, 2024
57c0524
display fixes
lxorb Dec 30, 2024
1a854c9
sidebar: new Drag Node style including the possible connections
alessioC42 Dec 30, 2024
17cf61d
Fix: sidebar animation
alessioC42 Dec 30, 2024
fb73a53
improve custom edge
alessioC42 Dec 30, 2024
6471ee7
fix handle background rotation
alessioC42 Dec 30, 2024
ebfd060
added privacy policy
lxorb Dec 31, 2024
a1f366b
modified signup page
lxorb Dec 31, 2024
6c1927a
privacy_policy.txt
Servant-of-Scietia Dec 31, 2024
d740560
Merge remote-tracking branch 'origin/development' into development
Servant-of-Scietia Dec 31, 2024
ed6adfd
added agreedToTermsOfServiceAndPrivacyPolicy attribute for registration
lxorb Dec 31, 2024
6fbed8e
added tutorial sync function
lxorb Dec 31, 2024
699e78f
implemented tutorial step syncing
lxorb Dec 31, 2024
c567427
updated footer links
lxorb Dec 31, 2024
3d959c9
optimized step syncing for tutorial editor
lxorb Dec 31, 2024
a36d564
made next tutorial button usable
lxorb Dec 31, 2024
b2cb4cd
removed fetchFunction as an argument - sessionStore is directly acces…
lxorb Dec 31, 2024
4d7686a
modified assistant
lxorb Dec 31, 2024
441cb75
update model block
Servant-of-Scietia Dec 31, 2024
5049df3
update fit block
Servant-of-Scietia Dec 31, 2024
4206a02
modified breadcrumps for tutorial editor
lxorb Dec 31, 2024
77ce067
fixed minor gsap error
lxorb Dec 31, 2024
eca322b
added some nuxt public variables
lxorb Dec 31, 2024
e8affff
implemented tutorial edge removal
lxorb Dec 31, 2024
990fe3b
another fix bites the dust
lxorb Dec 31, 2024
6350572
modified nuxt config
lxorb Dec 31, 2024
ff54e4f
fixes
lxorb Dec 31, 2024
2f511a4
implemented tutorial node deletion
lxorb Dec 31, 2024
0330779
moved notifications for tutorial editor
lxorb Dec 31, 2024
c129921
implemented tutorial editor step condition checking
lxorb Dec 31, 2024
3fb0b15
implemented context menu
lxorb Dec 31, 2024
1199f46
fixes for context menu regarding tutorial editor
lxorb Dec 31, 2024
f072c59
implemented tutorial auto forwarding on step completion
lxorb Jan 1, 2025
999916c
modified speech bubble appearance
lxorb Jan 1, 2025
1c2ed68
animated tutorial speech bubble
lxorb Jan 1, 2025
7dbd995
feat: it is saved if editor sidebar was / wasn't pinned between sessions
lxorb Jan 1, 2025
6e0d0f9
fixed build issue regarding window event listener
lxorb Jan 1, 2025
38ed7af
move visualizer access from model to fit
Servant-of-Scietia Jan 1, 2025
da2ec3a
numerous fixes
lxorb Jan 1, 2025
afbd4a6
more fixes
lxorb Jan 1, 2025
edd2783
pin toolbar by default
lxorb Jan 1, 2025
c536c8a
implemented restart tutorial functionality
lxorb Jan 1, 2025
83ef47a
rename x to data in evaluate
Servant-of-Scietia Jan 1, 2025
ab171d6
Merge remote-tracking branch 'origin/development' into development
Servant-of-Scietia Jan 1, 2025
dec2263
minor fix for tutorial restart
lxorb Jan 1, 2025
eeac813
tutorial page displays which tutorial is unlocked
lxorb Jan 1, 2025
db84c9e
changed signup forward to tutorials from projects
lxorb Jan 1, 2025
549d872
added locked tutorial functionality for tutorials page
lxorb Jan 1, 2025
864e765
disabled lock icon for tutorial editor
lxorb Jan 1, 2025
7792b24
fixed tutorials overview
lxorb Jan 1, 2025
5a1a8b0
actually fixed tutorial overview bug
lxorb Jan 1, 2025
02a28ee
fixed profile picture display in project editor
lxorb Jan 1, 2025
7b7501a
fix: edge deletion on label field
alessioC42 Jan 1, 2025
d0a5a4c
Scrollspy for sidebar: first prototype
alessioC42 Jan 1, 2025
e2f8ac1
remove testing red bars
alessioC42 Jan 1, 2025
f692665
set edge color based on both handles and set no color if the constrai…
alessioC42 Jan 1, 2025
f1952b6
sidebar do not just check for the top of the scrollbar, but for the s…
alessioC42 Jan 1, 2025
9de4d47
Adjust sync button
alessioC42 Jan 1, 2025
2c98f79
enable
Servant-of-Scietia Jan 1, 2025
28862b4
disenable
Servant-of-Scietia Jan 1, 2025
8226bfd
adjust appBar styles to handle overflow better
alessioC42 Jan 1, 2025
940818c
small fix
lxorb Jan 1, 2025
8ac3089
moved privacy policy and terms of use
lxorb Jan 1, 2025
d9e2557
resolved merge conflicts
lxorb Jan 1, 2025
6cfc689
fix tutorials first tutorial inaccessible
lxorb Jan 1, 2025
c7d646e
fixed 'header keeps results between tutorials'
lxorb Jan 1, 2025
bbcfb3d
addressed 'progress bar not moving'
lxorb Jan 1, 2025
da0dffa
fixed 'und loss eigentlich auch nie in prozent'
lxorb Jan 1, 2025
bfcc0af
fixed Next Tutorial Button if no next tutorial is available
lxorb Jan 1, 2025
7ea69b4
fixed second next tutorial button
lxorb Jan 1, 2025
34d8423
added mean absolute error to training display parameters
lxorb Jan 1, 2025
beed55b
small fix
lxorb Jan 1, 2025
6ddd79e
propper $reset() call on flowStore
alessioC42 Jan 2, 2025
b97f579
fix reverted line chart
Servant-of-Scietia Jan 2, 2025
0b9ee24
modified training header
lxorb Jan 2, 2025
9b2d02b
modified training header further
lxorb Jan 2, 2025
3cadb20
add colored edges again
Servant-of-Scietia Jan 2, 2025
c25e4b9
improved tutorials page
lxorb Jan 2, 2025
3bd8431
add block subsection / reorder blocks
Servant-of-Scietia Jan 2, 2025
d0538c1
fixed property copy on project change without reload
lxorb Jan 2, 2025
dae299c
improved project background
lxorb Jan 2, 2025
aec0abd
Merge branch 'pre-development' into development
lxorb Jan 2, 2025
5dc2ff4
modified privacy policy and terms and conditions
lxorb Jan 3, 2025
b481baa
changed start training icon
lxorb Jan 3, 2025
7f4804d
added settings layout
lxorb Jan 3, 2025
530f428
added settings components, modified existing components
lxorb Jan 3, 2025
73257af
added several settings pages (still placeholders)
lxorb Jan 3, 2025
886a23e
added discord invite to footer
lxorb Jan 3, 2025
6fd1093
uncommented unnecessary part of code regarding theming
lxorb Jan 3, 2025
59bda80
implemented profile picture component
lxorb Jan 3, 2025
112ccd3
added settings text component
lxorb Jan 3, 2025
e55c62d
modified settings components
lxorb Jan 3, 2025
f7c00fd
modified settings layout
lxorb Jan 3, 2025
9f9a87c
design improvements for account and public settings pages
lxorb Jan 3, 2025
acfd165
created modal component
lxorb Jan 3, 2025
0dca548
implement account deletion
lxorb Jan 3, 2025
bc1e8d5
implemented username (brainetTag) editing on account page
lxorb Jan 3, 2025
db2c027
implemented public profile displayname and about you modification
lxorb Jan 3, 2025
1fe0a27
modified settings public.vue
lxorb Jan 3, 2025
aeeff2e
implemented authentication settings page including password change
lxorb Jan 4, 2025
87deeb8
added some forwardings depending on loggedIn state
lxorb Jan 4, 2025
16a7530
modified profile page forwardings
lxorb Jan 4, 2025
9d0de95
added verify email modal
lxorb Jan 4, 2025
41d05a8
integrate verify email modal into app
lxorb Jan 4, 2025
f8de83c
fix forwarding in layouts
lxorb Jan 4, 2025
3bcf470
finish settings email page
lxorb Jan 4, 2025
792831e
realise email page isn't working due to backend bug, disabled email page
lxorb Jan 4, 2025
9b2c4ab
comment out some fields of public profile settings page
lxorb Jan 4, 2025
8c416a1
modify nuxt.config, VerifyEmailModal
lxorb Jan 4, 2025
0578a6f
removed github link from footer
lxorb Jan 4, 2025
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
4 changes: 2 additions & 2 deletions .github/workflows/deployDev.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Deploy Developement
name: Deploy Development

on:
push:
branches: ["developement"]
branches: ['development']

jobs:
deploy-dev:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deployMain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Deploy Main

on:
push:
branches: ["main"]
branches: ['main']

jobs:
deploy:
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ logs
# Local env files
.env
.env.*
!.env.example
!.env.production
2 changes: 2 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
echo "$(git diff --cached --name-only --diff-filter=ACMR | sed 's| |\\ |g')" | xargs prettier --write --ignore-unknown
git update-index --again
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules/
dist/
7 changes: 7 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"semi": true,
"singleQuote": true,
"tabWidth": 2,
"printWidth": 80,
"trailingComma": "es5"
}
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ cd pinkmind
pnpm install
```

### Running for Developement
### Running for Development

Use the following pnpm scripts for developement.
Use the following pnpm scripts for development.

```bash
pnpm run pretty # formats the code
Expand All @@ -71,7 +71,7 @@ pnpm run dev # to start a local dev server

### Running for Deployment

Use the following npm scripts for developement.
Use the following npm scripts for development.

```bash
pnpm run build # build the application for production
Expand Down
5 changes: 3 additions & 2 deletions app.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
export default defineAppConfig({
title: "Pinkmind",
title: 'WhiteMind',
ui: {
primary: "customPrimary",
primary: 'customPrimary',
secondary: 'customSecondary',
},
});
27 changes: 26 additions & 1 deletion app.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,34 @@
<script setup></script>
<script setup lang="ts">
const route = useRoute();
const sessionStore = useSessionStore();

const splitRoute = computed(() => route.path.split('/'));

const moveNotifications = computed((): boolean => {
if (splitRoute.value.length <= 1) {
return false;
}
return splitRoute.value[1] === 'tutorial';
});

await sessionStore.syncLocalSessionData();

onMounted(() => {
window.addEventListener('beforeunload', sessionStore.saveSessionData);
});

onUnmounted(() => {
window.removeEventListener('beforeunload', sessionStore.saveSessionData);
});
</script>

<template>
<div>
<LoadingOverlay />
<NuxtLayout>
<NuxtPage />
</NuxtLayout>
<UNotifications :class="{ 'mr-96': moveNotifications }" />
<VerifyEmailModal />
</div>
</template>
27 changes: 27 additions & 0 deletions assets/css/tailwind.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,30 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
body {
background-color: black;
}
}

::-webkit-scrollbar {
width: 5px;
}

/* Track */
::-webkit-scrollbar-track {
background: rgba(0, 0, 0, 0.1);
border-radius: 3px;
}

/* Handle */
::-webkit-scrollbar-thumb {
background: #888;
border-radius: 3px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
background: #555;
}
36 changes: 22 additions & 14 deletions components/AppFooter.vue
Original file line number Diff line number Diff line change
@@ -1,26 +1,34 @@
<script setup lang="ts">
</script>
<script setup lang="ts"></script>

<template>
<!-- tailwind custom footer -->
<footer class="bg-gray-800 justify-center">
<footer class="w-full">
<div class="container p-4 mx-auto">
<div class="flex flex-col md:flex-row justify-between items-center">
<div class="flex flex-col md:flex-row items-center">
<div class="text-white text-lg font-bold">Neurologism</div>
<div class="text-gray-400 ml-0 md:ml-4 mt-2 md:mt-0">© {{ new Date().getFullYear() }}</div>
<div class="text-white text-lg font-bold">
<a href="/">WhiteMind</a>
</div>
<div class="text-gray-400 ml-0 md:ml-4 mt-2 md:mt-0">
© {{ new Date().getFullYear() }}
</div>
</div>
<div class="flex flex-col md:flex-row items-center mt-4 md:mt-0">
<div class="text-gray-400"><a href="/privacy">Privacy Policy</a></div>
<div class="text-gray-400 ml-4"><a href="/terms">Terms of Service</a></div>
<div class="text-gray-400 ml-4"><a href="/contact">Contact Us</a></div>
<div class="text-gray-400 ml-4 items-center">
<a href="https://github.com/neurologism" target="_blank">
<UIcon name="i-mdi-github" class="w-5 h-5" />
<div class="flex sm:grid-cols-2 md:flex-row items-center mt-4 md:mt-0">
<div class="grid text-gray-400">
<a href="/privacy-policy">Privacy Policy</a>
</div>
<div class="text-gray-400 ml-4">
<a href="/terms-and-conditions">Terms and Conditions</a>
</div>
<div class="text-gray-400 ml-4">
<a href="/contact">Contact Us</a>
</div>
<div class="text-gray-400 ml-4 mt-2 items-center">
<a href="https://discord.gg/RhnprTzd8q" target="_blank">
<UIcon name="ic:baseline-discord" class="w-5 h-5" />
</a>
</div>
</div>
</div>
</div>
</footer>
</template>
</template>
131 changes: 73 additions & 58 deletions components/AppHeader.vue
Original file line number Diff line number Diff line change
@@ -1,69 +1,84 @@
<script setup lang="ts">
const emit = defineEmits(["click-theme", "click-profile"]);
const sessionStore = useSessionStore();

const colorMode = useColorMode();
const isDark = computed({
get() {
return colorMode.value === "dark";
},
set() {
colorMode.preference = colorMode.value === "dark" ? "light" : "dark";
},
});
const emit = defineEmits(['click-theme']);

const showProfileSlideover = ref(false);

const links = [
[
{
label: "Whitemind",
click: () => navigateTo("/"),
},
],
[
{
label: "Home",
icon: "i-heroicons-home",
to: "/",
},
{
label: "Tutorials",
icon: "i-heroicons-academic-cap",
to: "/tutorials",
},
{
label: "Projects",
icon: "i-heroicons-folder",
to: "/projects",
},
],
[
{
label: "",
icon: "fluent:dark-theme-20-filled",
click: () => (isDark.value = !isDark.value),
},
{
label: "Profile",
avatar: {
src: "/testpfp.jpg",
},
click: () => emit("click-profile"),
},
],
];
const colorMode = useColorMode();
// const isDark = computed({
// get() {
// return colorMode.value === 'dark';
// },
// set() {
// colorMode.preference = colorMode.value === 'dark' ? 'light' : 'dark';
// },
// });
</script>

<template>
<ClientOnly>
<UHorizontalNavigation
:links="links"
class="border-b border-gray-200 dark:border-gray-800"
<ProfileSlideover v-model="showProfileSlideover" />
<div
class="backdrop-blur-md border-slate-800 flex items-center w-full z-50 fixed h-16"
style="border-bottom-width: 0.5px"
>
<template #default="{ link }">
<span
class="group-hover:text-primary relative hidden md:block first:text-xl first:font-semibold first:dark:text-white first:dark:group-hover:text-white"
>{{ link.label }}</span
<div
@click="() => navigateTo('/')"
class="hover:cursor-pointer grow-0 ml-1 sm:ml-3 lg:ml-5"
>
<NuxtImg
src="/favicon-32x32.png"
width="48"
height="48"
alt="WhiteMind"
class="group-hover:text-primary hover:bg-blend relative first:text-xl first:font-semibold first:dark:text-white first:dark:group-hover:text-white p-2"
style="filter: drop-shadow(2px 4px 3px rgba(0, 0, 0, 0.5))"
/>
</div>
<div
class="text-white text-2xl font-semibold hover:cursor-pointer grow-0"
style="filter: drop-shadow(2px 4px 3px rgba(0, 0, 0, 0.5))"
@click="() => navigateTo('/')"
>
WhiteMind
</div>

<div class="flex-grow"></div>
<!-- <UTooltip
class="hover:cursor-pointer sm:mr-2"
@click="() => (isDark = !isDark)"
:text="isDark ? 'light theme' : 'dark theme'"
>
<UIcon name="fluent:dark-theme-20-filled" size="large" />
</UTooltip> -->
<div
v-if="!sessionStore.isAuthorized"
class="ml-1 sm:ml-3 lg:ml-5 grow-0 mr-3 lg:mr-5"
>
<UButton
to="/login"
variant="ghost"
color="gray"
class="mr-1 sm:mr-3 lg:mr-5"
>
Sign in
</UButton>
<UButton to="/signup" variant="solid" color="gray"> Sign up </UButton>
</div>

<UTooltip class="mr-1 sm:mr-3 lg:mr-5 grow-0" v-else>
<div
class="hover:cursor-pointer grow-0 mr-1 sm:mr-3 lg:mr-5"
@click="showProfileSlideover = !showProfileSlideover"
>
</template>
</UHorizontalNavigation>
<UAvatar
size="md"
:src="sessionStore.hasPfp ? sessionStore.pfpUrl : '/user.svg'"
:alt="sessionStore.sessionData.user.displayname ?? ''"
/>
</div>
</UTooltip>
</div>
</ClientOnly>
</template>
12 changes: 12 additions & 0 deletions components/HintBox.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<script setup lang="ts">
const showHint = ref(false);
</script>

<template>
<div @click="showHint = true">
<slot name="default" />
<div class="m-2">
<slot v-if="showHint" name="hint" />
</div>
</div>
</template>
Loading
Loading