-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* local dmno dev UI * dmno dev ui! * wrapping up local dev ui MVP * use bin placeholder workaround to make dmno usable for dev-ui * finishing cleanup
- Loading branch information
1 parent
47a90ac
commit c3141d7
Showing
117 changed files
with
4,998 additions
and
515 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
"@dmno/encrypted-vault-plugin": patch | ||
"@dmno/astro-integration": patch | ||
"@dmno/remix-integration": patch | ||
"@dmno/vite-integration": patch | ||
"@dmno/1password-plugin": patch | ||
"@dmno/configraph": patch | ||
"dmno": patch | ||
--- | ||
|
||
local dmno dev ui, and related refactoring |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"dmno": patch | ||
--- | ||
|
||
change dmno workspace config file name to `.dmno/workspace.yaml` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
projects: | ||
# all packages in direct subdirs of packages/ | ||
- "packages/*" | ||
|
||
dev: | ||
host: dev.dmno.local | ||
ssl: true | ||
# port: 5666 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
|
||
import { DmnoBaseTypes, defineDmnoService, configPath, NodeEnvType, switchBy, inject } from 'dmno'; | ||
import { OnePasswordDmnoPlugin, OnePasswordTypes } from '@dmno/1password-plugin'; | ||
|
||
|
||
const OnePassSecrets = OnePasswordDmnoPlugin.injectInstance('1pass'); | ||
|
||
// uncomment to show config loading error | ||
// throw new Error('bloop'); | ||
|
||
export default defineDmnoService({ | ||
// name: 'dmno-ui-demo', | ||
settings: { | ||
interceptSensitiveLeakRequests: true, | ||
redactSensitiveLogs: true, | ||
preventClientLeaks: true, | ||
}, | ||
pick: [ | ||
'NODE_ENV' | ||
], | ||
schema: { | ||
NORMAL_NUMBER: { | ||
value: 123, | ||
required: true, | ||
}, | ||
FN_RESOLVER: { | ||
extends: DmnoBaseTypes.number, | ||
summary: 'example of a function resolver', | ||
value: () => DMNO_CONFIG.NORMAL_NUMBER + 456, | ||
}, | ||
SENSITIVE_EXAMPLE: { | ||
value: OnePassSecrets.itemByReference("op://dev test/example/username"), | ||
sensitive: true, | ||
}, | ||
SENSITIVE_COERCED: { | ||
value: 'this\\nis\\nsensitive', | ||
coerce: (val) => val.replace('\\n', '\n'), | ||
sensitive: true, | ||
}, | ||
|
||
EXTRA_SUPER_LONG_NAME_EXAMPLE_FOO_BAR_BIZ_BAZ_BUZ_BING_BONG_BOOP: { | ||
summary: 'example showing a super long name that should be truncated but still show the icons', | ||
value: 'asldkjfhqoiuweyrklajsdhnxbcvmnsdjkhfhqiwuerqolejfhzsjmnvbxjkhfsiudyfrwjkebfmnsdbfkjsdhfiukjwehrkjsdbnfkjbsdkjfbxcmnbvjksdhgfkjweiuryweijkhkjsdbfmnxdbcvkjsdhfjkiweyrkiujhsdjkf' | ||
}, | ||
BRANCH_EXAMPLE: { | ||
value: switchBy('NODE_ENV', { | ||
_default: 'default-val', | ||
staging: 'staging-val', | ||
production: 'production-val', | ||
}) | ||
}, | ||
OBJECT_EXAMPLE: { | ||
extends: DmnoBaseTypes.object({ | ||
child1: { value: 'child-1-val' }, | ||
child2: { value: 'child-2-val' }, | ||
objChild: { | ||
// required: true, | ||
extends: DmnoBaseTypes.object({ | ||
gchild1: { value: 'grandchild!' }, | ||
// gchild2: { value: 'another' }, | ||
}), | ||
} | ||
}) | ||
}, | ||
|
||
// overrides | ||
FROM_DOTENV_OVERRIDE: { | ||
value: 'default', | ||
}, | ||
FROM_SHELL_OVERRIDE: { | ||
value: 'default', | ||
}, | ||
|
||
// errors | ||
REQUIRED_ERROR_EXAMPLE: { | ||
required: true, | ||
// value: 'ok' | ||
}, | ||
VALIDATION_ERROR_EXAMPLE: { | ||
extends: DmnoBaseTypes.string({ startsWith: 'abc', minLength: 8 }), | ||
value: 'xyz123', | ||
}, | ||
COERCION_ERROR_EXAMPLE: { | ||
extends: DmnoBaseTypes.number(), | ||
value: 'not-a-number', | ||
}, | ||
SCHEMA_ERROR_EXAMPLE: { | ||
// value: configPath('bad-entity-id', 'bad-path'), | ||
}, | ||
RESOLUTION_ERROR_EXAMPLE: { | ||
value: OnePassSecrets.itemByReference('badreference'), | ||
}, | ||
// RESOLVER_CRASH_EXAMPLE: { | ||
// value: OnePassSecrets.itemByLink('badlink', 'asdf'), | ||
// } | ||
} | ||
}); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"extends": "dmno/tsconfigs/dmno-folder", | ||
"include": [ | ||
"./**/*.mts", | ||
"./.typegen/global.d.ts" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"name": "dmno-ui-demo", | ||
"version": "1.0.0", | ||
"description": "", | ||
"main": "index.js", | ||
"author": "", | ||
"license": "MIT", | ||
"scripts": { | ||
}, | ||
"devDependencies": { | ||
"@dmno/1password-plugin": "link:../../../packages/plugins/1password", | ||
"dmno": "link:../../../packages/core" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.