diff --git a/.check.exs b/.check.exs index b928a329..eb686e7e 100644 --- a/.check.exs +++ b/.check.exs @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + [ ## all available options with default values (see `mix check` docs for description) # parallel: true, @@ -9,7 +13,8 @@ # {:compiler, false}, {:npm_test, false}, {:gettext, false}, - {:check_formatter, command: "mix spark.formatter --check"} + {:check_formatter, command: "mix spark.formatter --check"}, + {:reuse, command: ["pipx", "run", "reuse", "lint", "-q"]} ## ...or adjusted (e.g. use one-line formatter for more compact credo output) # {:credo, "mix credo --format oneline"}, diff --git a/.credo.exs b/.credo.exs index 565d6cbc..19c0fc71 100644 --- a/.credo.exs +++ b/.credo.exs @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + # This file contains the configuration for Credo and you are probably reading # this after creating it with `mix credo.gen.config`. # diff --git a/.formatter.exs b/.formatter.exs index 350ad400..1dfe1564 100644 --- a/.formatter.exs +++ b/.formatter.exs @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + spark_locals_without_parens = [ accepted_extensions: 1, actor?: 1, diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 597c8ec7..09b96595 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + --- updates: - directory: / diff --git a/.github/workflows/elixir.yml b/.github/workflows/elixir.yml index 4b066961..452ba285 100644 --- a/.github/workflows/elixir.yml +++ b/.github/workflows/elixir.yml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + name: CI on: @@ -11,5 +15,7 @@ on: jobs: ash-ci: uses: ash-project/ash/.github/workflows/ash-ci.yml@main + with: + reuse: true secrets: HEX_API_KEY: ${{ secrets.HEX_API_KEY }} diff --git a/.gitignore b/.gitignore index 912ac6ac..91d2c143 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + # The directory Mix will write compiled artifacts to. /_build/ diff --git a/.tool-versions b/.tool-versions index 214565ab..86d1eab9 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1,2 +1,3 @@ erlang 27.1.2 elixir 1.18.4 +pipx 1.8.0 diff --git a/.tool-versions.license b/.tool-versions.license new file mode 100644 index 00000000..815664f3 --- /dev/null +++ b/.tool-versions.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2020 Zach Daniel + +SPDX-License-Identifier: MIT diff --git a/CHANGELOG.md b/CHANGELOG.md index b7e1f275..288903bf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ + + # Change Log All notable changes to this project will be documented in this file. diff --git a/LICENSES/Apache-2.0.txt b/LICENSES/Apache-2.0.txt new file mode 100644 index 00000000..137069b8 --- /dev/null +++ b/LICENSES/Apache-2.0.txt @@ -0,0 +1,73 @@ +Apache License +Version 2.0, January 2004 +http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + +"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. + +"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. + +"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. + +"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. + +"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. + +"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. + +"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). + +"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. + +"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." + +"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: + + (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. + + You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +APPENDIX: How to apply the Apache License to your work. + +To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. + +Copyright [yyyy] [name of copyright owner] + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. diff --git a/LICENSES/MIT.txt b/LICENSES/MIT.txt new file mode 100644 index 00000000..d817195d --- /dev/null +++ b/LICENSES/MIT.txt @@ -0,0 +1,18 @@ +MIT License + +Copyright (c) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and +associated documentation files (the "Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the +following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial +portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT +LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO +EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE +USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/README.md b/README.md index 78671e3f..69ed339a 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,9 @@ + + ![Logo](https://github.com/ash-project/ash/blob/main/logos/cropped-for-header-black-text.png?raw=true#gh-light-mode-only) ![Logo](https://github.com/ash-project/ash/blob/main/logos/cropped-for-header-white-text.png?raw=true#gh-dark-mode-only) @@ -5,6 +11,7 @@ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![Hex version badge](https://img.shields.io/hexpm/v/ash_admin.svg)](https://hex.pm/packages/ash_admin) [![Hexdocs badge](https://img.shields.io/badge/docs-hexdocs-purple)](https://hexdocs.pm/ash_admin) +[![REUSE status](https://api.reuse.software/badge/github.com/ash-project/ash_admin)](https://api.reuse.software/info/github.com/ash-project/ash_admin) # AshAdmin diff --git a/REUSE.toml b/REUSE.toml new file mode 100644 index 00000000..a3244b2c --- /dev/null +++ b/REUSE.toml @@ -0,0 +1,26 @@ +version = 1 + +[[annotations]] +path = ["REUSE.toml", "priv/static/assets/app*"] +SPDX-FileCopyrightText = "2020 Zach Daniel" +SPDX-License-Identifier = "MIT" + +[[annotations]] +path = "assets/vendor/topbar.js" +SPDX-FileCopyrightText = "2021 Buu Nguyen" +SPDX-License-Identifier = "MIT" + +[[annotations]] +path = ["assets/vendor/heroicons/*", "assets/vendor/heroicons/**/*"] +SPDX-FileCopyrightText = "2020 Refactoring UI Inc" +SPDX-License-Identifier = "MIT" + +[[annotations]] +path = "priv/vendor/jsoneditor*" +SPDX-FileCopyrightText = "2011-2021 Jos de Jong" +SPDX-License-Identifier = "Apache-2.0" + +[[annotations]] +path = "priv/vendor/easymde*" +SPDX-FileCopyrightText = ["2015 Sparksuite, Inc", "2017 Jeroen Akkerman"] +SPDX-License-Identifier = "MIT" diff --git a/assets/css/app.css b/assets/css/app.css index 71a77f07..79430ae9 100644 --- a/assets/css/app.css +++ b/assets/css/app.css @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 Zach Daniel + * + * SPDX-License-Identifier: MIT + */ + @import "tailwindcss/base"; @import "tailwindcss/components"; @import "tailwindcss/utilities"; diff --git a/assets/js/app.js b/assets/js/app.js index 5a02fdde..3a1c3233 100644 --- a/assets/js/app.js +++ b/assets/js/app.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2020 Zach Daniel +// +// SPDX-License-Identifier: MIT + import topbar from "../vendor/topbar"; let socketPath = diff --git a/assets/tailwind.config.js b/assets/tailwind.config.js index d2c5a0ac..cca1873a 100644 --- a/assets/tailwind.config.js +++ b/assets/tailwind.config.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2020 Zach Daniel +// +// SPDX-License-Identifier: MIT + // See the Tailwind configuration guide for advanced usage // https://tailwindcss.com/docs/configuration diff --git a/assets/vendor/.DS_Store b/assets/vendor/.DS_Store deleted file mode 100644 index 1d42ad6d..00000000 Binary files a/assets/vendor/.DS_Store and /dev/null differ diff --git a/config/config.exs b/config/config.exs index 53cd51f1..bfbf8755 100644 --- a/config/config.exs +++ b/config/config.exs @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + import Config config :ash, :validate_domain_resource_inclusion?, false diff --git a/dev.exs b/dev.exs index ab0fc9b3..c35c297d 100644 --- a/dev.exs +++ b/dev.exs @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + # Copied/edited from phoenix_live_dashboard # Configures the endpoint Application.put_env(:ash_admin, DemoWeb.Endpoint, diff --git a/dev/changes/record_file_path.ex b/dev/changes/record_file_path.ex index 35d1f980..c23bbe80 100644 --- a/dev/changes/record_file_path.ex +++ b/dev/changes/record_file_path.ex @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule Dev.Changes.RecordFilePath do use Ash.Resource.Change diff --git a/dev/repo.ex b/dev/repo.ex index cc40604c..65f7b008 100644 --- a/dev/repo.ex +++ b/dev/repo.ex @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule Demo.Repo do use AshPostgres.Repo, otp_app: :ash_admin diff --git a/dev/repo/migrations/20210416131903_install_3_extensions.exs.exs b/dev/repo/migrations/20210416131903_install_3_extensions.exs.exs index bf5c34a7..d869549c 100644 --- a/dev/repo/migrations/20210416131903_install_3_extensions.exs.exs +++ b/dev/repo/migrations/20210416131903_install_3_extensions.exs.exs @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule Demo.Repo.Migrations.Install3Extensions do @moduledoc """ Installs any extensions that are mentioned in the repo's `installed_extensions/0` callback diff --git a/dev/repo/migrations/20210416131905_migrate_resources1.exs b/dev/repo/migrations/20210416131905_migrate_resources1.exs index 5010c128..2c037818 100644 --- a/dev/repo/migrations/20210416131905_migrate_resources1.exs +++ b/dev/repo/migrations/20210416131905_migrate_resources1.exs @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule Demo.Repo.Migrations.MigrateResources1 do @moduledoc """ Updates resources based on their most recent snapshots. diff --git a/dev/repo/migrations/20231121062843_add_missing_fields.exs b/dev/repo/migrations/20231121062843_add_missing_fields.exs index d47af9bf..f8635434 100644 --- a/dev/repo/migrations/20231121062843_add_missing_fields.exs +++ b/dev/repo/migrations/20231121062843_add_missing_fields.exs @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule Demo.Repo.Migrations.AddMissingFields do @moduledoc """ Updates resources based on their most recent snapshots. diff --git a/dev/repo/migrations/20231121063220_add_private_and_sensitive_fields.exs b/dev/repo/migrations/20231121063220_add_private_and_sensitive_fields.exs index c2e2b264..c3f28f16 100644 --- a/dev/repo/migrations/20231121063220_add_private_and_sensitive_fields.exs +++ b/dev/repo/migrations/20231121063220_add_private_and_sensitive_fields.exs @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule Demo.Repo.Migrations.AddPrivateAndSensitiveFields do @moduledoc """ Updates resources based on their most recent snapshots. diff --git a/dev/repo/migrations/20240109001354_migrate_resources2.exs b/dev/repo/migrations/20240109001354_migrate_resources2.exs index 47f7d858..ec79219f 100644 --- a/dev/repo/migrations/20240109001354_migrate_resources2.exs +++ b/dev/repo/migrations/20240109001354_migrate_resources2.exs @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule Demo.Repo.Migrations.MigrateResources2 do @moduledoc """ Updates resources based on their most recent snapshots. diff --git a/dev/repo/migrations/20240109001954_migrate_resources3.exs b/dev/repo/migrations/20240109001954_migrate_resources3.exs index d67377eb..e18c3145 100644 --- a/dev/repo/migrations/20240109001954_migrate_resources3.exs +++ b/dev/repo/migrations/20240109001954_migrate_resources3.exs @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule Demo.Repo.Migrations.MigrateResources3 do @moduledoc """ Updates resources based on their most recent snapshots. diff --git a/dev/repo/migrations/20240319011915_migrate_resources4.exs b/dev/repo/migrations/20240319011915_migrate_resources4.exs index f7606673..76edc609 100644 --- a/dev/repo/migrations/20240319011915_migrate_resources4.exs +++ b/dev/repo/migrations/20240319011915_migrate_resources4.exs @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule Demo.Repo.Migrations.MigrateResources4 do @moduledoc """ Updates resources based on their most recent snapshots. diff --git a/dev/repo/migrations/20240319013303_install_ash-functions_extension_3.exs b/dev/repo/migrations/20240319013303_install_ash-functions_extension_3.exs index 0b4f1b3e..3061a68e 100644 --- a/dev/repo/migrations/20240319013303_install_ash-functions_extension_3.exs +++ b/dev/repo/migrations/20240319013303_install_ash-functions_extension_3.exs @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule Demo.Repo.Migrations.InstallAshFunctionsExtension3 do @moduledoc """ Installs any extensions that are mentioned in the repo's `installed_extensions/0` callback diff --git a/dev/repo/migrations/20240405104516_migrate_resources5.exs b/dev/repo/migrations/20240405104516_migrate_resources5.exs index 7c654505..94748c39 100644 --- a/dev/repo/migrations/20240405104516_migrate_resources5.exs +++ b/dev/repo/migrations/20240405104516_migrate_resources5.exs @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule Demo.Repo.Migrations.MigrateResources5 do @moduledoc """ Updates resources based on their most recent snapshots. diff --git a/dev/repo/migrations/20240516215427_migrate_resources6.exs b/dev/repo/migrations/20240516215427_migrate_resources6.exs index 22d5c987..240ce1a2 100644 --- a/dev/repo/migrations/20240516215427_migrate_resources6.exs +++ b/dev/repo/migrations/20240516215427_migrate_resources6.exs @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule Demo.Repo.Migrations.MigrateResources6 do @moduledoc """ Updates resources based on their most recent snapshots. diff --git a/dev/repo/migrations/20240522034001_migrate_resources7.exs b/dev/repo/migrations/20240522034001_migrate_resources7.exs index 9d43784b..5f0229e7 100644 --- a/dev/repo/migrations/20240522034001_migrate_resources7.exs +++ b/dev/repo/migrations/20240522034001_migrate_resources7.exs @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule Demo.Repo.Migrations.MigrateResources7 do @moduledoc """ Updates resources based on their most recent snapshots. diff --git a/dev/repo/migrations/20250213034402_migrate_resources_extensions_1.exs b/dev/repo/migrations/20250213034402_migrate_resources_extensions_1.exs index 594feef7..1e3bfc6c 100644 --- a/dev/repo/migrations/20250213034402_migrate_resources_extensions_1.exs +++ b/dev/repo/migrations/20250213034402_migrate_resources_extensions_1.exs @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule Demo.Repo.Migrations.MigrateResourcesExtensions1 do @moduledoc """ Installs any extensions that are mentioned in the repo's `installed_extensions/0` callback diff --git a/dev/repo/migrations/20250213034403_add_organization_relation_to_users.exs b/dev/repo/migrations/20250213034403_add_organization_relation_to_users.exs index f3e983b7..0837a5ee 100644 --- a/dev/repo/migrations/20250213034403_add_organization_relation_to_users.exs +++ b/dev/repo/migrations/20250213034403_add_organization_relation_to_users.exs @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule Demo.Repo.Migrations.MigrateResources8 do @moduledoc """ Updates resources based on their most recent snapshots. diff --git a/dev/repo/migrations/20250601204847_add_photo_paths.exs b/dev/repo/migrations/20250601204847_add_photo_paths.exs index c7e96fd1..16d0ea95 100644 --- a/dev/repo/migrations/20250601204847_add_photo_paths.exs +++ b/dev/repo/migrations/20250601204847_add_photo_paths.exs @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule Demo.Repo.Migrations.AddPhotoPaths do @moduledoc """ Updates resources based on their most recent snapshots. diff --git a/dev/repo/seeds.exs b/dev/repo/seeds.exs index 3e10d085..d6fd15b2 100644 --- a/dev/repo/seeds.exs +++ b/dev/repo/seeds.exs @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule Demo.Seeder do require Ash.Query alias Ash.Seed diff --git a/dev/resource_snapshots/repo/extensions.json.license b/dev/resource_snapshots/repo/extensions.json.license new file mode 100644 index 00000000..815664f3 --- /dev/null +++ b/dev/resource_snapshots/repo/extensions.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2020 Zach Daniel + +SPDX-License-Identifier: MIT diff --git a/dev/resource_snapshots/repo/organizations/20210416131905.json.license b/dev/resource_snapshots/repo/organizations/20210416131905.json.license new file mode 100644 index 00000000..815664f3 --- /dev/null +++ b/dev/resource_snapshots/repo/organizations/20210416131905.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2020 Zach Daniel + +SPDX-License-Identifier: MIT diff --git a/dev/resource_snapshots/repo/organizations/20240405104516.json.license b/dev/resource_snapshots/repo/organizations/20240405104516.json.license new file mode 100644 index 00000000..815664f3 --- /dev/null +++ b/dev/resource_snapshots/repo/organizations/20240405104516.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2020 Zach Daniel + +SPDX-License-Identifier: MIT diff --git a/dev/resource_snapshots/repo/representative_comments/20210416131905.json.license b/dev/resource_snapshots/repo/representative_comments/20210416131905.json.license new file mode 100644 index 00000000..815664f3 --- /dev/null +++ b/dev/resource_snapshots/repo/representative_comments/20210416131905.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2020 Zach Daniel + +SPDX-License-Identifier: MIT diff --git a/dev/resource_snapshots/repo/representative_comments/20231121062843.json.license b/dev/resource_snapshots/repo/representative_comments/20231121062843.json.license new file mode 100644 index 00000000..815664f3 --- /dev/null +++ b/dev/resource_snapshots/repo/representative_comments/20231121062843.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2020 Zach Daniel + +SPDX-License-Identifier: MIT diff --git a/dev/resource_snapshots/repo/representative_comments/20240405104516.json.license b/dev/resource_snapshots/repo/representative_comments/20240405104516.json.license new file mode 100644 index 00000000..815664f3 --- /dev/null +++ b/dev/resource_snapshots/repo/representative_comments/20240405104516.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2020 Zach Daniel + +SPDX-License-Identifier: MIT diff --git a/dev/resource_snapshots/repo/ticket_comments/20210416131905.json.license b/dev/resource_snapshots/repo/ticket_comments/20210416131905.json.license new file mode 100644 index 00000000..815664f3 --- /dev/null +++ b/dev/resource_snapshots/repo/ticket_comments/20210416131905.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2020 Zach Daniel + +SPDX-License-Identifier: MIT diff --git a/dev/resource_snapshots/repo/ticket_comments/20231121062843.json.license b/dev/resource_snapshots/repo/ticket_comments/20231121062843.json.license new file mode 100644 index 00000000..815664f3 --- /dev/null +++ b/dev/resource_snapshots/repo/ticket_comments/20231121062843.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2020 Zach Daniel + +SPDX-License-Identifier: MIT diff --git a/dev/resource_snapshots/repo/ticket_comments/20240405104516.json.license b/dev/resource_snapshots/repo/ticket_comments/20240405104516.json.license new file mode 100644 index 00000000..815664f3 --- /dev/null +++ b/dev/resource_snapshots/repo/ticket_comments/20240405104516.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2020 Zach Daniel + +SPDX-License-Identifier: MIT diff --git a/dev/resource_snapshots/repo/ticket_links/20210416131905.json.license b/dev/resource_snapshots/repo/ticket_links/20210416131905.json.license new file mode 100644 index 00000000..815664f3 --- /dev/null +++ b/dev/resource_snapshots/repo/ticket_links/20210416131905.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2020 Zach Daniel + +SPDX-License-Identifier: MIT diff --git a/dev/resource_snapshots/repo/ticket_links/20231121062843.json.license b/dev/resource_snapshots/repo/ticket_links/20231121062843.json.license new file mode 100644 index 00000000..815664f3 --- /dev/null +++ b/dev/resource_snapshots/repo/ticket_links/20231121062843.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2020 Zach Daniel + +SPDX-License-Identifier: MIT diff --git a/dev/resource_snapshots/repo/tickets/20210416131905.json.license b/dev/resource_snapshots/repo/tickets/20210416131905.json.license new file mode 100644 index 00000000..815664f3 --- /dev/null +++ b/dev/resource_snapshots/repo/tickets/20210416131905.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2020 Zach Daniel + +SPDX-License-Identifier: MIT diff --git a/dev/resource_snapshots/repo/tickets/20231121062843.json.license b/dev/resource_snapshots/repo/tickets/20231121062843.json.license new file mode 100644 index 00000000..815664f3 --- /dev/null +++ b/dev/resource_snapshots/repo/tickets/20231121062843.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2020 Zach Daniel + +SPDX-License-Identifier: MIT diff --git a/dev/resource_snapshots/repo/tickets/20240405104516.json.license b/dev/resource_snapshots/repo/tickets/20240405104516.json.license new file mode 100644 index 00000000..815664f3 --- /dev/null +++ b/dev/resource_snapshots/repo/tickets/20240405104516.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2020 Zach Daniel + +SPDX-License-Identifier: MIT diff --git a/dev/resource_snapshots/repo/tickets/20240516215427.json.license b/dev/resource_snapshots/repo/tickets/20240516215427.json.license new file mode 100644 index 00000000..815664f3 --- /dev/null +++ b/dev/resource_snapshots/repo/tickets/20240516215427.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2020 Zach Daniel + +SPDX-License-Identifier: MIT diff --git a/dev/resource_snapshots/repo/tickets/20240522034001.json.license b/dev/resource_snapshots/repo/tickets/20240522034001.json.license new file mode 100644 index 00000000..815664f3 --- /dev/null +++ b/dev/resource_snapshots/repo/tickets/20240522034001.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2020 Zach Daniel + +SPDX-License-Identifier: MIT diff --git a/dev/resource_snapshots/repo/tickets/20250601204847.json.license b/dev/resource_snapshots/repo/tickets/20250601204847.json.license new file mode 100644 index 00000000..815664f3 --- /dev/null +++ b/dev/resource_snapshots/repo/tickets/20250601204847.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2020 Zach Daniel + +SPDX-License-Identifier: MIT diff --git a/dev/resource_snapshots/repo/users/20210416131905.json.license b/dev/resource_snapshots/repo/users/20210416131905.json.license new file mode 100644 index 00000000..815664f3 --- /dev/null +++ b/dev/resource_snapshots/repo/users/20210416131905.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2020 Zach Daniel + +SPDX-License-Identifier: MIT diff --git a/dev/resource_snapshots/repo/users/20231121062843.json.license b/dev/resource_snapshots/repo/users/20231121062843.json.license new file mode 100644 index 00000000..815664f3 --- /dev/null +++ b/dev/resource_snapshots/repo/users/20231121062843.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2020 Zach Daniel + +SPDX-License-Identifier: MIT diff --git a/dev/resource_snapshots/repo/users/20231121063220.json.license b/dev/resource_snapshots/repo/users/20231121063220.json.license new file mode 100644 index 00000000..815664f3 --- /dev/null +++ b/dev/resource_snapshots/repo/users/20231121063220.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2020 Zach Daniel + +SPDX-License-Identifier: MIT diff --git a/dev/resource_snapshots/repo/users/20240109001354.json.license b/dev/resource_snapshots/repo/users/20240109001354.json.license new file mode 100644 index 00000000..815664f3 --- /dev/null +++ b/dev/resource_snapshots/repo/users/20240109001354.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2020 Zach Daniel + +SPDX-License-Identifier: MIT diff --git a/dev/resource_snapshots/repo/users/20240109001954.json.license b/dev/resource_snapshots/repo/users/20240109001954.json.license new file mode 100644 index 00000000..815664f3 --- /dev/null +++ b/dev/resource_snapshots/repo/users/20240109001954.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2020 Zach Daniel + +SPDX-License-Identifier: MIT diff --git a/dev/resource_snapshots/repo/users/20240319011915.json.license b/dev/resource_snapshots/repo/users/20240319011915.json.license new file mode 100644 index 00000000..815664f3 --- /dev/null +++ b/dev/resource_snapshots/repo/users/20240319011915.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2020 Zach Daniel + +SPDX-License-Identifier: MIT diff --git a/dev/resource_snapshots/repo/users/20240405104516.json.license b/dev/resource_snapshots/repo/users/20240405104516.json.license new file mode 100644 index 00000000..815664f3 --- /dev/null +++ b/dev/resource_snapshots/repo/users/20240405104516.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2020 Zach Daniel + +SPDX-License-Identifier: MIT diff --git a/dev/resource_snapshots/repo/users/20240516215427.json.license b/dev/resource_snapshots/repo/users/20240516215427.json.license new file mode 100644 index 00000000..815664f3 --- /dev/null +++ b/dev/resource_snapshots/repo/users/20240516215427.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2020 Zach Daniel + +SPDX-License-Identifier: MIT diff --git a/dev/resource_snapshots/repo/users/20250213034403.json.license b/dev/resource_snapshots/repo/users/20250213034403.json.license new file mode 100644 index 00000000..815664f3 --- /dev/null +++ b/dev/resource_snapshots/repo/users/20250213034403.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2020 Zach Daniel + +SPDX-License-Identifier: MIT diff --git a/dev/resource_snapshots/repo/users/20250601204847.json.license b/dev/resource_snapshots/repo/users/20250601204847.json.license new file mode 100644 index 00000000..815664f3 --- /dev/null +++ b/dev/resource_snapshots/repo/users/20250601204847.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2020 Zach Daniel + +SPDX-License-Identifier: MIT diff --git a/dev/resources/accounts/calculations/concat.ex b/dev/resources/accounts/calculations/concat.ex index f9e6cfde..c8e9568d 100644 --- a/dev/resources/accounts/calculations/concat.ex +++ b/dev/resources/accounts/calculations/concat.ex @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule Demo.Calculations.Concat do use Ash.Resource.Calculation diff --git a/dev/resources/accounts/domain.ex b/dev/resources/accounts/domain.ex index be158955..46681eb8 100644 --- a/dev/resources/accounts/domain.ex +++ b/dev/resources/accounts/domain.ex @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule Demo.Accounts.Domain do @moduledoc false use Ash.Domain, diff --git a/dev/resources/accounts/resources/nested_embed.ex b/dev/resources/accounts/resources/nested_embed.ex index 76ea278a..6b8720c6 100644 --- a/dev/resources/accounts/resources/nested_embed.ex +++ b/dev/resources/accounts/resources/nested_embed.ex @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule Demo.Accounts.NestedEmbed do use Ash.Resource, data_layer: :embedded diff --git a/dev/resources/accounts/resources/new_user.ex b/dev/resources/accounts/resources/new_user.ex index 26fee0c7..3488895a 100644 --- a/dev/resources/accounts/resources/new_user.ex +++ b/dev/resources/accounts/resources/new_user.ex @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule Demo.Accounts.NewUser do @moduledoc """ TODO diff --git a/dev/resources/accounts/resources/profile.ex b/dev/resources/accounts/resources/profile.ex index 4b47e0c0..247fe89b 100644 --- a/dev/resources/accounts/resources/profile.ex +++ b/dev/resources/accounts/resources/profile.ex @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule Demo.Accounts.Profile do use Ash.Resource, data_layer: :embedded, diff --git a/dev/resources/accounts/resources/user.ex b/dev/resources/accounts/resources/user.ex index 65dbb0fa..394f3a1c 100644 --- a/dev/resources/accounts/resources/user.ex +++ b/dev/resources/accounts/resources/user.ex @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule Demo.Accounts.User do use Ash.Resource, domain: Demo.Accounts.Domain, diff --git a/dev/resources/tickets/comment.ex b/dev/resources/tickets/comment.ex index 835abd8e..67779810 100644 --- a/dev/resources/tickets/comment.ex +++ b/dev/resources/tickets/comment.ex @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule Demo.Tickets.Comment do use Ash.Resource, domain: Demo.Tickets.Domain, diff --git a/dev/resources/tickets/domain.ex b/dev/resources/tickets/domain.ex index 5402b071..c8a7432f 100644 --- a/dev/resources/tickets/domain.ex +++ b/dev/resources/tickets/domain.ex @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule Demo.Tickets.Domain do @moduledoc false use Ash.Domain, diff --git a/dev/resources/tickets/resources/customer.ex b/dev/resources/tickets/resources/customer.ex index b0026a48..a00a1583 100644 --- a/dev/resources/tickets/resources/customer.ex +++ b/dev/resources/tickets/resources/customer.ex @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule Demo.Tickets.Customer do use Ash.Resource, domain: Demo.Tickets.Domain, diff --git a/dev/resources/tickets/resources/organization.ex b/dev/resources/tickets/resources/organization.ex index 1fba116c..6d52a683 100644 --- a/dev/resources/tickets/resources/organization.ex +++ b/dev/resources/tickets/resources/organization.ex @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule Demo.Tickets.Organization do use Ash.Resource, domain: Demo.Tickets.Domain, diff --git a/dev/resources/tickets/resources/representative.ex b/dev/resources/tickets/resources/representative.ex index 96817f15..400f5c65 100644 --- a/dev/resources/tickets/resources/representative.ex +++ b/dev/resources/tickets/resources/representative.ex @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule Demo.Tickets.Representative do use Ash.Resource, domain: Demo.Tickets.Domain, diff --git a/dev/resources/tickets/resources/ticket/admin_field_formats.ex b/dev/resources/tickets/resources/ticket/admin_field_formats.ex index 58bfb33b..4043333a 100644 --- a/dev/resources/tickets/resources/ticket/admin_field_formats.ex +++ b/dev/resources/tickets/resources/ticket/admin_field_formats.ex @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule Demo.Tickets.Ticket.AdminFieldFormats do @moduledoc false def format_field(status, :description) do diff --git a/dev/resources/tickets/resources/ticket/ticket.ex b/dev/resources/tickets/resources/ticket/ticket.ex index b0ba7152..e86385ab 100644 --- a/dev/resources/tickets/resources/ticket/ticket.ex +++ b/dev/resources/tickets/resources/ticket/ticket.ex @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule Demo.Tickets.Ticket do use Ash.Resource, domain: Demo.Tickets.Domain, diff --git a/dev/resources/tickets/resources/ticket/types/bar_metadata.ex b/dev/resources/tickets/resources/ticket/types/bar_metadata.ex index 9a7f3c3c..b77028c0 100644 --- a/dev/resources/tickets/resources/ticket/types/bar_metadata.ex +++ b/dev/resources/tickets/resources/ticket/types/bar_metadata.ex @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule Demo.Tickets.Ticket.Types.BarMetadata do use Ash.Resource, data_layer: :embedded diff --git a/dev/resources/tickets/resources/ticket/types/foo_metadata.ex b/dev/resources/tickets/resources/ticket/types/foo_metadata.ex index 4e2ef0b1..0ea1bd4f 100644 --- a/dev/resources/tickets/resources/ticket/types/foo_metadata.ex +++ b/dev/resources/tickets/resources/ticket/types/foo_metadata.ex @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule Demo.Tickets.Ticket.Types.FooMetadata do use Ash.Resource, data_layer: :embedded diff --git a/dev/resources/tickets/resources/ticket/types/metadata.ex b/dev/resources/tickets/resources/ticket/types/metadata.ex index b525ae1a..05d6e875 100644 --- a/dev/resources/tickets/resources/ticket/types/metadata.ex +++ b/dev/resources/tickets/resources/ticket/types/metadata.ex @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule Demo.Tickets.Ticket.Types.Metadata do use Ash.Type.NewType, subtype_of: :union, constraints: [ types: [ diff --git a/dev/resources/tickets/resources/ticket_link.ex b/dev/resources/tickets/resources/ticket_link.ex index 090969d0..903ec67f 100644 --- a/dev/resources/tickets/resources/ticket_link.ex +++ b/dev/resources/tickets/resources/ticket_link.ex @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule Demo.Tickets.TicketLink do use Ash.Resource, domain: Demo.Tickets.Domain, diff --git a/documentation/dsls/DSL-AshAdmin.Domain.md.license b/documentation/dsls/DSL-AshAdmin.Domain.md.license new file mode 100644 index 00000000..815664f3 --- /dev/null +++ b/documentation/dsls/DSL-AshAdmin.Domain.md.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2020 Zach Daniel + +SPDX-License-Identifier: MIT diff --git a/documentation/dsls/DSL-AshAdmin.Resource.md.license b/documentation/dsls/DSL-AshAdmin.Resource.md.license new file mode 100644 index 00000000..815664f3 --- /dev/null +++ b/documentation/dsls/DSL-AshAdmin.Resource.md.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2020 Zach Daniel + +SPDX-License-Identifier: MIT diff --git a/documentation/tutorials/contributing-to-ash-admin.md b/documentation/tutorials/contributing-to-ash-admin.md index 434105c9..6195e3b6 100644 --- a/documentation/tutorials/contributing-to-ash-admin.md +++ b/documentation/tutorials/contributing-to-ash-admin.md @@ -1,3 +1,9 @@ + + # Contributing to AshAdmin AshAdmin includes a development app, located in the `dev` folder, so you don't need to have an external Phoenix app to plug AshAdmin into. diff --git a/documentation/tutorials/getting-started-with-ash-admin.md b/documentation/tutorials/getting-started-with-ash-admin.md index 88bc8a77..7f500565 100644 --- a/documentation/tutorials/getting-started-with-ash-admin.md +++ b/documentation/tutorials/getting-started-with-ash-admin.md @@ -1,3 +1,9 @@ + + # Getting Started with AshAdmin ## Demo diff --git a/lib/ash_admin.ex b/lib/ash_admin.ex index e5502255..bb514795 100644 --- a/lib/ash_admin.ex +++ b/lib/ash_admin.ex @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule AshAdmin do @moduledoc false end diff --git a/lib/ash_admin/actor_plug.ex b/lib/ash_admin/actor_plug.ex index c9e14ae4..b6272ab1 100644 --- a/lib/ash_admin/actor_plug.ex +++ b/lib/ash_admin/actor_plug.ex @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule AshAdmin.ActorPlug do @moduledoc false diff --git a/lib/ash_admin/actor_plug/plug.ex b/lib/ash_admin/actor_plug/plug.ex index d8f1c7b1..34bf5461 100644 --- a/lib/ash_admin/actor_plug/plug.ex +++ b/lib/ash_admin/actor_plug/plug.ex @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule AshAdmin.ActorPlug.Plug do @moduledoc false @behaviour AshAdmin.ActorPlug diff --git a/lib/ash_admin/components/core_components.ex b/lib/ash_admin/components/core_components.ex index 9c98a5e4..20c19ec8 100644 --- a/lib/ash_admin/components/core_components.ex +++ b/lib/ash_admin/components/core_components.ex @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule AshAdmin.CoreComponents do @moduledoc """ Provides core UI components. diff --git a/lib/ash_admin/components/layouts.ex b/lib/ash_admin/components/layouts.ex index 91964ef8..0169ffcf 100644 --- a/lib/ash_admin/components/layouts.ex +++ b/lib/ash_admin/components/layouts.ex @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule AshAdmin.Layouts do @moduledoc false use AshAdmin.Web, :html diff --git a/lib/ash_admin/components/resource/data_table.ex b/lib/ash_admin/components/resource/data_table.ex index 760a190d..64557643 100644 --- a/lib/ash_admin/components/resource/data_table.ex +++ b/lib/ash_admin/components/resource/data_table.ex @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule AshAdmin.Components.Resource.DataTable do @moduledoc false use Phoenix.LiveComponent diff --git a/lib/ash_admin/components/resource/form.ex b/lib/ash_admin/components/resource/form.ex index 3d5c6b11..47aaf23a 100644 --- a/lib/ash_admin/components/resource/form.ex +++ b/lib/ash_admin/components/resource/form.ex @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule AshAdmin.Components.Resource.Form do @moduledoc false use Phoenix.LiveComponent diff --git a/lib/ash_admin/components/resource/generic_action.ex b/lib/ash_admin/components/resource/generic_action.ex index 05828f7e..44fcfe24 100644 --- a/lib/ash_admin/components/resource/generic_action.ex +++ b/lib/ash_admin/components/resource/generic_action.ex @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule AshAdmin.Components.Resource.GenericAction do @moduledoc false use Phoenix.LiveComponent diff --git a/lib/ash_admin/components/resource/helpers/format_helper.ex b/lib/ash_admin/components/resource/helpers/format_helper.ex index 47c2fb02..ab92c8bd 100644 --- a/lib/ash_admin/components/resource/helpers/format_helper.ex +++ b/lib/ash_admin/components/resource/helpers/format_helper.ex @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule AshAdmin.Components.Resource.Helpers.FormatHelper do @moduledoc false diff --git a/lib/ash_admin/components/resource/info.ex b/lib/ash_admin/components/resource/info.ex index 30e9b0e7..f87e8dec 100644 --- a/lib/ash_admin/components/resource/info.ex +++ b/lib/ash_admin/components/resource/info.ex @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule AshAdmin.Components.Resource.Info do @moduledoc false use Phoenix.Component diff --git a/lib/ash_admin/components/resource/metadata_table.ex b/lib/ash_admin/components/resource/metadata_table.ex index 96934f17..8cdaf09d 100644 --- a/lib/ash_admin/components/resource/metadata_table.ex +++ b/lib/ash_admin/components/resource/metadata_table.ex @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule AshAdmin.Components.Resource.MetadataTable do @moduledoc false use Phoenix.Component diff --git a/lib/ash_admin/components/resource/nav.ex b/lib/ash_admin/components/resource/nav.ex index d3253fd1..fe86bbb9 100644 --- a/lib/ash_admin/components/resource/nav.ex +++ b/lib/ash_admin/components/resource/nav.ex @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule AshAdmin.Components.Resource.Nav do @moduledoc false use Phoenix.Component diff --git a/lib/ash_admin/components/resource/relationship_field.ex b/lib/ash_admin/components/resource/relationship_field.ex index 9670c92c..bb8f6093 100644 --- a/lib/ash_admin/components/resource/relationship_field.ex +++ b/lib/ash_admin/components/resource/relationship_field.ex @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule AshAdmin.Components.Resource.RelationshipField do @moduledoc """ This module defines a LiveComponent for rendering a relationship field in an AshAdmin resource form. diff --git a/lib/ash_admin/components/resource/resource.ex b/lib/ash_admin/components/resource/resource.ex index 13250a94..7c270fba 100644 --- a/lib/ash_admin/components/resource/resource.ex +++ b/lib/ash_admin/components/resource/resource.ex @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule AshAdmin.Components.Resource do @moduledoc false use Phoenix.LiveComponent diff --git a/lib/ash_admin/components/resource/select_table.ex b/lib/ash_admin/components/resource/select_table.ex index bfeeb235..aa9e6796 100644 --- a/lib/ash_admin/components/resource/select_table.ex +++ b/lib/ash_admin/components/resource/select_table.ex @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule AshAdmin.Components.Resource.SelectTable do @moduledoc false use Phoenix.Component diff --git a/lib/ash_admin/components/resource/sensitive_attribute.ex b/lib/ash_admin/components/resource/sensitive_attribute.ex index 278d445a..f2acce92 100644 --- a/lib/ash_admin/components/resource/sensitive_attribute.ex +++ b/lib/ash_admin/components/resource/sensitive_attribute.ex @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule AshAdmin.Components.Resource.SensitiveAttribute do @moduledoc false use Phoenix.LiveComponent diff --git a/lib/ash_admin/components/resource/show.ex b/lib/ash_admin/components/resource/show.ex index 34d284da..ddb5c85f 100644 --- a/lib/ash_admin/components/resource/show.ex +++ b/lib/ash_admin/components/resource/show.ex @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule AshAdmin.Components.Resource.Show do @moduledoc false use Phoenix.LiveComponent diff --git a/lib/ash_admin/components/resource/table.ex b/lib/ash_admin/components/resource/table.ex index a822701f..a16ad337 100644 --- a/lib/ash_admin/components/resource/table.ex +++ b/lib/ash_admin/components/resource/table.ex @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule AshAdmin.Components.Resource.Table do @moduledoc false use Phoenix.Component diff --git a/lib/ash_admin/components/top_nav.ex b/lib/ash_admin/components/top_nav.ex index 5521065f..911a9d7e 100644 --- a/lib/ash_admin/components/top_nav.ex +++ b/lib/ash_admin/components/top_nav.ex @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule AshAdmin.Components.TopNav do @moduledoc false use Phoenix.LiveComponent diff --git a/lib/ash_admin/components/top_nav/actor_select.ex b/lib/ash_admin/components/top_nav/actor_select.ex index c3077e76..9a4443be 100644 --- a/lib/ash_admin/components/top_nav/actor_select.ex +++ b/lib/ash_admin/components/top_nav/actor_select.ex @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule AshAdmin.Components.TopNav.ActorSelect do @moduledoc false use Phoenix.Component diff --git a/lib/ash_admin/components/top_nav/drawer_dropdown.ex b/lib/ash_admin/components/top_nav/drawer_dropdown.ex index dbadc3f2..3cc30b9b 100644 --- a/lib/ash_admin/components/top_nav/drawer_dropdown.ex +++ b/lib/ash_admin/components/top_nav/drawer_dropdown.ex @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule AshAdmin.Components.TopNav.DrawerDropdown do @moduledoc false use Phoenix.LiveComponent diff --git a/lib/ash_admin/components/top_nav/dropdown.ex b/lib/ash_admin/components/top_nav/dropdown.ex index b6ba993b..b44b9eb0 100644 --- a/lib/ash_admin/components/top_nav/dropdown.ex +++ b/lib/ash_admin/components/top_nav/dropdown.ex @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule AshAdmin.Components.TopNav.Dropdown do @moduledoc false use Phoenix.LiveComponent diff --git a/lib/ash_admin/components/top_nav/helpers/dropdown_helper.ex b/lib/ash_admin/components/top_nav/helpers/dropdown_helper.ex index 39226a55..e0b451b8 100644 --- a/lib/ash_admin/components/top_nav/helpers/dropdown_helper.ex +++ b/lib/ash_admin/components/top_nav/helpers/dropdown_helper.ex @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule AshAdmin.Components.TopNav.DropdownHelper do @moduledoc false diff --git a/lib/ash_admin/components/top_nav/tenant_form.ex b/lib/ash_admin/components/top_nav/tenant_form.ex index 8b9f3b04..3ca78d78 100644 --- a/lib/ash_admin/components/top_nav/tenant_form.ex +++ b/lib/ash_admin/components/top_nav/tenant_form.ex @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule AshAdmin.Components.TopNav.TenantForm do @moduledoc false use Phoenix.Component diff --git a/lib/ash_admin/domain.ex b/lib/ash_admin/domain.ex index a01f4d40..2a97c8c0 100644 --- a/lib/ash_admin/domain.ex +++ b/lib/ash_admin/domain.ex @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule AshAdmin.Domain do @admin %Spark.Dsl.Section{ describe: "Configure the admin dashboard for a given domain.", diff --git a/lib/ash_admin/errors/not_found.ex b/lib/ash_admin/errors/not_found.ex index ac1c8dcd..010e95ac 100644 --- a/lib/ash_admin/errors/not_found.ex +++ b/lib/ash_admin/errors/not_found.ex @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule AshAdmin.Errors.NotFound do defexception [:thing, :key] diff --git a/lib/ash_admin/gettext.ex b/lib/ash_admin/gettext.ex index 45383424..8567f2da 100644 --- a/lib/ash_admin/gettext.ex +++ b/lib/ash_admin/gettext.ex @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule AshAdmin.Gettext do @moduledoc """ A module providing Internationalization with a gettext-based API. diff --git a/lib/ash_admin/helpers.ex b/lib/ash_admin/helpers.ex index 4901d8ad..f956db8a 100644 --- a/lib/ash_admin/helpers.ex +++ b/lib/ash_admin/helpers.ex @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule AshAdmin.Helpers do @moduledoc false diff --git a/lib/ash_admin/pages/page_live.ex b/lib/ash_admin/pages/page_live.ex index 86e2446d..f951d922 100644 --- a/lib/ash_admin/pages/page_live.ex +++ b/lib/ash_admin/pages/page_live.ex @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule AshAdmin.PageNotFound do @moduledoc false defexception [:message, plug_status: 404] diff --git a/lib/ash_admin/resource/field.ex b/lib/ash_admin/resource/field.ex index 5cfcf713..150fb364 100644 --- a/lib/ash_admin/resource/field.ex +++ b/lib/ash_admin/resource/field.ex @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule AshAdmin.Resource.Field do @moduledoc """ The representation of a configured field in the admin UI. diff --git a/lib/ash_admin/resource/resource.ex b/lib/ash_admin/resource/resource.ex index 6598da98..9ff3c251 100644 --- a/lib/ash_admin/resource/resource.ex +++ b/lib/ash_admin/resource/resource.ex @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule AshAdmin.Resource do @field %Spark.Dsl.Entity{ describe: "Declare non-default behavior for a specific attribute.", diff --git a/lib/ash_admin/resource/transformers/add_position_sort_calculation.ex b/lib/ash_admin/resource/transformers/add_position_sort_calculation.ex index ee0f6a6f..f94b352d 100644 --- a/lib/ash_admin/resource/transformers/add_position_sort_calculation.ex +++ b/lib/ash_admin/resource/transformers/add_position_sort_calculation.ex @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule AshAdmin.Resource.Transformers.AddPositionSortCalculation do @moduledoc """ Adds a `ash_admin_position_sort` calculation to resources that have defined admin.label_field. diff --git a/lib/ash_admin/resource/transformers/validate_table_columns.ex b/lib/ash_admin/resource/transformers/validate_table_columns.ex index 1271f163..bac94457 100644 --- a/lib/ash_admin/resource/transformers/validate_table_columns.ex +++ b/lib/ash_admin/resource/transformers/validate_table_columns.ex @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule AshAdmin.Resource.Transformers.ValidateTableColumns do @moduledoc "Validates that table columns are all either attributes, or `:one` cardinality relationships." use Spark.Dsl.Transformer diff --git a/lib/ash_admin/resource/verifiers/verify_file_arguments_exist.ex b/lib/ash_admin/resource/verifiers/verify_file_arguments_exist.ex index 8f89383f..58c41c4b 100644 --- a/lib/ash_admin/resource/verifiers/verify_file_arguments_exist.ex +++ b/lib/ash_admin/resource/verifiers/verify_file_arguments_exist.ex @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule AshAdmin.Resource.Verifiers.VerifyFileArgumentsExist do @moduledoc """ Ensures that an argument with file options exists in an action of the diff --git a/lib/ash_admin/router.ex b/lib/ash_admin/router.ex index 077a3569..d3e1a0f0 100644 --- a/lib/ash_admin/router.ex +++ b/lib/ash_admin/router.ex @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule AshAdmin.Router do @moduledoc """ Provides LiveView routing for AshAdmin. diff --git a/lib/ash_admin/session_plug.ex b/lib/ash_admin/session_plug.ex index 281a43a9..86ecc3dc 100644 --- a/lib/ash_admin/session_plug.ex +++ b/lib/ash_admin/session_plug.ex @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule AshAdmin.SessionPlug do @moduledoc false @behaviour Plug diff --git a/lib/ash_admin/show_resources_transformer.ex b/lib/ash_admin/show_resources_transformer.ex index 633ac3bb..5bb38f5c 100644 --- a/lib/ash_admin/show_resources_transformer.ex +++ b/lib/ash_admin/show_resources_transformer.ex @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule AshAdmin.ShowResourcesTransformer do @moduledoc false use Spark.Dsl.Transformer diff --git a/lib/ash_admin/web.ex b/lib/ash_admin/web.ex index 93de8bda..845f32ea 100644 --- a/lib/ash_admin/web.ex +++ b/lib/ash_admin/web.ex @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule AshAdmin.Web do @moduledoc false def static_paths, do: ~w(assets fonts images favicon.ico robots.txt) diff --git a/lib/mix/tasks/ash_admin.install.ex b/lib/mix/tasks/ash_admin.install.ex index bc0450a7..9f835899 100644 --- a/lib/mix/tasks/ash_admin.install.ex +++ b/lib/mix/tasks/ash_admin.install.ex @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule Mix.Tasks.AshAdmin.Install.Docs do @moduledoc false diff --git a/logos/small-logo.png.license b/logos/small-logo.png.license new file mode 100644 index 00000000..815664f3 --- /dev/null +++ b/logos/small-logo.png.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2020 Zach Daniel + +SPDX-License-Identifier: MIT diff --git a/mix.exs b/mix.exs index 4dc68fe1..9c297115 100644 --- a/mix.exs +++ b/mix.exs @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule AshAdmin.MixProject do use Mix.Project @@ -43,11 +47,19 @@ defmodule AshAdmin.MixProject do def package do [ - name: :ash_admin, + maintainers: [ + "Zach Daniel " + ], licenses: ["MIT"], links: %{ - GitHub: "https://github.com/ash-project/ash_admin" - } + "GitHub" => "https://github.com/ash-project/ash_admin", + "Changelog" => "https://github.com/ash-project/ash_admin/blob/main/CHANGELOG.md", + "Discord" => "https://discord.gg/HTHRaaVPUc", + "Website" => "https://ash-hq.org", + "Forum" => "https://elixirforum.com/c/elixir-framework-forums/ash-framework-forum", + "REUSE Compliance" => "https://api.reuse.software/info/github.com/ash-project/ash_admin" + }, + source_url: "https://github.com/ash-project/ash_admin" ] end diff --git a/mix.lock.license b/mix.lock.license new file mode 100644 index 00000000..815664f3 --- /dev/null +++ b/mix.lock.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2020 Zach Daniel + +SPDX-License-Identifier: MIT diff --git a/priv/static/assets/app.css b/priv/static/assets/app.css index 53edff16..06a07f15 100644 --- a/priv/static/assets/app.css +++ b/priv/static/assets/app.css @@ -1,6 +1,12 @@ /* -! tailwindcss v3.3.2 | MIT License | https://tailwindcss.com -*/ + * SPDX-FileCopyrightText: 2020 Zach Daniel + * + * SPDX-License-Identifier: MIT + */ + +/* + ! tailwindcss v3.3.2 | MIT License | https://tailwindcss.com + */ /* 1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4) diff --git a/priv/static/cache_manifest.json.license b/priv/static/cache_manifest.json.license new file mode 100644 index 00000000..815664f3 --- /dev/null +++ b/priv/static/cache_manifest.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2020 Zach Daniel + +SPDX-License-Identifier: MIT diff --git a/test/ash_admin_test.exs b/test/ash_admin_test.exs index a126b81f..d0506d7f 100644 --- a/test/ash_admin_test.exs +++ b/test/ash_admin_test.exs @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule AshAdmin.Test.AshAdminTest do @moduledoc false use ExUnit.Case, async: true diff --git a/test/components/resource/helpers/format_helper_test.exs b/test/components/resource/helpers/format_helper_test.exs index 2dfae9d1..c8258480 100644 --- a/test/components/resource/helpers/format_helper_test.exs +++ b/test/components/resource/helpers/format_helper_test.exs @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule AshAdmin.Test.Components.Resource.Helpers.FormatHelperTest do use ExUnit.Case, async: true diff --git a/test/components/top_nav/helpers/dropdown_helper_test.exs b/test/components/top_nav/helpers/dropdown_helper_test.exs index ff5d3ca5..de05f77a 100644 --- a/test/components/top_nav/helpers/dropdown_helper_test.exs +++ b/test/components/top_nav/helpers/dropdown_helper_test.exs @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule AshAdmin.Test.Components.TopNav.Helpers.DropdownHelperTest do use ExUnit.Case, async: true diff --git a/test/page_live_test.exs b/test/page_live_test.exs index 5857247a..2786a685 100644 --- a/test/page_live_test.exs +++ b/test/page_live_test.exs @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule AshAdmin.Test.PageLiveTest do use ExUnit.Case, async: false diff --git a/test/support/domain.ex b/test/support/domain.ex index 912afe00..ee790f8a 100644 --- a/test/support/domain.ex +++ b/test/support/domain.ex @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule AshAdmin.Test.Domain do @moduledoc false use Ash.Domain, diff --git a/test/support/endpoint.ex b/test/support/endpoint.ex index 89f5cdc3..51d5519c 100644 --- a/test/support/endpoint.ex +++ b/test/support/endpoint.ex @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule AshAdmin.Test.Endpoint do use Phoenix.Endpoint, otp_app: :ash_admin diff --git a/test/support/resources/blog.ex b/test/support/resources/blog.ex index 35063a2b..55d9c8c9 100644 --- a/test/support/resources/blog.ex +++ b/test/support/resources/blog.ex @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule AshAdmin.Test.Blog do @moduledoc false use Ash.Resource, diff --git a/test/support/resources/comment.ex b/test/support/resources/comment.ex index 9df43ddc..1b0eba75 100644 --- a/test/support/resources/comment.ex +++ b/test/support/resources/comment.ex @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule AshAdmin.Test.Comment do @moduledoc false use Ash.Resource, diff --git a/test/support/resources/post.ex b/test/support/resources/post.ex index 17bb3499..009dbae0 100644 --- a/test/support/resources/post.ex +++ b/test/support/resources/post.ex @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule AshAdmin.Test.Post do @moduledoc false use Ash.Resource, diff --git a/test/support/resources/post/admin_field_formats.ex b/test/support/resources/post/admin_field_formats.ex index ad2ff136..fff8be09 100644 --- a/test/support/resources/post/admin_field_formats.ex +++ b/test/support/resources/post/admin_field_formats.ex @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule AshAdmin.Test.Post.AdminFieldFormats do @moduledoc false diff --git a/test/support/router.ex b/test/support/router.ex index 0c213750..e3de27e9 100644 --- a/test/support/router.ex +++ b/test/support/router.ex @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule AshAdmin.Test.Router do use Phoenix.Router diff --git a/test/support/test_app.ex b/test/support/test_app.ex index 89392c37..2c166c63 100644 --- a/test/support/test_app.ex +++ b/test/support/test_app.ex @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + defmodule AshAdmin.TestApp do @moduledoc false def start(_type, _args) do diff --git a/test/test_helper.exs b/test/test_helper.exs index 045e632a..b2a8eb4c 100644 --- a/test/test_helper.exs +++ b/test/test_helper.exs @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Zach Daniel +# +# SPDX-License-Identifier: MIT + ExUnit.start() Logger.configure(level: :debug)