Skip to content

Commit

Permalink
Merge branch 'master' of github.com:Squidex/squidex
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianStehle committed Oct 24, 2024
2 parents 3200753 + 1c5f2d1 commit 9987a06
Show file tree
Hide file tree
Showing 12 changed files with 32 additions and 32 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check-updates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4.1.7
- uses: actions/checkout@v4.2.1
with:
token: ${{ secrets.WORKFLOW_SECRET }}

Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Prepare - Checkout
uses: actions/checkout@v4.1.7
uses: actions/checkout@v4.2.1

- name: Prepare - Inject short Variables
uses: rlespinasse/[email protected]
Expand All @@ -25,15 +25,15 @@ jobs:
uses: docker/[email protected]

- name: Prepare - Setup Docker Buildx
uses: docker/setup-buildx-action@v3.6.1
uses: docker/setup-buildx-action@v3.7.1

- name: Prepare - Setup Node
uses: actions/[email protected]
with:
node-version: 18

- name: Build - BUILD
uses: docker/build-push-action@v6.7.0
uses: docker/build-push-action@v6.9.0
with:
load: true
cache-from: type=gha
Expand Down Expand Up @@ -102,15 +102,15 @@ jobs:

- name: Test - Upload Playwright Artifacts
if: always()
uses: actions/[email protected].0
uses: actions/[email protected].3
with:
name: playwright-report
path: tools/e2e/playwright-report/
retention-days: 30

- name: Test - Upload Screenshots
if: failure()
uses: actions/[email protected].0
uses: actions/[email protected].3
with:
path: |
tools/TestSuite/TestSuite.ApiTests/bin/Debug/net8.0/screenshots/
Expand Down Expand Up @@ -148,7 +148,7 @@ jobs:

- name: Publish - Build & Push for Multi-Platforms
if: github.event_name != 'pull_request'
uses: docker/build-push-action@v6.7.0
uses: docker/build-push-action@v6.9.0
with:
build-args: "SQUIDEX__RUNTIME__VERSION=7.0.0-dev-${{ env.BUILD_NUMBER }}"
cache-from: type=gha
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/make-screenshots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,21 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Prepare - Checkout
uses: actions/checkout@v4.1.7
uses: actions/checkout@v4.2.1

- name: Prepare - Setup QEMU
uses: docker/[email protected]

- name: Prepare - Setup Docker Buildx
uses: docker/setup-buildx-action@v3.6.1
uses: docker/setup-buildx-action@v3.7.1

- name: Prepare - Setup Node
uses: actions/[email protected]
with:
node-version: 18

- name: Build - BUILD
uses: docker/build-push-action@v6.7.0
uses: docker/build-push-action@v6.9.0
with:
load: true
cache-from: type=gha
Expand All @@ -50,7 +50,7 @@ jobs:

- name: Test - Upload Playwright Artifacts
if: always()
uses: actions/[email protected].0
uses: actions/[email protected].3
with:
name: snapshots
path: tools/e2e/snapshots/
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Prepare - Checkout
uses: actions/checkout@v4.1.7
uses: actions/checkout@v4.2.1

- name: Prepare - Inject short Variables
uses: rlespinasse/[email protected]
Expand All @@ -20,15 +20,15 @@ jobs:
uses: docker/[email protected]

- name: Prepare - Setup Docker Buildx
uses: docker/setup-buildx-action@v3.6.1
uses: docker/setup-buildx-action@v3.7.1

- name: Prepare - Setup Node
uses: actions/[email protected]
with:
node-version: 18

- name: Build - BUILD
uses: docker/build-push-action@v6.7.0
uses: docker/build-push-action@v6.9.0
with:
load: true
build-args: "SQUIDEX__BUILD__VERSION=${{ env.GITHUB_REF_SLUG }},SQUIDEX__RUNTIME__VERSION=${{ env.GITHUB_REF_SLUG }}"
Expand Down Expand Up @@ -98,7 +98,7 @@ jobs:

