Skip to content

Commit

Permalink
patched stripe setup for extension, added wysiwyg to promotional text…
Browse files Browse the repository at this point in the history
… input for extensions
  • Loading branch information
roncodes committed Jul 30, 2024
1 parent b35e0da commit c258221
Show file tree
Hide file tree
Showing 8 changed files with 643 additions and 18 deletions.
5 changes: 3 additions & 2 deletions addon/components/extension-form.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,13 @@
@name={{t "registry-bridge.developers.extensions.extension-form.extension-promotional-text"}}
@helpText={{t "registry-bridge.developers.extensions.extension-form.extension-promotional-text-help-text"}}
>
<Textarea
<TipTapEditor @value={{@extension.promotional_text}} @onChange={{fn (mut @extension.promotional_text)}} placeholder={{t "registry-bridge.developers.extensions.extension-form.extension-promotional-text"}} />
{{!-- <Textarea
@value={{@extension.promotional_text}}
placeholder={{t "registry-bridge.developers.extensions.extension-form.extension-promotional-text"}}
class="form-input w-full"
rows="3"
/>
/> --}}
</InputGroup>
<InputGroup
@name={{t "registry-bridge.developers.extensions.extension-form.extension-subtitle"}}
Expand Down
4 changes: 2 additions & 2 deletions addon/components/extension-monetize-form.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
/>
</InputGroup>
{{#if @extension.payment_required}}
<InputGroup>
{{!-- <InputGroup>
<Toggle
@isToggled={{@extension.subscription_required}}
@onToggle={{fn (mut @extension.subscription_required)}}
@label={{t "registry-bridge.developers.extensions.extension-form.extension-subscription-required"}}
@helpText={{t "registry-bridge.developers.extensions.extension-form.extension-subscription-required-help-text"}}
/>
</InputGroup>
</InputGroup> --}}
{{#if @extension.subscription_required}}
<InputGroup
@name={{t "registry-bridge.developers.extensions.extension-form.extension-subscription-billing-period"}}
Expand Down
2 changes: 1 addition & 1 deletion addon/components/modals/extension-details.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<h3 class="dark:text-white font-semibold mb-1">Overview</h3>
<div class="space-y-1">
<p class="dark:text-gray-200 text-sm">{{this.extension.description}}</p>
<p class="dark:text-gray-200 text-sm">{{this.extension.promotional_text}}</p>
<p class="dark:text-gray-200 text-sm">{{html-safe this.extension.promotional_text}}</p>
</div>
</div>
<div>
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fleetbase/registry-bridge",
"version": "0.0.9",
"version": "0.0.10",
"description": "Internal Bridge between Fleetbase API and Extensions Registry",
"keywords": [
"fleetbase-extension",
Expand All @@ -20,7 +20,7 @@
],
"require": {
"php": "^8.0",
"fleetbase/core-api": "^1.5.0",
"fleetbase/core-api": "^1.5.1",
"laravel/cashier": "^15.2.1",
"php-http/guzzle7-adapter": "^1.0",
"psr/http-factory-implementation": "*",
Expand Down
2 changes: 1 addition & 1 deletion extension.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Registry Bridge",
"version": "0.0.9",
"version": "0.0.10",
"description": "Internal Bridge between Fleetbase API and Extensions Registry",
"repository": "https://github.com/fleetbase/registry-bridge",
"license": "AGPL-3.0-or-later",
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fleetbase/registry-bridge-engine",
"version": "0.0.9",
"version": "0.0.10",
"description": "Internal Bridge between Fleetbase API and Extensions Registry",
"fleetbase": {
"route": "extensions"
Expand Down Expand Up @@ -40,7 +40,7 @@
"dependencies": {
"@babel/core": "^7.23.2",
"@fleetbase/ember-core": "^0.2.14",
"@fleetbase/ember-ui": "^0.2.19",
"@fleetbase/ember-ui": "^0.2.20",
"@fortawesome/ember-fontawesome": "^2.0.0",
"@fortawesome/fontawesome-svg-core": "6.4.0",
"@fortawesome/free-solid-svg-icons": "6.4.0",
Expand Down
Loading

0 comments on commit c258221

Please sign in to comment.