Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,14 @@ To create hotfixes:

## License

This material is licensed under the AGPL License, allowing you to remix, learn, and experiment with
it freely.
Licensed under the AGPL. This is **not** a traditional open-source project — it is _source available_,
published so people can **read it and learn from it**. It is not a template or a starter.

However, please note that this is **not** a traditional open-source project; it is more accurately
described as _source available_. In accordance with the AGPL License, redistribution of the source
code under the same license, with attribution to the original author, is mandatory.
Since the software can only be offered over a network, the source code must be properly disclosed.
- **Do not host or serve this site over a network**, publicly or privately.
- **Do not fork it, change the branding, and ship it as your own** — that violates this license.
- Any redistribution must follow the AGPL: same license, attribution, full source disclosure.
Comment thread
tofran marked this conversation as resolved.

We do not provide support for this project, and replication or rebranding is strongly discouraged.
However, we encourage you to explore and take inspiration from how we built our website.
Significa's branding (name, logo, copy, imagery, identity) is not covered by the AGPL and is not
licensed to you.

We do not provide support for this project.
5 changes: 4 additions & 1 deletion src/components/blocks/awards-list.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import AwardsEntry from '$components/awards-entry.svelte';
import { drawerLinks } from '$lib/actions/drawer-links';
import { storyblokEditable } from '$lib/actions/storyblok-editable';
import { sanitizeSlug } from '$lib/utils/paths';
import type { AwardsListStoryblok } from '$types/bloks';
import clsx from 'clsx';

Expand Down Expand Up @@ -95,7 +96,9 @@
{#if $query.data?.pages}
{#each $query.data?.pages as page}
{#each page.awards || previousData || [] as award}
{@const href = award.content.project.full_slug}
{@const href = award.content.project?.full_slug
? sanitizeSlug(award.content.project.full_slug)
: undefined}
<li
class={clsx(
'block border-b first:border-t',
Expand Down
3 changes: 2 additions & 1 deletion src/components/proposals/proposal-awards.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import { drawerLinks } from '$lib/actions/drawer-links';
import clsx from 'clsx';
import { t } from '$lib/i18n';
import { sanitizeSlug } from '$lib/utils/paths';
import AwardsEntry from '$components/awards-entry.svelte';
import type { ISbStoryData } from '@storyblok/js';
import type { RecognitionStoryblok } from '$types/bloks';
Expand All @@ -23,7 +24,7 @@
<div class="w-full flex-1">
<ul use:drawerLinks>
{#each awards as award}
{@const href = `/${award.content.project.full_slug}`}
{@const href = sanitizeSlug(award.content.project.full_slug)}
<li
class={clsx(
'block border-b first:border-t',
Expand Down
3 changes: 2 additions & 1 deletion src/lib/stores/drawer.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { goto } from '$app/navigation';
import { page } from '$app/stores';
import { derived } from 'svelte/store';
import { sanitizeSlug } from '$lib/utils/paths';

function createDrawer() {
const { subscribe } = derived(page, ($page) => {
Expand All @@ -12,7 +13,7 @@ function createDrawer() {
open: (slug: string) => {
const url = new URL(window.location.href);
const searchParams = new URLSearchParams(url.searchParams);
searchParams.set('drawer', slug);
searchParams.set('drawer', sanitizeSlug(slug));

goto(`${url.pathname}?${searchParams.toString()}`, { noScroll: true });
},
Expand Down
8 changes: 3 additions & 5 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,16 @@
import { beforeNavigate } from '$app/navigation';
import { browser } from '$app/environment';

import {
PUBLIC_POSTHOG_PROJECT_TOKEN,
PUBLIC_POSTHOG_POSTHOG_API_HOST
} from '$env/static/public';
import { PUBLIC_POSTHOG_PROJECT_TOKEN } from '$env/static/public';
import { env } from '$env/dynamic/public';

import posthog from 'posthog-js';

import { QueryClient, QueryClientProvider } from '@tanstack/svelte-query';

if (browser) {
posthog.init(PUBLIC_POSTHOG_PROJECT_TOKEN, {
api_host: PUBLIC_POSTHOG_POSTHOG_API_HOST || 'https://eu.posthog.com',
api_host: env.PUBLIC_POSTHOG_POSTHOG_API_HOST || 'https://eu.posthog.com',
persistence: 'localStorage',
person_profiles: 'always'
});
Expand Down