Skip to content

Commit 0feca1e

Browse files
authored
Merge pull request #1 from MADE-Apps/feature/uno-split
Migrating Uno components from MADE.NET
2 parents 9635182 + 2f8d9a7 commit 0feca1e

File tree

207 files changed

+13371
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

207 files changed

+13371
-2
lines changed

.editorconfig

Lines changed: 464 additions & 0 deletions
Large diffs are not rendered by default.

.gitattributes

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
###############################################################################
2+
# Set default behavior to automatically normalize line endings.
3+
###############################################################################
4+
* text=auto
5+
6+
###############################################################################
7+
# Set default behavior for command prompt diff.
8+
#
9+
# This is need for earlier builds of msysgit that does not have it on by
10+
# default for csharp files.
11+
# Note: This is only used by command line
12+
###############################################################################
13+
#*.cs diff=csharp
14+
15+
###############################################################################
16+
# Set the merge driver for project and solution files
17+
#
18+
# Merging from the command prompt will add diff markers to the files if there
19+
# are conflicts (Merging from VS is not affected by the settings below, in VS
20+
# the diff markers are never inserted). Diff markers may cause the following
21+
# file extensions to fail to load in VS. An alternative would be to treat
22+
# these files as binary and thus will always conflict and require user
23+
# intervention with every merge. To do so, just uncomment the entries below
24+
###############################################################################
25+
#*.sln merge=binary
26+
#*.csproj merge=binary
27+
#*.vbproj merge=binary
28+
#*.vcxproj merge=binary
29+
#*.vcproj merge=binary
30+
#*.dbproj merge=binary
31+
#*.fsproj merge=binary
32+
#*.lsproj merge=binary
33+
#*.wixproj merge=binary
34+
#*.modelproj merge=binary
35+
#*.sqlproj merge=binary
36+
#*.wwaproj merge=binary
37+
38+
###############################################################################
39+
# behavior for image files
40+
#
41+
# image files are treated as binary by default.
42+
###############################################################################
43+
#*.jpg binary
44+
#*.png binary
45+
#*.gif binary
46+
47+
###############################################################################
48+
# diff behavior for common document formats
49+
#
50+
# Convert binary document formats to text before diffing them. This feature
51+
# is only available from the command line. Turn it on by uncommenting the
52+
# entries below.
53+
###############################################################################
54+
#*.doc diff=astextplain
55+
#*.DOC diff=astextplain
56+
#*.docx diff=astextplain
57+
#*.DOCX diff=astextplain
58+
#*.dot diff=astextplain
59+
#*.DOT diff=astextplain
60+
#*.pdf diff=astextplain
61+
#*.PDF diff=astextplain
62+
#*.rtf diff=astextplain
63+
#*.RTF diff=astextplain

.github/CODEOWNERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# These owners will be the default owners for everything in the repo.
2+
* @MADE-Apps/core-team

.github/FUNDING.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# These are supported funding model platforms
2+
3+
github: [jamesmcroft]
4+
patreon: # Replace with a single Patreon username
5+
open_collective: # Replace with a single Open Collective username
6+
ko_fi: # Replace with a single Ko-fi username
7+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
liberapay: # Replace with a single Liberapay username
10+
issuehunt: # Replace with a single IssueHunt username
11+
otechie: # Replace with a single Otechie username
12+
custom: ['buymeacoffee.com/jamesmcroft']

.github/ISSUE_TEMPLATE/bug.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Bug
2+
description: Log a bug to help us improve
3+
title: "[Bug] "
4+
labels: [bug]
5+
body:
6+
- type: textarea
7+
validations:
8+
required: true
9+
attributes:
10+
label: Describe the bug
11+
description: Please describe below the details of the issue and steps taken to reproduce.
12+
- type: textarea
13+
attributes:
14+
label: What is the expected behavior?
15+
description: Please describe below what you expected to happen.
16+
- type: dropdown
17+
attributes:
18+
label: Package
19+
options:
20+
- "UI"
21+
- "UI.Controls.DropDownList"
22+
- "UI.Controls.FilePicker"
23+
- "UI.Controls.Validator"
24+
- "UI.Styling"
25+
- "UI.ViewManagement"
26+
- "UI.Views.Dialogs"
27+
- "UI.Views.Navigation"
28+
- "UI.Views.Navigation.Mvvm"
29+
- type: textarea
30+
attributes:
31+
label: Other information
32+
description: Please provide any additional information, links, screenshots, or projects with reproduced issues below if applicable

