Skip to content

Commit

Permalink
merge master
Browse files Browse the repository at this point in the history
  • Loading branch information
hey-shrey committed Sep 11, 2022
1 parent b538024 commit 6dc71ba
Show file tree
Hide file tree
Showing 6 changed files with 2,312 additions and 1,748 deletions.
214 changes: 214 additions & 0 deletions .svelte-kit/ambient.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,214 @@

// this file is generated — do not edit it


/// <reference types="@sveltejs/kit" />

/**
* Environment variables [loaded by Vite](https://vitejs.dev/guide/env-and-mode.html#env-files) from `.env` files and `process.env`. Like [`$env/dynamic/private`](https://kit.svelte.dev/docs/modules#$env-dynamic-private), this module cannot be imported into client-side code. This module only includes variables that _do not_ begin with [`config.kit.env.publicPrefix`](https://kit.svelte.dev/docs/configuration#kit-env-publicprefix).
*
* _Unlike_ [`$env/dynamic/private`](https://kit.svelte.dev/docs/modules#$env-dynamic-private), the values exported from this module are statically injected into your bundle at build time, enabling optimisations like dead code elimination.
*
* ```ts
* import { API_KEY } from '$env/static/private';
* ```
*
* Note that all environment variables referenced in your code should be declared (for example in an `.env` file), even if they don't have a value until the app is deployed:
*
* ```
* MY_FEATURE_FLAG=""
* ```
*
* You can override `.env` values from the command line like so:
*
* ```bash
* MY_FEATURE_FLAG="enabled" npm run dev
* ```
*/
declare module '$env/static/private' {
export const NVM_INC: string;
export const MANPATH: string;
export const TERM_PROGRAM: string;
export const NODE: string;
export const INIT_CWD: string;
export const NVM_CD_FLAGS: string;
export const TERM: string;
export const SHELL: string;
export const npm_config_metrics_registry: string;
export const HOMEBREW_REPOSITORY: string;
export const TMPDIR: string;
export const npm_config_global_prefix: string;
export const TERM_PROGRAM_VERSION: string;
export const npm_package_optional: string;
export const COLOR: string;
export const TERM_SESSION_ID: string;
export const npm_config_noproxy: string;
export const npm_config_local_prefix: string;
export const ZSH: string;
export const NVM_DIR: string;
export const USER: string;
export const COMMAND_MODE: string;
export const npm_config_globalconfig: string;
export const npm_package_peer: string;
export const SSH_AUTH_SOCK: string;
export const __CF_USER_TEXT_ENCODING: string;
export const npm_execpath: string;
export const PAGER: string;
export const npm_package_integrity: string;
export const LSCOLORS: string;
export const PATH: string;
export const npm_package_json: string;
export const _: string;
export const npm_config_userconfig: string;
export const npm_config_init_module: string;
export const __CFBundleIdentifier: string;
export const npm_command: string;
export const PWD: string;
export const npm_lifecycle_event: string;
export const EDITOR: string;
export const npm_package_name: string;
export const ITERM_PROFILE: string;
export const XPC_FLAGS: string;
export const npm_package_engines_node: string;
export const npm_config_node_gyp: string;
export const npm_package_dev: string;
export const npm_package_version: string;
export const XPC_SERVICE_NAME: string;
export const npm_package_resolved: string;
export const SHLVL: string;
export const HOME: string;
export const COLORFGBG: string;
export const LC_TERMINAL_VERSION: string;
export const HOMEBREW_PREFIX: string;
export const npm_package_dev_optional: string;
export const ITERM_SESSION_ID: string;
export const npm_config_cache: string;
export const LESS: string;
export const LOGNAME: string;
export const npm_lifecycle_script: string;
export const LC_CTYPE: string;
export const NVM_BIN: string;
export const npm_config_user_agent: string;
export const INFOPATH: string;
export const HOMEBREW_CELLAR: string;
export const LC_TERMINAL: string;
export const npm_node_execpath: string;
export const npm_config_prefix: string;
export const COLORTERM: string;
}

/**
* Similar to [`$env/static/private`](https://kit.svelte.dev/docs/modules#$env-static-private), except that it only includes environment variables that begin with [`config.kit.env.publicPrefix`](https://kit.svelte.dev/docs/configuration#kit-env-publicprefix) (which defaults to `PUBLIC_`), and can therefore safely be exposed to client-side code.
*
* Values are replaced statically at build time.
*
* ```ts
* import { PUBLIC_BASE_URL } from '$env/static/public';
* ```
*/
declare module '$env/static/public' {

}

