Programmer, Composer, Pianist, and Electronic Musician
sg60 / sam-svelte-components Goto Github PK
View Code? Open in Web Editor NEWHome Page: https://sg60.github.io/sam-svelte-components
License: MIT License
Home Page: https://sg60.github.io/sam-svelte-components
License: MIT License
Programmer, Composer, Pianist, and Electronic Musician
Component allowing selecting a time zone manually (default to local time zone). Store this alongside a local datetime.
{
// stored in local time
"datetime": "2017-02-12T09:15:00",
// a target time zone, used for rendering the datetime in the studio and frontends if needed.
// the studio should include a select dropdown to choose the timezone, defaulting to the local one.
"targetTimezone": "Europe/London"
}
Intl.supportedValuesOf('timeZone') // get list of timezones
https://day.js.org/docs/en/plugin/timezone
Then a front-end could render the times as authored. And just list a time zone abbreviation after the time if it is different to local time (or show it on hover as a tooltip).
This would be especially useful for event listings.
Schemas, svelte components and utility functions.
Lots of the components should wrap more generic components.
Also React wrappers to render some components within Sanity Studio?
Use vitest?
Make it more similar to stock datetime diff.
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates are currently rate-limited. Click on a checkbox below to force their creation now.
@storybook/test-runner
, actions/cache
, actions/checkout
, actions/configure-pages
, actions/deploy-pages
, actions/setup-node
, actions/upload-pages-artifact
, chromaui/action
, mcr.microsoft.com/vscode/devcontainers/typescript-node
, pnpm/action-setup
)eslint
, eslint-config-prettier
, eslint-plugin-storybook
, prettier
)@storybook/addon-a11y
, @storybook/addon-essentials
, @storybook/addon-interactions
, @storybook/addon-links
, @storybook/addon-storysource
, @storybook/blocks
, @storybook/svelte
, @storybook/sveltekit
, storybook
)@typescript-eslint/eslint-plugin
, @typescript-eslint/parser
)eslint-config-prettier
, prettier
)@storybook/addon-a11y
, @storybook/addon-essentials
, @storybook/addon-interactions
, @storybook/addon-links
, @storybook/addon-storysource
, @storybook/blocks
, @storybook/svelte
, @storybook/sveltekit
, storybook
)@sveltejs/adapter-auto
, @sveltejs/adapter-static
, @sveltejs/kit
)@typescript-eslint/eslint-plugin
, @typescript-eslint/parser
)These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
styled-components
, @types/styled-components
)@sveltejs/adapter-auto
, @sveltejs/kit
, @sveltejs/package
).devcontainer/Dockerfile
mcr.microsoft.com/vscode/devcontainers/typescript-node 0-18-bullseye
.github/workflows/changesets.yml
actions/checkout v3
actions/setup-node v3
pnpm/action-setup v2.2.4
actions/cache v3
changesets/action v1
.github/workflows/chromatic.yml
actions/checkout v3
actions/setup-node v3
pnpm/action-setup v2.2.4
actions/cache v3
chromaui/action v1
.github/workflows/ci.yml
actions/checkout v3
actions/setup-node v3
pnpm/action-setup v2.2.4
actions/cache v3
.github/workflows/gh-pages.yml
actions/checkout v3
actions/configure-pages v2
actions/setup-node v3
pnpm/action-setup v2.2.4
actions/cache v3
actions/upload-pages-artifact v1
actions/deploy-pages v1
docs/package.json
@storybook/addon-a11y 7.0.7
@storybook/addon-essentials 7.0.7
@storybook/addon-interactions 7.0.7
@storybook/addon-links 7.0.7
@storybook/addon-storysource 7.0.7
@storybook/addon-svelte-csf 3.0.2
@storybook/blocks 7.0.7
@storybook/svelte 7.0.7
@storybook/sveltekit 7.0.7
@storybook/test-runner ^0.16.0
@storybook/testing-library 0.0.14-next.2
@sveltejs/adapter-auto 2.0.1
@sveltejs/kit 1.15.9
autoprefixer 10.4.16
eslint 8.56.0
eslint-config-prettier 8.6.0
eslint-plugin-storybook 0.6.15
eslint-plugin-svelte3 4.0.0
postcss 8.4.23
prettier 2.8.4
prettier-plugin-svelte 2.10.0
react 18.2.0
react-dom 18.2.0
storybook 7.0.7
svelte 3.55.0
svelte-check 3.5.2
tailwindcss 3.3.2
typescript 5.3.3
vite 4.5.2
package.json
@changesets/cli 2.25.2
turbo 1.9.3
pnpm 8.10.0
packages/core/package.json
@sveltejs/adapter-static 1.0.6
@sveltejs/kit 1.15.9
@sveltejs/package ^2.0.0
@typescript-eslint/eslint-plugin 5.46.1
@typescript-eslint/parser 5.46.1
eslint 8.43.0
eslint-config-prettier 8.8.0
eslint-plugin-svelte3 4.0.0
prettier 2.8.8
prettier-plugin-svelte 2.9.0
svelte 3.55.0
svelte-check 3.5.2
svelte-loader 3.1.4
svelte-preprocess 5.0.4
svelte2tsx 0.5.22
tslib 2.4.1
typescript 5.1.6
vite 4.5.2
svelte ^3.44.0
packages/sanity-plugin-datetime/package.json
@adobe/react-spectrum 3.26.0
@internationalized/date 3.2.0
@sanity/icons 2.3.1
@sanity/ui 1.3.3
@types/react 18.2.6
@types/styled-components 5.1.26
@typescript-eslint/eslint-plugin 5.59.6
@typescript-eslint/parser 5.59.6
react 18.2.0
react-aria-components 1.0.0-alpha.3
react-dom 18.2.0
react-is 18.2.0
react-stately 3.23.0
sanity 3.9.1
styled-components 5.3.10
typescript 5.1.6
@adobe/react-spectrum ^3
@internationalized/date ^3
@sanity/icons ^2.3.1
@sanity/ui ^1
react ^18
react-aria-components 1.0.0-alpha.3
react-stately ^3.23.0
sanity ^3
styled-components ^5
typescript ^5
packages/sanity-tools-svelte/package.json
@portabletext/svelte 2.0.0
@sanity/ui 1.3.2
@sveltejs/adapter-auto 2.0.1
@sveltejs/kit 1.15.9
@sveltejs/package 2.0.2
@typescript-eslint/eslint-plugin 5.46.1
@typescript-eslint/parser 5.46.1
eslint 8.35.0
eslint-config-prettier 8.6.0
eslint-plugin-svelte3 4.0.0
prettier 2.8.4
prettier-plugin-svelte 2.10.0
publint 0.1.9
sanity 3.9.1
svelte 3.55.0
svelte-check 3.5.2
tslib 2.4.1
typescript 5.1.6
vite 4.5.2
vitest 0.30.1
@portabletext/svelte ^2.0.0
@sanity/ui ^1.3.2
sanity ^3.9.0
svelte ^4
packages/youtube-lite/package.json
@justinribeiro/lite-youtube ^1.4.0
@sveltejs/kit 1.15.9
@sveltejs/package ^2.0.0
@typescript-eslint/eslint-plugin 6.19.0
@typescript-eslint/parser 6.19.0
eslint 8.43.0
eslint-config-prettier 8.8.0
eslint-plugin-svelte3 4.0.0
prettier 2.8.8
prettier-plugin-svelte 2.9.0
svelte 3.55.0
svelte-check 3.5.2
svelte-preprocess 5.0.4
tslib 2.4.1
typescript 5.1.6
vite 4.5.2
svelte ^4
Use code from my website
Would to make this closer to headless (remove unnecessary dependencies e.g. tailwind)
https://github.com/sanity-io/groq-store
Useful tutorial - https://www.sanity.io/guides/remix-run-live-preview
Would enable preview while typing!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.