Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial release #1

Merged
merged 20 commits into from
Nov 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ body:
- type: input
id: "PackageVersion"
attributes:
label: "Which jcdcdev.Umbraco.BackOfficeOrganiser version are you using?"
label: "Which Umbraco.Community.BackOfficeOrganiser version are you using?"
description: "Leave blank if you're not sure: the latest version will be assumed."
validations:
required: false
Expand Down
53 changes: 44 additions & 9 deletions .github/README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,48 @@
# jcdcdev.Umbraco.BackOfficeOrganiser
# Umbraco.Community.BackOfficeOrganiser

[![Downloads](https://img.shields.io/nuget/dt/jcdcdev.Umbraco.BackOfficeOrganiser?color=cc9900)](https://www.nuget.org/packages/jcdcdev.Umbraco.BackOfficeOrganiser/)
[![NuGet](https://img.shields.io/nuget/vpre/jcdcdev.Umbraco.BackOfficeOrganiser?color=0273B3)](https://www.nuget.org/packages/jcdcdev.Umbraco.BackOfficeOrganiser)
[![GitHub license](https://img.shields.io/github/license/jcdcdev/jcdcdev.Umbraco.BackOfficeOrganiser?color=8AB803)](../LICENSE)
[![Downloads](https://img.shields.io/nuget/dt/Umbraco.Community.BackOfficeOrganiser?color=cc9900)](https://www.nuget.org/packages/Umbraco.Community.BackOfficeOrganiser/)
[![NuGet](https://img.shields.io/nuget/vpre/Umbraco.Community.BackOfficeOrganiser?color=0273B3)](https://www.nuget.org/packages/Umbraco.Community.BackOfficeOrganiser)
[![GitHub license](https://img.shields.io/github/license/jcdcdev/Umbraco.Community.BackOfficeOrganiser?color=8AB803)](../LICENSE)

Is your Backoffice a bit untidy?
Is your Backoffice a bit untidy?

- Single-click organiser for
- Data Types
- Document Types
- Media Types
- Member Types
- Data Types
- Document Types
- Media Types
- Member Types

<img alt="A screenshot of the BackOffice Organiser in action" src="https://raw.githubusercontent.com/jcdcdev/Umbraco.Community.BackOfficeOrganiser/main/docs/screenshots/backoffice.png" />

## Quick Start

- Go to the backoffice
- Click `Back Office Organiser`
- Select the types you wish to organise
- Click submit and confirm
- Refresh your page and enjoy a cleaner backoffice 😀

## Configuration
Add the following to your `appsettings.json` file

```JSON
"BackOfficeOrganiser": {
"DataTypes": {
"InternalFolderName": "Internal",
"ThirdPartyFolderName": "Third Party",
"CustomFolderName": "Custom"
}
}
```

## Extending

It is possible to add your own "organise actions". Documentation ComingSoon™️

## Contributing

Contributions to this package are most welcome! Please read the [Contributing Guidelines](CONTRIBUTING.md).

## Acknowledgments (thanks!)

- LottePitcher - [opinionated-package-starter](https://github.com/LottePitcher/opinionated-package-starter)
20 changes: 10 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
name: Build
on:
pull_request:
branches: "*"
workflow_dispatch:
jobs:
call-workflow-passing-data:
build:
permissions:
contents: write
uses: jcdcdev/jcdcdev.Github.UmbracoSimpleDeploy/.github/workflows/build-release-template.yml@main
with:
config-path: .github/labeler.yml
project_name: 'jcdcdev.Umbraco.BackOfficeOrganiser'
artifact_name: 'jcdcdev.Umbraco.BackOfficeOrganiser'
project_path: './src/jcdcdev.Umbraco.BackOfficeOrganiser/jcdcdev.Umbraco.BackOfficeOrganiser.csproj'
npm_enabled: true
npm_working_dir: './src/jcdcdev.Umbraco.BackOfficeOrganiser.Client/'
npm_run_command: 'build'
project-name: 'Umbraco.Community.BackOfficeOrganiser'
project-path: './src/Umbraco.Community.BackOfficeOrganiser/Umbraco.Community.BackOfficeOrganiser.csproj'
npm-enabled: true
npm-working-dir: './src/Umbraco.Community.BackOfficeOrganiser.Client/'
npm-run-command: 'build'
deploy: false
secrets:
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
nuget-api-key: ${{ secrets.NUGET_API_KEY }}
26 changes: 13 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
name: Release
on:
pull_request:
branches: "*"
types: [closed]
branches: "main"
types: [ closed ]
workflow_dispatch:
jobs:
call-workflow-passing-data:
uses: jcdcdev/jcdcdev.Github.UmbracoSimpleDeploy/.github/workflows/reusable-workflow.yml@main
build_release:
permissions:
contents: write
uses: jcdcdev/jcdcdev.Github.UmbracoSimpleDeploy/.github/workflows/build-release-template.yml@main
with:
config-path: .github/labeler.yml
project_name: 'jcdcdev.Umbraco.BackOfficeOrganiser'
artifact_name: 'jcdcdev.Umbraco.BackOfficeOrganiser'
project_path: './src/jcdcdev.Umbraco.BackOfficeOrganiser/jcdcdev.Umbraco.BackOfficeOrganiser.csproj'
npm_enabled: true
npm_working_dir: './src/jcdcdev.Umbraco.BackOfficeOrganiser.Client/'
npm_run_command: 'build'
project-name: 'Umbraco.Community.BackOfficeOrganiser'
project-path: './src/Umbraco.Community.BackOfficeOrganiser/Umbraco.Community.BackOfficeOrganiser.csproj'
npm-enabled: true
npm-working-dir: './src/Umbraco.Community.BackOfficeOrganiser.Client/'
npm-run-command: 'build'
deploy: true
secrets:
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
nuget-api-key: ${{ secrets.NUGET_API_KEY }}
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -355,5 +355,5 @@ MigrationBackup/
# Rider
src/.idea
*.sqlite.db*
/src/jcdcdev.Umbraco.BackOfficeOrganiser/.idea/
/src/jcdcdev.Umbraco.BackOfficeOrganiser/wwwroot/App_Plugins/jcdcdev.Umbraco.BackOfficeOrganiser/dist
/src/Umbraco.Community.BackOfficeOrganiser/.idea/
/src/Umbraco.Community.BackOfficeOrganiser/wwwroot/App_Plugins/Umbraco.Community.BackOfficeOrganiser/dist
18 changes: 9 additions & 9 deletions docs/README_nuget.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# jcdcdev.Umbraco.BackOfficeOrganiser
# Umbraco.Community.BackOfficeOrganiser

[![Downloads](https://img.shields.io/nuget/dt/jcdcdev.Umbraco.BackOfficeOrganiser?color=cc9900)](https://www.nuget.org/packages/jcdcdev.Umbraco.BackOfficeOrganiser/)
[![NuGet](https://img.shields.io/nuget/vpre/jcdcdev.Umbraco.BackOfficeOrganiser?color=0273B3)](https://www.nuget.org/packages/jcdcdev.Umbraco.BackOfficeOrganiser)
[![GitHub license](https://img.shields.io/github/license/jcdcdev/jcdcdev.Umbraco.BackOfficeOrganiser?color=8AB803)](https://github.com/jcdcdev/jcdcdev.Umbraco.BackOfficeOrganiser/blob/main/LICENSE)
[![Downloads](https://img.shields.io/nuget/dt/Umbraco.Community.BackOfficeOrganiser?color=cc9900)](https://www.nuget.org/packages/Umbraco.Community.BackOfficeOrganiser/)
[![NuGet](https://img.shields.io/nuget/vpre/Umbraco.Community.BackOfficeOrganiser?color=0273B3)](https://www.nuget.org/packages/Umbraco.Community.BackOfficeOrganiser)
[![GitHub license](https://img.shields.io/github/license/jcdcdev/Umbraco.Community.BackOfficeOrganiser?color=8AB803)](https://github.com/jcdcdev/Umbraco.Community.BackOfficeOrganiser/blob/main/LICENSE)

Is your Backoffice a bit untidy?
Is your Backoffice a bit untidy?

- Single-click organiser for
- Data Types
- Document Types
- Media Types
- Member Types
- Data Types
- Document Types
- Media Types
- Member Types
Binary file added docs/screenshots/backoffice.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions src/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[*]
max_line_length = 200
indent_style = tab
indent_size = 4
tab_width = 4

# ReSharper properties
resharper_braces_redundant = false
resharper_csharp_indent_style = space
resharper_csharp_wrap_after_declaration_lpar = true
resharper_csharp_wrap_parameters_style = chop_if_long
resharper_instance_members_qualify_declared_in = base_class
resharper_method_or_operator_body = expression_body
resharper_place_expr_method_on_single_line = true
resharper_braces_for_ifelse = required
24 changes: 24 additions & 0 deletions src/Umbraco.Community.BackOfficeOrganiser.Client/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
16 changes: 16 additions & 0 deletions src/Umbraco.Community.BackOfficeOrganiser.Client/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + Lit + TS</title>
<link rel="stylesheet" href="./src/index.css" />
<script type="module" src="/src/backoffice-organiser.ts"></script>
</head>
<body>
<backoffice-organiser>
<h1>Vite + Lit</h1>
</backoffice-organiser>
</body>
</html>
Loading
Loading