More moving stuff around
This commit is contained in:
Vendored
+1
-1
@@ -1,6 +1,6 @@
|
||||
FROM gitpod/workspace-full:latest
|
||||
|
||||
RUN curl -fsSL https://deno.land/x/install/install.sh | sh -s v1.38.5
|
||||
RUN curl -fsSL https://deno.land/x/install/install.sh | sh -s v1.40.4
|
||||
RUN /home/gitpod/.deno/bin/deno completions bash > /home/gitpod/.bashrc.d/90-deno && \
|
||||
echo 'export DENO_INSTALL="/home/gitpod/.deno"' >> /home/gitpod/.bashrc.d/90-deno && \
|
||||
echo 'export PATH="$DENO_INSTALL/bin:$PATH"' >> /home/gitpod/.bashrc.d/90-deno
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
FROM lukechannings/deno:v1.40.3
|
||||
FROM lukechannings/deno:v1.40.4
|
||||
# The volume that will keep the space data
|
||||
|
||||
# Either create a volume:
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
Code that implements `silverbullet` sub commands
|
||||
@@ -0,0 +1 @@
|
||||
SilverBullet-specific code that is shared between server and client
|
||||
+1
-1
@@ -2,7 +2,7 @@ import { YAML } from "./deps.ts";
|
||||
import { INDEX_TEMPLATE, SETTINGS_TEMPLATE } from "./PAGE_TEMPLATES.ts";
|
||||
import { SpacePrimitives } from "./spaces/space_primitives.ts";
|
||||
import { expandPropertyNames } from "../lib/json.ts";
|
||||
import type { BuiltinSettings } from "../web/types.ts";
|
||||
import type { BuiltinSettings } from "../type/web.ts";
|
||||
|
||||
// TODO: This is naive, may be better to use a proper parser
|
||||
const yamlSettingsRegex = /```yaml([^`]+)```/;
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
This folder contains library functions that is generally reusable, not specific to SilverBullet. This code can be used from within plugs or the core code base.
|
||||
This folder contains library functions that is generally reusable, not specific to SilverBullet. This code can be used from within plugs or the core code base. It may move out of this repo at some point.
|
||||
@@ -0,0 +1,4 @@
|
||||
This folder contains two things:
|
||||
|
||||
* Wrappers for `syscall`s to be used by Plugs
|
||||
* Reusablee library code that plugs may find useful
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { FilterOption } from "../../web/types.ts";
|
||||
import type { FilterOption } from "../../type/web.ts";
|
||||
import { UploadFile } from "$type/types.ts";
|
||||
import { syscall } from "../syscall.ts";
|
||||
import type { PageRef } from "$sb/lib/page_ref.ts";
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
build
|
||||
@@ -0,0 +1 @@
|
||||
This folder contains the implementation of SilverBullet's built-in plugs — the plugs that ship with SB itself.
|
||||
@@ -2,7 +2,7 @@ import emojiBlob from "./emoji.json" assert { type: "json" };
|
||||
import type { CompleteEvent } from "$type/types.ts";
|
||||
import { readSetting } from "$sb/lib/settings_page.ts";
|
||||
import { editor } from "$sb/syscalls.ts";
|
||||
import type { EmojiConfig } from "../../web/types.ts";
|
||||
import type { EmojiConfig } from "../../type/web.ts";
|
||||
|
||||
let emojiConfig: EmojiConfig = { aliases: [] };
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ import {
|
||||
} from "./deps.ts";
|
||||
import { AssetBundle } from "../lib/asset_bundle/bundle.ts";
|
||||
import { FileMeta } from "$type/types.ts";
|
||||
import { ShellRequest } from "./rpc.ts";
|
||||
import { ShellRequest } from "../type/rpc.ts";
|
||||
import { SpaceServer, SpaceServerConfig } from "./instance.ts";
|
||||
import { KvPrimitives } from "$lib/data/kv_primitives.ts";
|
||||
import { PrefixedKvPrimitives } from "$lib/data/prefixed_kv_primitives.ts";
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ import { DataStore } from "$lib/data/datastore.ts";
|
||||
import { KvPrimitives } from "$lib/data/kv_primitives.ts";
|
||||
import { DataStoreMQ } from "$lib/data/mq.datastore.ts";
|
||||
import { System } from "$lib/plugos/system.ts";
|
||||
import { BuiltinSettings } from "../web/types.ts";
|
||||
import { BuiltinSettings } from "../type/web.ts";
|
||||
import { JWTIssuer } from "./crypto.ts";
|
||||
import { gitIgnoreCompiler } from "./deps.ts";
|
||||
import { ServerSystem } from "./server_system.ts";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { SpaceServerConfig } from "./instance.ts";
|
||||
import { ShellRequest, ShellResponse } from "./rpc.ts";
|
||||
import { ShellRequest, ShellResponse } from "../type/rpc.ts";
|
||||
|
||||
/**
|
||||
* Configuration via environment variables:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { SysCallMapping } from "../../lib/plugos/system.ts";
|
||||
import { ShellResponse } from "../../server/rpc.ts";
|
||||
import { ShellResponse } from "../../type/rpc.ts";
|
||||
import { ShellBackend } from "../shell_backend.ts";
|
||||
|
||||
export function shellSyscalls(shellBackend: ShellBackend): SysCallMapping {
|
||||
|
||||
+2
-2
@@ -9,7 +9,7 @@ import {
|
||||
syntaxTree,
|
||||
} from "./deps.ts";
|
||||
import { Space } from "../common/space.ts";
|
||||
import { FilterOption } from "./types.ts";
|
||||
import { FilterOption } from "../type/web.ts";
|
||||
import { EventHook } from "../lib/plugos/hooks/event.ts";
|
||||
import { AppCommand } from "$common/hooks/command.ts";
|
||||
import {
|
||||
@@ -18,7 +18,7 @@ import {
|
||||
PathPageNavigator,
|
||||
} from "./navigator.ts";
|
||||
|
||||
import { AppViewState, BuiltinSettings } from "./types.ts";
|
||||
import { AppViewState, BuiltinSettings } from "../type/web.ts";
|
||||
|
||||
import type { AppEvent, CompleteEvent } from "$type/types.ts";
|
||||
import { throttle } from "$lib/async.ts";
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { FilterList } from "./filter.tsx";
|
||||
import { CompletionContext, CompletionResult, featherIcons } from "../deps.ts";
|
||||
import { AppCommand } from "$common/hooks/command.ts";
|
||||
import { BuiltinSettings, FilterOption } from "../types.ts";
|
||||
import { BuiltinSettings, FilterOption } from "../../type/web.ts";
|
||||
import { parseCommand } from "$common/command.ts";
|
||||
|
||||
export function CommandPalette({
|
||||
|
||||
@@ -7,7 +7,7 @@ import {
|
||||
useRef,
|
||||
useState,
|
||||
} from "../deps.ts";
|
||||
import { FilterOption } from "../types.ts";
|
||||
import { FilterOption } from "../../type/web.ts";
|
||||
import { MiniEditor } from "./mini_editor.tsx";
|
||||
import { fuzzySearchAndSort } from "../fuse_search.ts";
|
||||
import { deepEqual } from "$lib/json.ts";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { FilterList } from "./filter.tsx";
|
||||
import { FilterOption } from "../types.ts";
|
||||
import { FilterOption } from "../../type/web.ts";
|
||||
import { CompletionContext, CompletionResult } from "../deps.ts";
|
||||
import { PageMeta } from "../../type/types.ts";
|
||||
import { isFederationPath } from "$sb/lib/resolve.ts";
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { useEffect, useRef } from "../deps.ts";
|
||||
import { Client } from "../client.ts";
|
||||
import { PanelConfig } from "../types.ts";
|
||||
import { PanelConfig } from "../../type/web.ts";
|
||||
import { panelHtml } from "./panel_html.ts";
|
||||
|
||||
export function Panel({
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { CompletionContext, CompletionResult, useEffect } from "../deps.ts";
|
||||
import type { ComponentChildren, FunctionalComponent } from "../deps.ts";
|
||||
import { Notification } from "../types.ts";
|
||||
import { Notification } from "../../type/web.ts";
|
||||
import { FeatherProps } from "https://esm.sh/v99/preact-feather@4.2.1/dist/types";
|
||||
import { MiniEditor } from "./mini_editor.tsx";
|
||||
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ import { FilterList } from "./components/filter.tsx";
|
||||
import { PageNavigator } from "./components/page_navigator.tsx";
|
||||
import { TopBar } from "./components/top_bar.tsx";
|
||||
import reducer from "./reducer.ts";
|
||||
import { Action, AppViewState, initialViewState } from "./types.ts";
|
||||
import { Action, AppViewState, initialViewState } from "../type/web.ts";
|
||||
import {
|
||||
closeSearchPanel,
|
||||
featherIcons,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { FilterOption } from "./types.ts";
|
||||
import { FilterOption } from "../type/web.ts";
|
||||
import { assertEquals } from "$lib/test_deps.ts";
|
||||
import { fuzzySearchAndSort } from "./fuse_search.ts";
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
// @deno-types="https://deno.land/x/fuse@v6.4.1/dist/fuse.d.ts"
|
||||
import Fuse from "https://deno.land/x/fuse@v6.4.1/dist/fuse.esm.min.js";
|
||||
import { FilterOption } from "./types.ts";
|
||||
import { FilterOption } from "../type/web.ts";
|
||||
|
||||
type FuseOption = FilterOption & {
|
||||
baseName: string;
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import { Action, AppViewState } from "./types.ts";
|
||||
import { Action, AppViewState } from "../type/web.ts";
|
||||
|
||||
export default function reducer(
|
||||
state: AppViewState,
|
||||
|
||||
@@ -11,7 +11,7 @@ import {
|
||||
vimGetCm,
|
||||
} from "../deps.ts";
|
||||
import { SysCallMapping } from "$lib/plugos/system.ts";
|
||||
import type { FilterOption } from "../types.ts";
|
||||
import type { FilterOption } from "../../type/web.ts";
|
||||
import { UploadFile } from "$type/types.ts";
|
||||
import { PageRef } from "$sb/lib/page_ref.ts";
|
||||
import { openSearchPanel } from "../deps.ts";
|
||||
|
||||
Reference in New Issue
Block a user