Skip to content

Commit

Permalink
fix(web): no more cookies, only localstorage.
Browse files Browse the repository at this point in the history
  • Loading branch information
ChecksumDev committed Aug 12, 2023
1 parent 8c9de01 commit 4cf6ebe
Show file tree
Hide file tree
Showing 37 changed files with 335 additions and 308 deletions.
36 changes: 18 additions & 18 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,32 +5,32 @@

version: 2
updates:
- package-ecosystem: "github-actions" # See documentation for possible values
directory: "/" # Location of package manifests
- package-ecosystem: 'github-actions' # See documentation for possible values
directory: '/' # Location of package manifests
schedule:
interval: "daily"
interval: 'daily'

- package-ecosystem: "npm" # See documentation for possible values
directory: "/"
- package-ecosystem: 'npm' # See documentation for possible values
directory: '/'
schedule:
interval: "daily"
interval: 'daily'

- package-ecosystem: "npm" # See documentation for possible values
directory: "/apps/*/"
- package-ecosystem: 'npm' # See documentation for possible values
directory: '/apps/*/'
schedule:
interval: "daily"
interval: 'daily'

- package-ecosystem: "npm" # See documentation for possible values
directory: "/packages/*/"
- package-ecosystem: 'npm' # See documentation for possible values
directory: '/packages/*/'
schedule:
interval: "daily"
interval: 'daily'

- package-ecosystem: "docker" # See documentation for possible values
directory: "/apps/web/" # Location of package manifests
- package-ecosystem: 'docker' # See documentation for possible values
directory: '/apps/web/' # Location of package manifests
schedule:
interval: "daily"
interval: 'daily'

- package-ecosystem: "cargo" # See documentation for possible values
directory: "/apps/gui/" # Location of package manifests
- package-ecosystem: 'cargo' # See documentation for possible values
directory: '/apps/gui/' # Location of package manifests
schedule:
interval: "daily"
interval: 'daily'
2 changes: 1 addition & 1 deletion .github/workflows/production-web.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
on:
release:
types: [published]

permissions:
contents: write
pull-requests: write
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,18 @@ jobs:
- uses: google-github-actions/release-please-action@v3
with:
token: ${{ secrets.RELEASE_GITHUB_TOKEN }}
package-name: "@beat-forge/web"
package-name: '@beat-forge/web'
monorepo-tags: true
release-type: node
path: "apps/web"
path: 'apps/web'

release-gui:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
with:
token: ${{ secrets.RELEASE_GITHUB_TOKEN }}
package-name: "@beat-forge/gui"
package-name: '@beat-forge/gui'
monorepo-tags: true
release-type: node
path: "apps/gui"

path: 'apps/gui'
2 changes: 1 addition & 1 deletion .github/workflows/staging-web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
- name: Install dependencies
run: pnpm install --filter=web

- name: Build Svelte
run: pnpm run build --filter=web

Expand Down
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# BeatForge: Clients 📦

