-
-
Notifications
You must be signed in to change notification settings - Fork 338
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3319 from mathesar-foundation/3311_new_db_conn
New DB connection form
- Loading branch information
Showing
39 changed files
with
943 additions
and
205 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 |
---|---|---|
|
@@ -118,6 +118,8 @@ module.exports = { | |
'DEFAULT', | ||
'Mathesar.org', | ||
'NULL', | ||
'@', | ||
'/', | ||
'*', | ||
'+', | ||
':', | ||
|
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
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
16 changes: 16 additions & 0 deletions
16
mathesar_ui/src/component-library/margin-trim/MarginTrim.svelte
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,16 @@ | ||
<!-- | ||
@component Trims the outer margins of its children. | ||
--> | ||
|
||
<div class="margin-trim"> | ||
<slot /> | ||
</div> | ||
|
||
<style> | ||
.margin-trim > :first-child { | ||
margin-top: 0; | ||
} | ||
.margin-trim > :last-child { | ||
margin-bottom: 0; | ||
} | ||
</style> |
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,32 @@ | ||
<script lang="ts"> | ||
import type { SvelteComponent } from 'svelte'; | ||
import MarginTrim from '@mathesar-component-library-dir/margin-trim/MarginTrim.svelte'; | ||
import type { ComponentWithProps } from '@mathesar-component-library-dir/types'; | ||
import RenderComponentWithProps from './RenderComponentWithProps.svelte'; | ||
type T = $$Generic<SvelteComponent>; | ||
export let arg: string | string[] | ComponentWithProps<T> | undefined = | ||
undefined; | ||
</script> | ||
|
||
{#if arg === undefined} | ||
{''} | ||
{:else if typeof arg === 'string'} | ||
{arg} | ||
{:else if Array.isArray(arg)} | ||
{#if arg.length === 0} | ||
{''} | ||
{:else if arg.length === 1} | ||
{arg[0]} | ||
{:else} | ||
<MarginTrim> | ||
{#each arg as paragraph} | ||
<p>{paragraph}</p> | ||
{/each} | ||
</MarginTrim> | ||
{/if} | ||
{:else} | ||
<RenderComponentWithProps componentWithProps={arg} /> | ||
{/if} |
Oops, something went wrong.