- name: Test - Upload Playwright Artifacts
if: always()
uses: actions/[email protected].0
uses: actions/[email protected].3
with:
name: playwright-report
path: tools/e2e/playwright-report/
Expand Down Expand Up @@ -142,7 +142,7 @@ jobs:
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Publish - Build & Push for Multi-Platforms
uses: docker/build-push-action@v6.7.0
uses: docker/build-push-action@v6.9.0
with:
build-args: "SQUIDEX__BUILD__VERSION=${{ env.GITHUB_REF_SLUG }},SQUIDEX__RUNTIME__VERSION=${{ env.GITHUB_REF_SLUG }}"
cache-from: type=gha
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,15 @@ public AlgoliaActionHandler(RuleEventFormatter formatter, IScriptEngine scriptEn
var ruleDescription = string.Empty;
var contentId = entityEvent.Id.ToString();
var content = (AlgoliaContent?)null;
var indexName = (await FormatAsync(action.IndexName, @event))!;

if (delete)
{
ruleDescription = $"Delete entry from Algolia index: {action.IndexName}";
ruleDescription = $"Delete entry from Algolia index: {indexName}";
}
else
{
ruleDescription = $"Add entry to Algolia index: {action.IndexName}";
ruleDescription = $"Add entry to Algolia index: {indexName}";

try
{
Expand Down Expand Up @@ -95,7 +96,7 @@ public AlgoliaActionHandler(RuleEventFormatter formatter, IScriptEngine scriptEn
ApiKey = action.ApiKey,
Content = serializer.Serialize(content, true),
ContentId = contentId,
IndexName = (await FormatAsync(action.IndexName, @event))!
IndexName = indexName
};

return (ruleDescription, ruleJob);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ public ElasticSearchActionHandler(RuleEventFormatter formatter, IScriptEngine sc

if (delete)
{
ruleText = $"Delete entry index: {action.IndexName}";
ruleText = $"Delete entry index: {ruleJob.IndexName}";
}
else
{
ruleText = $"Upsert to index: {action.IndexName}";
ruleText = $"Upsert to index: {ruleJob.IndexName}";

ElasticSearchContent content;
try
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public EmailActionHandler(RuleEventFormatter formatter)
MessageBody = (await FormatAsync(action.MessageBody, @event))!
};

var description = $"Send an email to {action.MessageTo}";
var description = $"Send an email to {ruleJob.MessageTo}";

return (description, ruleJob);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ public OpenSearchActionHandler(RuleEventFormatter formatter, IScriptEngine scrip

if (delete)
{
ruleText = $"Delete entry index: {action.IndexName}";
ruleText = $"Delete entry index: {ruleJob.IndexName}";
}
else
{
ruleText = $"Upsert to index: {action.IndexName}";
ruleText = $"Upsert to index: {ruleJob.IndexName}";

OpenSearchContent content;
try
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ public TypesenseActionHandler(RuleEventFormatter formatter, IHttpClientFactory h
}

var indexName = await FormatAsync(action.IndexName, @event);

var ruleText = string.Empty;
var ruleJob = new TypesenseJob
{
Expand All @@ -59,11 +58,11 @@ public TypesenseActionHandler(RuleEventFormatter formatter, IHttpClientFactory h

if (delete)
{
ruleText = $"Delete entry index: {action.IndexName}";
ruleText = $"Delete entry index: {indexName}";
}
else
{
ruleText = $"Upsert to index: {action.IndexName}";
ruleText = $"Upsert to index: {indexName}";

TypesenseContent content;
try
Expand Down
4 changes: 2 additions & 2 deletions backend/i18n/frontend_en.json
Original file line number Diff line number Diff line change
Expand Up @@ -761,9 +761,9 @@
"rules.ruleSimulator.listPageTitle": "Simulator",
"rules.ruleSyntax.if": "If",
"rules.ruleSyntax.then": "then",
"rules.run": "Replay",
"rules.run": "Replay from Events",
"rules.runFailed": "Failed to run rule. Please reload.",
"rules.runFromSnapshots": "Replay from states",
"rules.runFromSnapshots": "Replay from actual Data",
"rules.runningRule": "Rule '{name}' is currently running.",
"rules.runRuleConfirmText": "Do you really want to run the rule for all events?",
"rules.runRuleConfirmTitle": "Run rule",
Expand Down
4 changes: 2 additions & 2 deletions backend/i18n/source/frontend_en.json
Original file line number Diff line number Diff line change
Expand Up @@ -761,9 +761,9 @@
"rules.ruleSimulator.listPageTitle": "Simulator",
"rules.ruleSyntax.if": "If",
"rules.ruleSyntax.then": "then",
"rules.run": "Replay",
"rules.run": "Replay from Events",
"rules.runFailed": "Failed to run rule. Please reload.",
"rules.runFromSnapshots": "Replay from states",
"rules.runFromSnapshots": "Replay from actual Data",
"rules.runningRule": "Rule '{name}' is currently running.",
"rules.runRuleConfirmText": "Do you really want to run the rule for all events?",
"rules.runRuleConfirmTitle": "Run rule",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class TabRouterlinkDirective {
relativeTo: this.route,
});

if (event.ctrlKey) {
if (event.ctrlKey || event.metaKey) {
const url = this.router.serializeUrl(urlTree);

window.open(url, '_blank');
Expand Down

0 comments on commit 9987a06

Please sign in to comment.