diff --git a/Makefile b/Makefile index f4f7bf66..5a98e6eb 100644 --- a/Makefile +++ b/Makefile @@ -37,7 +37,7 @@ refresh: # Formats the code .PHONY: format format: .bin/cli node_modules go.mod - .bin/cli dev headers copyright --type=open-source + .bin/cli dev headers copyright --type=open-source --exclude=.snapshots go tool goimports -w -local github.com/ory . npm exec -- prettier --write "{**/,}*{.js,.md,.ts}" diff --git a/cmd/cloudx/client/sdks.go b/cmd/cloudx/client/sdks.go index e960f9b3..bcb84370 100644 --- a/cmd/cloudx/client/sdks.go +++ b/cmd/cloudx/client/sdks.go @@ -28,10 +28,10 @@ var rateLimitHeader = os.Getenv(RateLimitHeaderKey) func CloudConsoleURL(prefix string) *url.URL { // we load the URL from the env here instead of init() because the tests might want to change this - consoleURL, err := url.ParseRequestURI(cmp.Or(os.Getenv(ConsoleURLKey), "https://console.ory.sh")) + consoleURL, err := url.ParseRequestURI(cmp.Or(os.Getenv(ConsoleURLKey), "https://console.ory.com")) if err != nil { fmt.Printf("error parsing console url: %s\n", err) - consoleURL = &url.URL{Scheme: "https", Host: "console.ory.sh"} + consoleURL = &url.URL{Scheme: "https", Host: "console.ory.com"} } if prefix != "" { consoleURL.Host = prefix + "." + consoleURL.Host diff --git a/cmd/cloudx/project/create.go b/cmd/cloudx/project/create.go index e770b9d5..8339b840 100644 --- a/cmd/cloudx/project/create.go +++ b/cmd/cloudx/project/create.go @@ -65,7 +65,7 @@ func NewCreateProjectCmd() *cobra.Command { if err != nil { return cmdx.PrintOpenAPIError(cmd, err) } - wsID = new(ws.Id) + wsID = &ws.Id } for name == "" { diff --git a/cmd/cloudx/project/patch.go b/cmd/cloudx/project/patch.go index 56fd02fc..969088bb 100644 --- a/cmd/cloudx/project/patch.go +++ b/cmd/cloudx/project/patch.go @@ -35,7 +35,7 @@ specified in the patch will be overwritten. To replace the config use the ` + "` The format of the patch is a JSON-Patch document. For more details please check: - https://www.ory.sh/docs/reference/api#operation/patchProject + https://www.ory.com/docs/reference/api#operation/patchProject https://jsonpatch.com`, RunE: runPatch( func(s []string) []string { diff --git a/cmd/cloudx/project/patch_identity_config.go b/cmd/cloudx/project/patch_identity_config.go index 46c87d5b..075e6597 100644 --- a/cmd/cloudx/project/patch_identity_config.go +++ b/cmd/cloudx/project/patch_identity_config.go @@ -46,7 +46,7 @@ when compared to the ` + "`patch project`" + ` command: The format of the patch is a JSON-Patch document. For more details please check: - https://www.ory.sh/docs/reference/api#operation/patchProject + https://www.ory.com/docs/reference/api#operation/patchProject https://jsonpatch.com`, RunE: runPatch( prefixIdentityConfig, diff --git a/cmd/cloudx/project/patch_oauth2_config.go b/cmd/cloudx/project/patch_oauth2_config.go index 818e2858..e405cbdd 100644 --- a/cmd/cloudx/project/patch_oauth2_config.go +++ b/cmd/cloudx/project/patch_oauth2_config.go @@ -57,7 +57,7 @@ when compared to the ` + "`patch project`" + ` command: The format of the patch is a JSON-Patch document. For more details please check: - https://www.ory.sh/docs/reference/api#operation/patchProject + https://www.ory.com/docs/reference/api#operation/patchProject https://jsonpatch.com`, RunE: runPatch( prefixOAuth2Config, diff --git a/cmd/cloudx/project/patch_permission_config.go b/cmd/cloudx/project/patch_permission_config.go index bedbe628..67165a2e 100644 --- a/cmd/cloudx/project/patch_permission_config.go +++ b/cmd/cloudx/project/patch_permission_config.go @@ -52,7 +52,7 @@ when compared to the ` + "`patch project`" + ` command: The format of the patch is a JSON-Patch document. For more details please check: - https://www.ory.sh/docs/reference/api#operation/patchProject + https://www.ory.com/docs/reference/api#operation/patchProject https://jsonpatch.com`, RunE: runPatch( prefixPermissionConfig, diff --git a/cmd/cloudx/project/update.go b/cmd/cloudx/project/update.go index 7923f035..546b4827 100644 --- a/cmd/cloudx/project/update.go +++ b/cmd/cloudx/project/update.go @@ -60,7 +60,7 @@ If the ` + "`--name`" + ` flag is not set, the project's name will not be change The full configuration payload can be found at - https://www.ory.sh/docs/reference/api#operation/updateProject + https://www.ory.com/docs/reference/api#operation/updateProject As an example an input could look like: diff --git a/cmd/cloudx/project/update_identity_config.go b/cmd/cloudx/project/update_identity_config.go index 31bb5649..57156004 100644 --- a/cmd/cloudx/project/update_identity_config.go +++ b/cmd/cloudx/project/update_identity_config.go @@ -51,7 +51,7 @@ self-hosted Ory Kratos to Ory Network. The full configuration payload can be found at: - https://www.ory.sh/docs/reference/api#operation/updateProject. + https://www.ory.com/docs/reference/api#operation/updateProject This command expects the contents of the ` + "`/services/identity/config`" + ` key, so for example: diff --git a/cmd/cloudx/project/update_oauth2_config.go b/cmd/cloudx/project/update_oauth2_config.go index 2d21b148..010c1cae 100644 --- a/cmd/cloudx/project/update_oauth2_config.go +++ b/cmd/cloudx/project/update_oauth2_config.go @@ -53,7 +53,7 @@ from self-hosted Ory Hydra to Ory Network. The full configuration payload can be found at: - https://www.ory.sh/docs/reference/api#operation/updateProject. + https://www.ory.com/docs/reference/api#operation/updateProject This command expects the contents of the ` + "`/services/oauth2/config`" + ` key, so for example: diff --git a/cmd/cloudx/project/update_permission_config.go b/cmd/cloudx/project/update_permission_config.go index f4507ca9..f168f8e7 100644 --- a/cmd/cloudx/project/update_permission_config.go +++ b/cmd/cloudx/project/update_permission_config.go @@ -52,7 +52,7 @@ self-hosted Ory Keto to Ory Network. The full configuration payload can be found at: - https://www.ory.sh/docs/reference/api#operation/updateProject. + https://www.ory.com/docs/reference/api#operation/updateProject This command expects the contents of the ` + "`/services/permission/config`" + ` key, so for example: diff --git a/cmd/dev/newsletter/stub/changelog.html.expected b/cmd/dev/newsletter/.snapshots/TestRenderMarkdownLong.html similarity index 99% rename from cmd/dev/newsletter/stub/changelog.html.expected rename to cmd/dev/newsletter/.snapshots/TestRenderMarkdownLong.html index 38c1b74c..e2495731 100644 --- a/cmd/dev/newsletter/stub/changelog.html.expected +++ b/cmd/dev/newsletter/.snapshots/TestRenderMarkdownLong.html @@ -1,3 +1,6 @@ + + + @@ -10,6 +13,14 @@ #outlook a { padding: 0; } + pre { + background-color: #f5f5f5; + padding: 8px; + } + code { + background-color: #f5f5f5; + padding: 2px 4px; + } body { margin: 0; padding: 0; @@ -56,8 +67,8 @@ max-width: 3.389830508474576%; } .xc600 { - width: 600px !important; - max-width: 600px; + width: 1200px !important; + max-width: 1200px; } .xc32 { width: 32px !important; @@ -68,8 +79,8 @@ max-width: 16px; } .xc440 { - width: 440px !important; - max-width: 440px; + + } } @@ -87,8 +98,8 @@ max-width: 3.389830508474576%; } .moz-text-html .xc600 { - width: 600px !important; - max-width: 600px; + width: 1200px !important; + max-width: 1200px; } .moz-text-html .xc32 { width: 32px !important; @@ -99,8 +110,8 @@ max-width: 16px; } .moz-text-html .xc440 { - width: 440px !important; - max-width: 440px; + + }