Skip to content

Commit 1c7b0f4

Browse files
Initial commit
0 parents  commit 1c7b0f4

32 files changed

+3072
-0
lines changed

.github/workflows/main.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Create Tag
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: butlerlogic/[email protected]
14+
env:
15+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
16+
with:
17+
regex_pattern: '"version": "([0-9\.]{5}([-\+][\w\.0-9]+)?)"'
18+
root: "composer.json"
19+
tag_prefix: "v"

Api/Data/ConfigInterface.php

Lines changed: 188 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,188 @@
1+
<?php
2+
declare(strict_types=1);
3+
namespace Basecom\SpeculationRulesToolbox\Api\Data;
4+
5+
// Disable PHPCS, as forced short descriptions on getters are redundant
6+
// phpcs:disable
7+
interface ConfigInterface
8+
{
9+
/**
10+
* @return bool
11+
*/
12+
public function isSpeculationRulesEnabled(): bool;
13+
14+
/**
15+
* @return string
16+
*/
17+
public function getSpeculationRulesBannedTerms(): string;
18+
19+
/**
20+
* @return bool
21+
*/
22+
public function isSpeculationRulesModerateEnabled(): bool;
23+
24+
/**
25+
* @return string
26+
*/
27+
public function getSpeculationRulesPreloadType(): string;
28+
29+
/**
30+
* @return bool
31+
*/
32+
public function isAllPagesCustomLinksEnabled(): bool;
33+
34+
/**
35+
* @return string
36+
*/
37+
public function getAllPagesPreloadTypeCustom(): string;
38+
39+
/**
40+
* @return array
41+
*/
42+
public function getAllPagesCustomLinks(): array;
43+
44+
/**
45+
* @return bool
46+
*/
47+
public function isAllPagesCustomScriptEnabled(): bool;
48+
49+
/**
50+
* @return string
51+
*/
52+
public function getAllPagesCustomScript(): string;
53+
54+
/**
55+
* @return bool
56+
*/
57+
public function isHomepageCustomLinksEnabled(): bool;
58+
59+
/**
60+
* @return string
61+
*/
62+
public function getHomepagePreloadTypeCustom(): string;
63+
64+
/**
65+
* @return array
66+
*/
67+
public function getHomepageCustomLinks(): array;
68+
69+
/**
70+
* @return bool
71+
*/
72+
public function isHomepageDynamicTargetsEnabled(): bool;
73+
74+
/**
75+
* @return string
76+
*/
77+
public function getHomepagePreloadTypeDynamic(): string;
78+
79+
/**
80+
* @return string
81+
*/
82+
public function getHomePageCssSelector(): string;
83+
84+
/**
85+
* @return array
86+
*/
87+
public function getHomepageConcurrentPreloads(): array;
88+
89+
/**
90+
* @return bool
91+
*/
92+
public function isPlpCustomLinksEnabled(): bool;
93+
94+
/**
95+
* @return string
96+
*/
97+
public function getPlpPreloadTypeCustom(): string;
98+
99+
/**
100+
* @return array
101+
*/
102+
public function getPlpCustomLinks(): array;
103+
104+
/**
105+
* @return bool
106+
*/
107+
public function isPlpDynamicTargetsEnabled(): bool;
108+
109+
/**
110+
* @return string
111+
*/
112+
public function getPlpPreloadTypeDynamic(): string;
113+
114+
/**
115+
* @return string
116+
*/
117+
public function getPlpCssSelector(): string;
118+
119+
/**
120+
* @return array
121+
*/
122+
public function getPlpConcurrentPreloads(): array;
123+
124+
/**
125+
* @return bool
126+
*/
127+
public function isPdpCustomLinksEnabled(): bool;
128+
129+
/**
130+
* @return string
131+
*/
132+
public function getPdpPreloadTypeCustom(): string;
133+
134+
/**
135+
* @return array
136+
*/
137+
public function getPdpCustomLinks(): array;
138+
139+
/**
140+
* @return bool
141+
*/
142+
public function isPdpDynamicTargetsEnabled(): bool;
143+
144+
/**
145+
* @return string
146+
*/
147+
public function getPdpPreloadTypeDynamic(): string;
148+
149+
/**
150+
* @return string
151+
*/
152+
public function getPdpCssSelector(): string;
153+
154+
/**
155+
* @return array
156+
*/
157+
public function getPdpConcurrentPreloads(): array;
158+
159+
/**
160+
* @return bool
161+
*/
162+
public function isDynamicIntersectionsEnabled(): bool;
163+
/**
164+
* @return string
165+
*/
166+
public function getDynamicIntersectionsPreloadType(): string;
167+
168+
/**
169+
* @return int[]
170+
*/
171+
public function getDynamicIntersectionsConcurrentPreloads(): array;
172+
173+
/**
174+
* @return int
175+
*/
176+
public function getDynamicIntersectionsObserverDelay(): int;
177+
178+
/**
179+
* @return float
180+
*/
181+
public function getDynamicIntersectionsObserverThreshold(): float;
182+
183+
/**
184+
* @return string
185+
*/
186+
public function getDynamicIntersectionsApplyToPages(): string;
187+
}
188+
// phpcs:enable

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.1.0/)
6+
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
7+
8+
## [Unreleased]
9+
10+
### Added
11+
12+
### Changed
13+
14+
### Removed
15+
16+
### Fixed
17+
18+
## [0.9.0] - 2025-03-12
19+
20+
- Release of this project 🎉
21+
22+
[0.9.0]: https://github.com/basecom/magento2-speculation-rules-toolbox/releases/tag/v0.9.0

CONTRIBUTING.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Contributing
2+
3+
> [!NOTE]
4+
> This page is still work in progress
5+
6+
Any contributions are welcome and appreciated! 🤝
7+
8+
Simply create a new issue if you have found a bug in this module.
9+
When creating the issue, make sure to include the following information:
10+
11+
* Your Magento2 version
12+
* Your Hyva-Themes module versions
13+
* The version of this module installed
14+
15+
When you already found a fix for the issue, feel free to create a PR as well and mention it in the issue (or vice versa).
16+
17+
(for security related issues, please refrain from creating a public issue and email <[email protected]> instead)

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2025 - present basecom GmbH & Co. KG
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)