mirror of
https://github.com/urbit/shrub.git
synced 2024-12-24 11:24:21 +03:00
Merge branch 'master' into next/npm
This commit is contained in:
commit
ca28bffd62
@ -1,21 +0,0 @@
|
|||||||
::
|
|
||||||
:::: /hoon/css/mar
|
|
||||||
::
|
|
||||||
/? 310
|
|
||||||
=, eyre
|
|
||||||
=, mimes:html
|
|
||||||
|_ mud=@t
|
|
||||||
++ grow :: convert to
|
|
||||||
|% ++ mime [/text/css (as-octs mud)] :: convert to %mime
|
|
||||||
++ elem ;style :: convert to %hymn
|
|
||||||
;- (trip mud)
|
|
||||||
==
|
|
||||||
++ hymn ;html:(head:"{elem}" body)
|
|
||||||
--
|
|
||||||
++ grab
|
|
||||||
|% :: convert from
|
|
||||||
++ mime |=([p=mite q=octs] (@t q.q))
|
|
||||||
++ noun @t :: clam from %noun
|
|
||||||
--
|
|
||||||
++ grad %mime
|
|
||||||
--
|
|
1
pkg/arvo/mar/css.hoon
Symbolic link
1
pkg/arvo/mar/css.hoon
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../../base-dev/mar/css.hoon
|
21
pkg/base-dev/mar/css.hoon
Normal file
21
pkg/base-dev/mar/css.hoon
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
::
|
||||||
|
:::: /hoon/css/mar
|
||||||
|
::
|
||||||
|
/? 310
|
||||||
|
=, eyre
|
||||||
|
=, mimes:html
|
||||||
|
|_ mud=@t
|
||||||
|
++ grow :: convert to
|
||||||
|
|% ++ mime [/text/css (as-octs mud)] :: convert to %mime
|
||||||
|
++ elem ;style :: convert to %hymn
|
||||||
|
;- (trip mud)
|
||||||
|
==
|
||||||
|
++ hymn ;html:(head:"{elem}" body)
|
||||||
|
--
|
||||||
|
++ grab
|
||||||
|
|% :: convert from
|
||||||
|
++ mime |=([p=mite q=octs] (@t q.q))
|
||||||
|
++ noun @t :: clam from %noun
|
||||||
|
--
|
||||||
|
++ grad %mime
|
||||||
|
--
|
1
pkg/garden/mar/css.hoon
Symbolic link
1
pkg/garden/mar/css.hoon
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../../base-dev/mar/css.hoon
|
@ -72,7 +72,6 @@ export const Leap = React.forwardRef(
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const newMatch = getMatch(rawInput);
|
const newMatch = getMatch(rawInput);
|
||||||
|
|
||||||
if (newMatch && rawInput) {
|
if (newMatch && rawInput) {
|
||||||
useLeapStore.setState({ selectedMatch: newMatch });
|
useLeapStore.setState({ selectedMatch: newMatch });
|
||||||
}
|
}
|
||||||
@ -112,7 +111,10 @@ export const Leap = React.forwardRef(
|
|||||||
|
|
||||||
const navigateByInput = useCallback(
|
const navigateByInput = useCallback(
|
||||||
(input: string) => {
|
(input: string) => {
|
||||||
const normalizedValue = input.trim().replace(/(~?[\w^_-]{3,13})\//, '$1/apps/');
|
const normalizedValue = input
|
||||||
|
.trim()
|
||||||
|
.replace('%', '')
|
||||||
|
.replace(/(~?[\w^_-]{3,13})\//, '$1/apps/$1/');
|
||||||
push(`/leap/${menu}/${normalizedValue}`);
|
push(`/leap/${menu}/${normalizedValue}`);
|
||||||
},
|
},
|
||||||
[menu]
|
[menu]
|
||||||
|
@ -8,8 +8,12 @@
|
|||||||
"directory": "pkg/npm/api"
|
"directory": "pkg/npm/api"
|
||||||
},
|
},
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "dist/cjs/index.js",
|
"main": "dist/cjs/index.cjs",
|
||||||
"module": "dist/esm/index.js",
|
"module": "dist/esm/index.js",
|
||||||
|
"exports": {
|
||||||
|
"require": "./dist/cjs/index.cjs",
|
||||||
|
"import": "./dist/esm/index.js"
|
||||||
|
},
|
||||||
"jsdelivr": "dist/urbit-api.min.js",
|
"jsdelivr": "dist/urbit-api.min.js",
|
||||||
"unpkg": "dist/urbit-api.min.js",
|
"unpkg": "dist/urbit-api.min.js",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
|
@ -60,13 +60,13 @@ export default [
|
|||||||
],
|
],
|
||||||
output: [
|
output: [
|
||||||
{
|
{
|
||||||
dir: 'dist/esm',
|
file: 'dist/esm/index.js',
|
||||||
format: 'esm',
|
format: 'esm',
|
||||||
exports: 'named',
|
exports: 'named',
|
||||||
sourcemap: true
|
sourcemap: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
dir: 'dist/cjs',
|
file: 'dist/cjs/index.cjs',
|
||||||
format: 'cjs',
|
format: 'cjs',
|
||||||
exports: 'named',
|
exports: 'named',
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
|
@ -1,6 +1,10 @@
|
|||||||
{
|
{
|
||||||
"name": "@urbit/http-api",
|
"name": "@urbit/http-api",
|
||||||
|
<<<<<<< HEAD
|
||||||
"version": "2.1.2",
|
"version": "2.1.2",
|
||||||
|
=======
|
||||||
|
"version": "2.1.1",
|
||||||
|
>>>>>>> master
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"description": "Library to interact with an Urbit ship over HTTP",
|
"description": "Library to interact with an Urbit ship over HTTP",
|
||||||
"repository": {
|
"repository": {
|
||||||
@ -9,8 +13,12 @@
|
|||||||
"directory": "pkg/npm/http-api"
|
"directory": "pkg/npm/http-api"
|
||||||
},
|
},
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "dist/cjs/index.js",
|
"main": "dist/cjs/index.cjs",
|
||||||
"module": "dist/esm/index.js",
|
"module": "dist/esm/index.js",
|
||||||
|
"exports": {
|
||||||
|
"require": "./dist/cjs/index.cjs",
|
||||||
|
"import": "./dist/esm/index.js"
|
||||||
|
},
|
||||||
"jsdelivr": "dist/urbit-http-api.min.js",
|
"jsdelivr": "dist/urbit-http-api.min.js",
|
||||||
"unpkg": "dist/urbit-http-api.min.js",
|
"unpkg": "dist/urbit-http-api.min.js",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
|
@ -56,13 +56,13 @@ export default [
|
|||||||
],
|
],
|
||||||
output: [
|
output: [
|
||||||
{
|
{
|
||||||
dir: 'dist/esm',
|
file: 'dist/esm/index.js',
|
||||||
format: 'esm',
|
format: 'esm',
|
||||||
exports: 'named',
|
exports: 'named',
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
dir: 'dist/cjs',
|
file: 'dist/cjs/index.cjs',
|
||||||
format: 'cjs',
|
format: 'cjs',
|
||||||
exports: 'named',
|
exports: 'named',
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
|
Loading…
Reference in New Issue
Block a user