Skip to content

Commit

Permalink
Merge pull request #1 from flo-bit/main
Browse files Browse the repository at this point in the history
small fixes
  • Loading branch information
flo-bit authored Nov 19, 2024
2 parents 501a7f9 + 781f68f commit a9dadc3
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 37 deletions.
39 changes: 5 additions & 34 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,38 +1,9 @@
# sv
# bluesky visualizers

Everything you need to build a Svelte project, powered by [`sv`](https://github.com/sveltejs/cli).
collection of visualizations for bluesky, using the bluesky api, tailwind, svelte and pixijs.

## Creating a project
[trending hashtags](https://flo-bit.dev/bluesky-visualizers/trending)

If you're seeing this, you've probably already done this step. Congrats!
[wordcloud](https://flo-bit.dev/bluesky-visualizers/wordcloud)

```bash
# create a new project in the current directory
npx sv create

# create a new project in my-app
npx sv create my-app
```

## Developing

Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:

```bash
npm run dev

# or start the server and open the app in a new browser tab
npm run dev -- --open
```

## Building

To create a production version of your app:

```bash
npm run build
```

You can preview the production build with `npm run preview`.

> To deploy your app, you may need to install an [adapter](https://svelte.dev/docs/kit/adapters) for your target environment.
[particles](https://flo-bit.dev/bluesky-visualizers/particles)
5 changes: 5 additions & 0 deletions src/app.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
<!doctype html>
<html lang="en">
<script>
!function(t,e){var o,n,p,r;e.__SV||(window.posthog=e,e._i=[],e.init=function(i,s,a){function g(t,e){var o=e.split(".");2==o.length&&(t=t[o[0]],e=o[1]),t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}}(p=t.createElement("script")).type="text/javascript",p.async=!0,p.src=s.api_host.replace(".i.posthog.com","-assets.i.posthog.com")+"/static/array.js",(r=t.getElementsByTagName("script")[0]).parentNode.insertBefore(p,r);var u=e;for(void 0!==a?u=e[a]=[]:a="posthog",u.people=u.people||[],u.toString=function(t){var e="posthog";return"posthog"!==a&&(e+="."+a),t||(e+=" (stub)"),e},u.people.toString=function(){return u.toString(1)+".people (stub)"},o="capture identify alias people.set people.set_once set_config register register_once unregister opt_out_capturing has_opted_out_capturing opt_in_capturing reset isFeatureEnabled onFeatureFlags getFeatureFlag getFeatureFlagPayload reloadFeatureFlags group updateEarlyAccessFeatureEnrollment getEarlyAccessFeatures getActiveMatchingSurveys getSurveys getNextSurveyStep onSessionId".split(" "),n=0;n<o.length;n++)g(u,o[n]);e._i.push([i,s,a])},e.__SV=1)}(document,window.posthog||[]);
posthog.init('phc_1Q4q6SdTwvStnxFWbmdOIusLc5ve0u6Fk7WpsHPoAlD',{api_host:'https://eu.i.posthog.com', person_profiles: 'identified_only', persistence: 'memory'})
</script>

<head>
<meta charset="utf-8" />
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
Expand Down
2 changes: 0 additions & 2 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<script>
import Credit from "$lib/Credit.svelte";
</script>
<Credit showAll={false} />

Expand Down
2 changes: 1 addition & 1 deletion src/routes/trending/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
// check if we're up to date
const postTime = json.time_us;
if (Date.now() > lastUpdateTime + 5000 && posts > 1000) {
if (Date.now() > lastUpdateTime + 5000 && posts > 100) {
lastUpdateTime = Date.now();
// update last update time
Expand Down

0 comments on commit a9dadc3

Please sign in to comment.