Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added admin portal and login box palette #163

Merged
merged 2 commits into from
Dec 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,34 @@ jobs:
with:
go-version-file: "go.mod"
cache: true

- name: Extract and Increment Version
id: increment_version
run: |
TAG=${GITHUB_REF##*/}
# Strip the "v" prefix if it exists and split the version into components
VERSION=${TAG#v}
IFS='.' read -r MAJOR MINOR PATCH <<< "$VERSION"

# Increment the patch version by 1
PATCH=$((PATCH + 1))

# Create the new version
NEW_VERSION="$MAJOR.$MINOR.$PATCH"

# Export the new version to the environment
echo "NEW_VERSION=${NEW_VERSION}" >> $GITHUB_ENV

- name: Update version in GNUmakefile
run: |
sed -i "s|\(/registry.terraform.io/frontegg/frontegg/\)[^/]*|\1${{ env.NEW_VERSION }}|" GNUmakefile

- name: Commit updated GNUmakefile
run: |
git config user.name "GitHub Actions"
git config user.email "[email protected]"
git commit -am "Update GNUmakefile version to ${{ env.NEW_VERSION }}"
git push
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v6
id: import_gpg
Expand Down
1 change: 0 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Visit https://golangci-lint.run/ for usage documentation
# and information on other useful linters
issues:
max-per-linter: 0
max-same-issues: 0

linters:
Expand Down
2 changes: 1 addition & 1 deletion GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ PLATFORM ?= $(shell go env GOOS)_$(shell go env GOARCH)
default: testacc

install:
@go build -o ~/.terraform.d/plugins/registry.terraform.io/frontegg/frontegg/1.0.0/$(PLATFORM)/terraform-provider-frontegg
@go build -o ~/.terraform.d/plugins/registry.terraform.io/frontegg/frontegg/1.0.5/$(PLATFORM)/terraform-provider-frontegg
@rm .terraform.lock.hcl

.PHONY: testacc
Expand Down
170 changes: 169 additions & 1 deletion docs/resources/workspace.md
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,9 @@ Required:

Optional:

- `palette` (Block List, Max: 1) Configures the color palette for the admin portal. (see [below for nested schema](#nestedblock--admin_portal--palette))
- `palette` (Block List, Max: 1, Deprecated) Configures the color palette for the admin portal. (see [below for nested schema](#nestedblock--admin_portal--palette))
- `palette_admin_portal` (Block List, Max: 1) Configures the color palette for the admin portal. (see [below for nested schema](#nestedblock--admin_portal--palette_admin_portal))
- `palette_login_box` (Block List, Max: 1) Configures the color palette for the admin portal. (see [below for nested schema](#nestedblock--admin_portal--palette_login_box))

<a id="nestedblock--admin_portal--palette"></a>
### Nested Schema for `admin_portal.palette`
Expand Down Expand Up @@ -363,6 +365,172 @@ Required:



<a id="nestedblock--admin_portal--palette_admin_portal"></a>
### Nested Schema for `admin_portal.palette_admin_portal`

Optional:

- `error` (Block List) Error color. (see [below for nested schema](#nestedblock--admin_portal--palette_admin_portal--error))
- `info` (Block List) Info color. (see [below for nested schema](#nestedblock--admin_portal--palette_admin_portal--info))
- `primary` (Block List) Primary color. (see [below for nested schema](#nestedblock--admin_portal--palette_admin_portal--primary))
- `secondary` (Block List) Secondary color. (see [below for nested schema](#nestedblock--admin_portal--palette_admin_portal--secondary))
- `success` (Block List) Success color. (see [below for nested schema](#nestedblock--admin_portal--palette_admin_portal--success))
- `warning` (Block List) Warning color. (see [below for nested schema](#nestedblock--admin_portal--palette_admin_portal--warning))

<a id="nestedblock--admin_portal--palette_admin_portal--error"></a>
### Nested Schema for `admin_portal.palette_admin_portal.error`

Required:

- `contrast_text` (String) contrast_text color.
- `dark` (String) dark color.
- `light` (String) light color.
- `main` (String) main color.


<a id="nestedblock--admin_portal--palette_admin_portal--info"></a>
### Nested Schema for `admin_portal.palette_admin_portal.info`

Required:

- `contrast_text` (String) contrast_text color.
- `dark` (String) dark color.
- `light` (String) light color.
- `main` (String) main color.


<a id="nestedblock--admin_portal--palette_admin_portal--primary"></a>
### Nested Schema for `admin_portal.palette_admin_portal.primary`

Required:

- `active` (String) active color.
- `contrast_text` (String) contrast_text color.
- `dark` (String) dark color.
- `hover` (String) hover color.
- `light` (String) light color.
- `main` (String) main color.


<a id="nestedblock--admin_portal--palette_admin_portal--secondary"></a>
### Nested Schema for `admin_portal.palette_admin_portal.secondary`

Required:

- `active` (String) active color.
- `contrast_text` (String) contrast_text color.
- `dark` (String) dark color.
- `hover` (String) hover color.
- `light` (String) light color.
- `main` (String) main color.


<a id="nestedblock--admin_portal--palette_admin_portal--success"></a>
### Nested Schema for `admin_portal.palette_admin_portal.success`

Required:

- `contrast_text` (String) contrast_text color.
- `dark` (String) dark color.
- `light` (String) light color.
- `main` (String) main color.


<a id="nestedblock--admin_portal--palette_admin_portal--warning"></a>
### Nested Schema for `admin_portal.palette_admin_portal.warning`

Required:

- `contrast_text` (String) contrast_text color.
- `dark` (String) dark color.
- `light` (String) light color.
- `main` (String) main color.



<a id="nestedblock--admin_portal--palette_login_box"></a>
### Nested Schema for `admin_portal.palette_login_box`

Optional:

- `error` (Block List) Error color. (see [below for nested schema](#nestedblock--admin_portal--palette_login_box--error))
- `info` (Block List) Info color. (see [below for nested schema](#nestedblock--admin_portal--palette_login_box--info))
- `primary` (Block List) Primary color. (see [below for nested schema](#nestedblock--admin_portal--palette_login_box--primary))
- `secondary` (Block List) Secondary color. (see [below for nested schema](#nestedblock--admin_portal--palette_login_box--secondary))
- `success` (Block List) Success color. (see [below for nested schema](#nestedblock--admin_portal--palette_login_box--success))
- `warning` (Block List) Warning color. (see [below for nested schema](#nestedblock--admin_portal--palette_login_box--warning))

<a id="nestedblock--admin_portal--palette_login_box--error"></a>
### Nested Schema for `admin_portal.palette_login_box.error`

Required:

- `contrast_text` (String) contrast_text color.
- `dark` (String) dark color.
- `light` (String) light color.
- `main` (String) main color.


<a id="nestedblock--admin_portal--palette_login_box--info"></a>
### Nested Schema for `admin_portal.palette_login_box.info`

Required:

- `contrast_text` (String) contrast_text color.
- `dark` (String) dark color.
- `light` (String) light color.
- `main` (String) main color.


<a id="nestedblock--admin_portal--palette_login_box--primary"></a>
### Nested Schema for `admin_portal.palette_login_box.primary`

Required:

- `active` (String) active color.
- `contrast_text` (String) contrast_text color.
- `dark` (String) dark color.
- `hover` (String) hover color.
- `light` (String) light color.
- `main` (String) main color.


<a id="nestedblock--admin_portal--palette_login_box--secondary"></a>
### Nested Schema for `admin_portal.palette_login_box.secondary`

Required:

- `active` (String) active color.
- `contrast_text` (String) contrast_text color.
- `dark` (String) dark color.
- `hover` (String) hover color.
- `light` (String) light color.
- `main` (String) main color.


<a id="nestedblock--admin_portal--palette_login_box--success"></a>
### Nested Schema for `admin_portal.palette_login_box.success`

Required:

- `contrast_text` (String) contrast_text color.
- `dark` (String) dark color.
- `light` (String) light color.
- `main` (String) main color.


<a id="nestedblock--admin_portal--palette_login_box--warning"></a>
### Nested Schema for `admin_portal.palette_login_box.warning`

Required:

- `contrast_text` (String) contrast_text color.
- `dark` (String) dark color.
- `light` (String) light color.
- `main` (String) main color.




<a id="nestedblock--auth_policy"></a>
### Nested Schema for `auth_policy`
Expand Down
Loading
Loading