.github/ISSUE_TEMPLATE/feature.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Feature
2+
description: Suggest a new feature or idea
3+
title: "[Feature] "
4+
labels: [feature-request]
5+
body:
6+
- type: textarea
7+
validations:
8+
required: true
9+
attributes:
10+
label: Describe the feature
11+
description: Please describe below a summary of your feature request.
12+
- type: textarea
13+
validations:
14+
required: true
15+
attributes:
16+
label: Rationale for the feature
17+
description: Please describe a list of reasons why the feature should be added.
18+
- type: textarea
19+
attributes:
20+
label: Scope of the feature
21+
description: Please describe a list of must, should, could, and won't capabilities for the feature.
22+
- type: textarea
23+
attributes:
24+
label: Open questions
25+
description: Please provide any questions that you may have around this feature that are not currently answered.
26+
- type: textarea
27+
attributes:
28+
label: Other information
29+
description: Please provide any additional information, links, screenshots, or samples below if applicable.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
## Fixes #
2+
<!-- Add the issue ID after the '#' to automatically close the issue once the PR is merged -->
3+
4+
<!-- Please provide a description below of the changes made and how it has been tested -->
5+
6+
## PR checklist
7+
8+
- [ ] Samples have been added/updated (where applicable)
9+
- [ ] Tests have been added/updated (where applicable) and pass
10+
- [ ] Documentation has been added/updated for changes
11+
- [ ] Code styling has been met on new source file changes
12+
- [ ] Contains **NO** breaking changes
13+
14+
<!-- If a breaking change has been made, please provide a detailed description below of the impact and the migration path -->
15+
16+
## Other information
17+
<!-- Please provide any additional information, links, or screenshots below if applicable -->

.github/dependabot.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: nuget
4+
directory: "/"
5+
schedule:
6+
interval: daily
7+
open-pull-requests-limit: 10

.github/workflows/ci.yml

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
tags:
6+
- v*
7+
branches:
8+
- main
9+
paths:
10+
- src/**
11+
- samples/**
12+
- tests/**
13+
- build/**
14+
- .github/workflows/ci.yml
15+
- global.json
16+
pull_request:
17+
branches:
18+
- main
19+
paths:
20+
- src/**
21+
- samples/**
22+
- tests/**
23+
- build/**
24+
- .github/workflows/ci.yml
25+
- global.json
26+
workflow_dispatch:
27+
28+
jobs:
29+
build:
30+
31+
env:
32+
BUILD_CONFIG: 'Release'
33+
SOLUTION: 'MADE-Uno.NoSamples.slnf'
34+
35+
runs-on: windows-latest
36+
37+
steps:
38+
- uses: actions/checkout@v2
39+
40+
- name: Get Build Version
41+
run: |
42+
Import-Module .\build\GetBuildVersion.psm1
43+
Write-Host $Env:GITHUB_REF
44+
$version = GetBuildVersion -VersionString $Env:GITHUB_REF
45+
echo "BUILD_VERSION=$version" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
46+
shell: pwsh
47+
48+
- name: Setup .NET 5.0
49+
uses: actions/setup-dotnet@v1
50+
with:
51+
dotnet-version: 5.0.x
52+
53+
- name: Setup .NET 6.0
54+
uses: actions/setup-dotnet@v1
55+
with:
56+
dotnet-version: 6.0.x
57+
58+
- name: Setup NuGet
59+
uses: NuGet/setup-nuget@v1.0.5
60+
61+
- name: Restore dependencies
62+
run: nuget restore $SOLUTION
63+
64+
- name: Setup MSBuild
65+
uses: microsoft/setup-msbuild@v1.0.2
66+
67+
- name: Build
68+
run: msbuild $env:SOLUTION /p:Configuration=$env:BUILD_CONFIG /p:Platform="Any CPU" -p:Version=$env:BUILD_VERSION
69+
70+
- name: Run tests
71+
run: dotnet test /p:Configuration=$env:BUILD_CONFIG /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura --no-restore --no-build --verbosity normal
72+
73+
- name: Publish
74+
if: startsWith(github.ref, 'refs/tags/v')
75+
run: nuget push **\*.nupkg -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{secrets.NUGET_API_KEY}}

.github/workflows/docs.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Docs
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- src/**
9+
- docs/**
10+
- .github/workflows/docs.yml
11+
pull_request:
12+
branches:
13+
- main
14+
paths:
15+
- docs/**
16+
- .github/workflows/docs.yml
17+
workflow_dispatch:
18+
19+
jobs:
20+
generate-docs:
21+
22+
runs-on: windows-latest
23+
24+
steps:
25+
- uses: actions/checkout@v2
26+
27+
- name: Setup .NET 5.0
28+
uses: actions/setup-dotnet@v1
29+
with:
30+
dotnet-version: 5.0.x
31+
32+
- name: Setup .NET 6.0
33+
uses: actions/setup-dotnet@v1
34+
with:
35+
dotnet-version: 6.0.x
36+
37+
- name: Setup DocFX
38+
uses: crazy-max/ghaction-chocolatey@v1
39+
with:
40+
args: install docfx
41+
42+
- name: DocFX Build
43+
working-directory: docs
44+
run: docfx .\docfx.json
45+
continue-on-error: false
46+
47+
- name: Publish
48+
if: github.event_name == 'push'
49+
uses: peaceiris/actions-gh-pages@v3
50+
with:
51+
github_token: ${{ secrets.GITHUB_TOKEN }}
52+
publish_dir: docs/_site
53+
force_orphan: true

0 commit comments

Comments
 (0)