-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:notifo-io/notifo
- Loading branch information
Showing
56 changed files
with
1,579 additions
and
592 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
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
34 changes: 34 additions & 0 deletions
34
backend/src/Notifo/Areas/Api/Controllers/ChannelTemplates/Dtos/TemplatePropertyDto.cs
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,34 @@ | ||
// ========================================================================== | ||
// Notifo.io | ||
// ========================================================================== | ||
// Copyright (c) Sebastian Stehle | ||
// All rights reserved. Licensed under the MIT license. | ||
// ========================================================================== | ||
|
||
using Notifo.Domain.Liquid; | ||
using Notifo.Infrastructure.Reflection; | ||
|
||
namespace Notifo.Areas.Api.Controllers.ChannelTemplates.Dtos; | ||
|
||
public sealed class TemplatePropertyDto | ||
{ | ||
/// <summary> | ||
/// The property path. | ||
/// </summary> | ||
public string Path { get; set; } | ||
|
||
/// <summary> | ||
/// The data ty. | ||
/// </summary> | ||
public LiquidPropertyType Type { get; set; } | ||
|
||
/// <summary> | ||
/// The optional description. | ||
/// </summary> | ||
public string? Description { get; set; } | ||
|
||
public static TemplatePropertyDto FromDomainObject(LiquidProperty source) | ||
{ | ||
return SimpleMapper.Map(source, new TemplatePropertyDto()); | ||
} | ||
} |
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
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,28 @@ | ||
/* | ||
* Notifo.io | ||
* | ||
* @license | ||
* Copyright (c) Sebastian Stehle. All rights reserved. | ||
*/ | ||
|
||
import type { Meta, StoryObj } from '@storybook/react'; | ||
import * as React from 'react'; | ||
import { CodeEditor } from './CodeEditor'; | ||
|
||
const meta: Meta<typeof CodeEditor> = { | ||
component: CodeEditor, | ||
render: args => { | ||
// eslint-disable-next-line react-hooks/rules-of-hooks | ||
const [value, setValue] = React.useState('Code'); | ||
|
||
return ( | ||
<CodeEditor {...args} value={value} onChange={setValue} /> | ||
); | ||
|
||
}, | ||
}; | ||
|
||
export default meta; | ||
type Story = StoryObj<typeof CodeEditor>; | ||
|
||
export const Default: Story = {}; |
Oops, something went wrong.