@amazeelabs/silverback-campaign-urls 1.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/drupal/silverback_campaign_urls/.prettierignore +1 -0
- package/drupal/silverback_campaign_urls/CHANGELOG.md +82 -0
- package/drupal/silverback_campaign_urls/README.md +25 -0
- package/drupal/silverback_campaign_urls/composer.json +8 -0
- package/drupal/silverback_campaign_urls/config/install/system.action.campaign_url_delete_action.yml +13 -0
- package/drupal/silverback_campaign_urls/config/install/views.view.campaign_urls.yml +737 -0
- package/drupal/silverback_campaign_urls/graphql/silverback_campaign_urls.base.graphqls +6 -0
- package/drupal/silverback_campaign_urls/graphql/silverback_campaign_urls.extension.graphqls +0 -0
- package/drupal/silverback_campaign_urls/silverback_campaign_urls.info.yml +10 -0
- package/drupal/silverback_campaign_urls/silverback_campaign_urls.links.action.yml +5 -0
- package/drupal/silverback_campaign_urls/silverback_campaign_urls.links.menu.yml +12 -0
- package/drupal/silverback_campaign_urls/silverback_campaign_urls.permissions.yml +2 -0
- package/drupal/silverback_campaign_urls/silverback_campaign_urls.routing.yml +46 -0
- package/drupal/silverback_campaign_urls/src/CampaignUrlAccessControlHandler.php +29 -0
- package/drupal/silverback_campaign_urls/src/Entity/CampaignUrl.php +179 -0
- package/drupal/silverback_campaign_urls/src/Entity/CampaignUrlInterface.php +34 -0
- package/drupal/silverback_campaign_urls/src/Entity/CampaignUrlListBuilder.php +38 -0
- package/drupal/silverback_campaign_urls/src/Form/CampaignUrlDeleteForm.php +41 -0
- package/drupal/silverback_campaign_urls/src/Form/CampaignUrlDeleteMultipleForm.php +145 -0
- package/drupal/silverback_campaign_urls/src/Form/CampaignUrlForm.php +45 -0
- package/drupal/silverback_campaign_urls/src/Plugin/Action/DeleteCampaignUrl.php +92 -0
- package/drupal/silverback_campaign_urls/src/Plugin/GraphQL/SchemaExtension/SilverbackCampaignUrlSchemaExtension.php +28 -0
- package/drupal/silverback_campaign_urls/src/Plugin/Validation/Constraint/UniqueCampaignUrlSourceConstraint.php +18 -0
- package/drupal/silverback_campaign_urls/src/Plugin/Validation/Constraint/UniqueCampaignUrlSourceConstraintValidator.php +61 -0
- package/drupal/silverback_campaign_urls/tests/src/Kernel/CampaignUrlValidationTest.php +57 -0
- package/package.json +15 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
+
|
|
6
|
+
## 1.0.10 (2026-01-22)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @amazeelabs/silverback-campaign-urls
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
CHANGELOG.md
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
+
|
|
6
|
+
## [1.0.9](https://github.com/AmazeeLabs/silverback-mono/compare/@-amazeelabs/silverback_campaign_urls@1.0.8...@-amazeelabs/silverback_campaign_urls@1.0.9) (2024-09-09)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @-amazeelabs/silverback_campaign_urls
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [1.0.8](https://github.com/AmazeeLabs/silverback-mono/compare/@-amazeelabs/silverback_campaign_urls@1.0.7...@-amazeelabs/silverback_campaign_urls@1.0.8) (2024-05-10)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @-amazeelabs/silverback_campaign_urls
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## [1.0.7](https://github.com/AmazeeLabs/silverback-mono/compare/@-amazeelabs/silverback_campaign_urls@1.0.6...@-amazeelabs/silverback_campaign_urls@1.0.7) (2024-05-09)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @-amazeelabs/silverback_campaign_urls
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
# Change Log
|
|
31
|
+
|
|
32
|
+
All notable changes to this project will be documented in this file. See
|
|
33
|
+
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
34
|
+
|
|
35
|
+
## [1.0.6](https://github.com/AmazeeLabs/silverback-mono/compare/@-amazeelabs/silverback_campaign_urls@1.0.5...@-amazeelabs/silverback_campaign_urls@1.0.6) (2023-08-24)
|
|
36
|
+
|
|
37
|
+
**Note:** Version bump only for package @-amazeelabs/silverback_campaign_urls
|
|
38
|
+
|
|
39
|
+
# Change Log
|
|
40
|
+
|
|
41
|
+
All notable changes to this project will be documented in this file. See
|
|
42
|
+
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
43
|
+
|
|
44
|
+
## [1.0.5](https://github.com/AmazeeLabs/silverback-mono/compare/@-amazeelabs/silverback_campaign_urls@1.0.4...@-amazeelabs/silverback_campaign_urls@1.0.5) (2023-06-29)
|
|
45
|
+
|
|
46
|
+
**Note:** Version bump only for package @-amazeelabs/silverback_campaign_urls
|
|
47
|
+
|
|
48
|
+
# Change Log
|
|
49
|
+
|
|
50
|
+
All notable changes to this project will be documented in this file. See
|
|
51
|
+
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
52
|
+
|
|
53
|
+
## [1.0.4](https://github.com/AmazeeLabs/silverback-mono/compare/@-amazeelabs/silverback_campaign_urls@1.0.3...@-amazeelabs/silverback_campaign_urls@1.0.4) (2023-06-28)
|
|
54
|
+
|
|
55
|
+
**Note:** Version bump only for package @-amazeelabs/silverback_campaign_urls
|
|
56
|
+
|
|
57
|
+
# Change Log
|
|
58
|
+
|
|
59
|
+
All notable changes to this project will be documented in this file. See
|
|
60
|
+
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
61
|
+
|
|
62
|
+
## [1.0.3](https://github.com/AmazeeLabs/silverback-mono/compare/@-amazeelabs/silverback_campaign_urls@1.0.2...@-amazeelabs/silverback_campaign_urls@1.0.3) (2023-06-21)
|
|
63
|
+
|
|
64
|
+
**Note:** Version bump only for package @-amazeelabs/silverback_campaign_urls
|
|
65
|
+
|
|
66
|
+
# Change Log
|
|
67
|
+
|
|
68
|
+
All notable changes to this project will be documented in this file. See
|
|
69
|
+
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
70
|
+
|
|
71
|
+
## [1.0.2](https://github.com/AmazeeLabs/silverback-mono/compare/@-amazeelabs/silverback_campaign_urls@1.0.1...@-amazeelabs/silverback_campaign_urls@1.0.2) (2023-06-15)
|
|
72
|
+
|
|
73
|
+
**Note:** Version bump only for package @-amazeelabs/silverback_campaign_urls
|
|
74
|
+
|
|
75
|
+
# Change Log
|
|
76
|
+
|
|
77
|
+
All notable changes to this project will be documented in this file. See
|
|
78
|
+
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
79
|
+
|
|
80
|
+
## 1.0.1 (2023-06-13)
|
|
81
|
+
|
|
82
|
+
**Note:** Version bump only for package @-amazeelabs/silverback_campaign_urls
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Silverback campaign urls
|
|
2
|
+
|
|
3
|
+
The _Silverback campaign urls_ module allows the Drupal admins to create
|
|
4
|
+
campaign urls. These are basically redirects that have no restriction for the
|
|
5
|
+
source and the destination fields, meaning that the admin can input any kind of
|
|
6
|
+
strings into them.
|
|
7
|
+
|
|
8
|
+
These campaign urls are stored as Drupal entities, and they can be retrieved
|
|
9
|
+
using graphql in a Gatsby app for example. An example can be found in the
|
|
10
|
+
silverback-gatsby app (check the gatsby-node.ts file).
|
|
11
|
+
|
|
12
|
+
The endpoint to administer these redirects is
|
|
13
|
+
_/admin/config/search/campaign_url_
|
|
14
|
+
|
|
15
|
+
### Gatsby integration
|
|
16
|
+
|
|
17
|
+
The modules contains a schema extension plugin that can be enabled on the
|
|
18
|
+
GraphQL server. This schema extension contains a new GraphQL type called
|
|
19
|
+
**CampaignUrl** which will be added to the schema when the extension is enabled
|
|
20
|
+
on the GraphQL server. When this is done, the **gatsby-source-silverback** npm
|
|
21
|
+
package will fetch these entities and create redirects for them.
|
|
22
|
+
|
|
23
|
+
Usually, in the Gatsby app, there should be an integaration with a sepcific
|
|
24
|
+
hosting provider, like **gatsby-plugin-netlify** for netlify which should create
|
|
25
|
+
the redirects in a specific file and format.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "amazeelabs/silverback_campaign_urls",
|
|
3
|
+
"type": "drupal-module",
|
|
4
|
+
"version": "dev-main",
|
|
5
|
+
"description": "Allows creating campaign url entities that can be afterwards exposed via graphql, as redirects.",
|
|
6
|
+
"homepage": "https://github.com/AmazeeLabs/silverback-mono/tree/development/packages/composer/amazeelabs/silverback_campaign_urls#readme",
|
|
7
|
+
"license": "GPL-2.0+"
|
|
8
|
+
}
|
package/drupal/silverback_campaign_urls/config/install/system.action.campaign_url_delete_action.yml
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
langcode: en
|
|
2
|
+
status: true
|
|
3
|
+
dependencies:
|
|
4
|
+
enforced:
|
|
5
|
+
module:
|
|
6
|
+
- silverback_campaign_urls
|
|
7
|
+
module:
|
|
8
|
+
- silverback_campaign_urls
|
|
9
|
+
id: campaign_url_delete_action
|
|
10
|
+
label: 'Delete campaign url'
|
|
11
|
+
type: campaign_url
|
|
12
|
+
plugin: campaign_url_delete_action
|
|
13
|
+
configuration: {}
|