/**
* This module provides access to runtime environment variables, as defined by the platform you're running on. For example if you're using [`adapter-node`](https://github.com/sveltejs/kit/tree/master/packages/adapter-node) (or running [`vite preview`](https://kit.svelte.dev/docs/cli)), this is equivalent to `process.env`. This module only includes variables that _do not_ begin with [`config.kit.env.publicPrefix`](https://kit.svelte.dev/docs/configuration#kit-env-publicprefix).
*
* This module cannot be imported into client-side code.
*
* ```ts
* import { env } from '$env/dynamic/private';
* console.log(env.DEPLOYMENT_SPECIFIC_VARIABLE);
* ```
*
* > In `dev`, `$env/dynamic` always includes environment variables from `.env`. In `prod`, this behavior will depend on your adapter.
*/
declare module '$env/dynamic/private' {
export const env: {
NVM_INC: string;
MANPATH: string;
TERM_PROGRAM: string;
NODE: string;
INIT_CWD: string;
NVM_CD_FLAGS: string;
TERM: string;
SHELL: string;
npm_config_metrics_registry: string;
HOMEBREW_REPOSITORY: string;
TMPDIR: string;
npm_config_global_prefix: string;
TERM_PROGRAM_VERSION: string;
npm_package_optional: string;
COLOR: string;
TERM_SESSION_ID: string;
npm_config_noproxy: string;
npm_config_local_prefix: string;
ZSH: string;
NVM_DIR: string;
USER: string;
COMMAND_MODE: string;
npm_config_globalconfig: string;
npm_package_peer: string;
SSH_AUTH_SOCK: string;
__CF_USER_TEXT_ENCODING: string;
npm_execpath: string;
PAGER: string;
npm_package_integrity: string;
LSCOLORS: string;
PATH: string;
npm_package_json: string;
_: string;
npm_config_userconfig: string;
npm_config_init_module: string;
__CFBundleIdentifier: string;
npm_command: string;
PWD: string;
npm_lifecycle_event: string;
EDITOR: string;
npm_package_name: string;
ITERM_PROFILE: string;
XPC_FLAGS: string;
npm_package_engines_node: string;
npm_config_node_gyp: string;
npm_package_dev: string;
npm_package_version: string;
XPC_SERVICE_NAME: string;
npm_package_resolved: string;
SHLVL: string;
HOME: string;
COLORFGBG: string;
LC_TERMINAL_VERSION: string;
HOMEBREW_PREFIX: string;
npm_package_dev_optional: string;
ITERM_SESSION_ID: string;
npm_config_cache: string;
LESS: string;
LOGNAME: string;
npm_lifecycle_script: string;
LC_CTYPE: string;
NVM_BIN: string;
npm_config_user_agent: string;
INFOPATH: string;
HOMEBREW_CELLAR: string;
LC_TERMINAL: string;
npm_node_execpath: string;
npm_config_prefix: string;
COLORTERM: string;
[key: string]: string | undefined;
}
}

/**
* Similar to [`$env/dynamic/private`](https://kit.svelte.dev/docs/modules#$env-dynamic-private), but only includes variables that begin with [`config.kit.env.publicPrefix`](https://kit.svelte.dev/docs/configuration#kit-env-publicprefix) (which defaults to `PUBLIC_`), and can therefore safely be exposed to client-side code.
*
* Note that public dynamic environment variables must all be sent from the server to the client, causing larger network requests — when possible, use `$env/static/public` instead.
*
* ```ts
* import { env } from '$env/dynamic/public';
* console.log(env.PUBLIC_DEPLOYMENT_SPECIFIC_VARIABLE);
* ```
*/
declare module '$env/dynamic/public' {
export const env: {
[key: string]: string | undefined;
}
}
13 changes: 13 additions & 0 deletions .svelte-kit/generated/client-manifest.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
export { matchers } from './client-matchers.js';

export const nodes = [];

export const server_loads = [];

export const dictionary = {

};

export const hooks = {
handleError: (({ error }) => { console.error(error); return { message: 'Internal Error' }; }),
};
1 change: 1 addition & 0 deletions .svelte-kit/generated/client-matchers.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const matchers = {};
53 changes: 53 additions & 0 deletions .svelte-kit/generated/root.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<!-- This file is generated by @sveltejs/kit — do not edit it! -->
<script>
import { setContext, afterUpdate, onMount } from 'svelte';
import { browser } from '$app/environment';
// stores
export let stores;
export let page;
export let components;
export let form;
export let data_0 = null;
export let data_1 = null;
if (!browser) {
setContext('__svelte__', stores);
}
$: stores.page.set(page);
afterUpdate(stores.page.notify);
let mounted = false;
let navigated = false;
let title = null;
onMount(() => {
const unsubscribe = stores.page.subscribe(() => {
if (mounted) {
navigated = true;
title = document.title || 'untitled page';
}
});
mounted = true;
return unsubscribe;
});
</script>

{#if components[1]}
<svelte:component this={components[0]} data={data_0}>
<svelte:component this={components[1]} data={data_1} {form} />
</svelte:component>
{:else}
<svelte:component this={components[0]} data={data_0} {form} />
{/if}

{#if mounted}
<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px">
{#if navigated}
{title}
{/if}
</div>
{/if}
45 changes: 45 additions & 0 deletions .svelte-kit/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"compilerOptions": {
"baseUrl": "..",
"paths": {
"$lib": [
"src/lib"
],
"$lib/*": [
"src/lib/*"
]
},
"rootDirs": [
"..",
"./types"
],
"importsNotUsedAsValues": "error",
"isolatedModules": true,
"preserveValueImports": true,
"lib": [
"esnext",
"DOM",
"DOM.Iterable"
],
"moduleResolution": "node",
"module": "esnext",
"target": "esnext"
},
"include": [
"ambient.d.ts",
"../vite.config.ts",
"../src/**/*.js",
"../src/**/*.ts",
"../src/**/*.svelte",
"../src/**/*.js",
"../src/**/*.ts",
"../src/**/*.svelte",
"../tests/**/*.js",
"../tests/**/*.ts",
"../tests/**/*.svelte"
],
"exclude": [
"../node_modules/**",
"./[!ambient.d.ts]**"
]
}
Loading

0 comments on commit 6dc71ba

Please sign in to comment.