![GitHub](https://img.shields.io/github/license/beat-forge/clients) ![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/beat-forge/clients/staging-web.yml?label=web)
![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/beat-forge/clients/build-gui.yml?label=gui)
![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/beat-forge/clients/build-gui.yml?label=gui)

This repository contains our SvelteKit web client and Tauri GUI client. The web client is hosted at [beatforge.net](https://beatforge.net) and the GUI client is available for download on the front page of the website.

Expand All @@ -9,12 +10,13 @@ This repository contains our SvelteKit web client and Tauri GUI client. The web
> NOTE: Our project is constantly evolving and we are always trying to use the latest and greatest technologies. We recommend using [rustup](https://rustup.rs/) to install Rust and [nvm](https://nvm.sh/) to manage your Node.js installations.
### Prerequisites

- [Rust](https://www.rust-lang.org/) (Stable)
- [Node.js](https://nodejs.org/en/) (LTS)
- [pnpm](https://pnpm.io/) (LTS)


### Setup

```bash
# Clone the repository
git clone https://github.com/beat-forge/clients.git
Expand All @@ -24,6 +26,7 @@ cd clients
```

### Web Client

```bash
# Install dependencies for the web client
pnpm install --filter=web
Expand All @@ -33,6 +36,7 @@ pnpm run dev --filter=web
```

### GUI Client

```bash
# Install dependencies for the GUI client
pnpm install --filter=gui
Expand All @@ -42,4 +46,5 @@ pnpm run dev --filter=gui
```

## License 📝
This project is licensed under the [GNU Affero General Public License v3.0](LICENSE).

This project is licensed under the [GNU Affero General Public License v3.0](LICENSE).
2 changes: 1 addition & 1 deletion apps/gui/src/app.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
Expand Down
98 changes: 51 additions & 47 deletions apps/gui/src/app.postcss
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,24 @@
@tailwind utilities;

img {
-webkit-user-drag: none;
-khtml-user-drag: none;
-moz-user-drag: none;
-o-user-drag: none;
user-drag: none;
-webkit-user-drag: none;
-khtml-user-drag: none;
-moz-user-drag: none;
-o-user-drag: none;
user-drag: none;
}

:root {
--transparent: transparent;
--mask-visible: #000000;
--mask-hidden: transparent;
--transparent: transparent;
--mask-visible: #000000;
--mask-hidden: transparent;
}

html,
body {
height: 100vh;
width: 100vw;
font-family: 'Plus Jakarta Sans', sans-serif;
font-family: 'Plus Jakarta Sans', sans-serif;
/* font-family: Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, 'Apple Color Emoji',
'Segoe UI Emoji', Segoe UI Symbol, 'Noto Color Emoji'; */
overflow-x: hidden;
Expand All @@ -33,31 +33,31 @@ body {
user-select: none;
display: flex;
cursor: default;
user-drag: none;
user-drag: none;
}

::-webkit-scrollbar {
width: 17px;
height: 0px;
background: transparent;
padding-right: 8px;
width: 17px;
height: 0px;
background: transparent;
padding-right: 8px;
}

::-webkit-scrollbar-corner {
background: transparent;
background: transparent;
}

::-webkit-scrollbar-thumb {
border-radius: 9999px;
background: #333234;
background-clip: padding-box;
border: 7px solid rgba(0, 0, 0, 0);
border-width: 7px;
border-radius: 9999px;
background: #333234;
background-clip: padding-box;
border: 7px solid rgba(0, 0, 0, 0);
border-width: 7px;
}

::-webkit-scrollbar-track {
border-radius: 9999px;
background: transparent;
border-radius: 9999px;
background: transparent;
}

input {
Expand All @@ -68,17 +68,17 @@ input {
}

@keyframes sidebar-glow-hue-rotate {
0% {
filter: hue-rotate(0deg) brightness(135%) blur(128px) saturate(150%);
}
0% {
filter: hue-rotate(0deg) brightness(135%) blur(128px) saturate(150%);
}

50% {
filter: hue-rotate(90deg) brightness(135%) blur(128px) saturate(150%);
}
50% {
filter: hue-rotate(90deg) brightness(135%) blur(128px) saturate(150%);
}

100% {
filter: hue-rotate(0deg) brightness(135%) blur(128px) saturate(150%);
}
100% {
filter: hue-rotate(0deg) brightness(135%) blur(128px) saturate(150%);
}
}

.sidebar-glow {
Expand All @@ -87,25 +87,29 @@ input {
}

.brand-font {
font-family: 'Plus Jakarta Sans', sans-serif;
font-family: 'Plus Jakarta Sans', sans-serif;
}

.beatforge-titlebar-blur-area {
--direction: to bottom;
position: absolute;
user-select: none;
pointer-events: none;
width: 100%;
height: 96px;
z-index: 1;
-webkit-backdrop-filter: blur(20px);
backdrop-filter: blur(20px);
-webkit-mask-image: linear-gradient(var(--direction),var(--mask-visible) 66%,var(--mask-hidden));
mask-image: linear-gradient(var(--direction),var(--mask-visible) 66%,var(--mask-hidden));
top: 0px;
--direction: to bottom;
position: absolute;
user-select: none;
pointer-events: none;
width: 100%;
height: 96px;
z-index: 1;
-webkit-backdrop-filter: blur(20px);
backdrop-filter: blur(20px);
-webkit-mask-image: linear-gradient(
var(--direction),
var(--mask-visible) 66%,
var(--mask-hidden)
);
mask-image: linear-gradient(var(--direction), var(--mask-visible) 66%, var(--mask-hidden));
top: 0px;
}

.linkActive {
opacity: 1;
font-weight: bold;
}
opacity: 1;
font-weight: bold;
}
60 changes: 29 additions & 31 deletions apps/gui/src/routes/discover/+page.server.ts
Original file line number Diff line number Diff line change
@@ -1,35 +1,33 @@
import { request, gql } from 'graphql-request'
import { request, gql } from 'graphql-request';
import type { PageServerLoad } from './$types';


export const load = (async () => {
let query = gql`
{
mods(version: "1.31.0") {
name
description
author {
username
}
icon
cover
category {
name
}
versions {
version
supportedGameVersions
approved
createdAt
}
}
}
`
let mods = await request({
url: 'https://api.beatforge.net/graphql',
document: query // ?
})

let query = gql`
{
mods(version: "1.31.0") {
name
description
author {
username
}
icon
cover
category {
name
}
versions {
version
supportedGameVersions
approved
createdAt
}
}
}
`;
let mods = await request({
url: 'https://api.beatforge.net/graphql',
document: query // ?
});

return mods as any
}) satisfies PageServerLoad;
return mods as any;
}) satisfies PageServerLoad;
2 changes: 1 addition & 1 deletion apps/gui/tailwind.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const config = {
700: '#131313',
800: '#0c0c0c',
900: '#060606',
950: '#000000',
950: '#000000'
}
},
backgroundImage: {
Expand Down
1 change: 0 additions & 1 deletion apps/ui/stories/ui/Button.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,3 @@ export const Pill = {
disabled: false,
},
};

Loading

0 comments on commit 4cf6ebe

Please sign in to comment.