-
Notifications
You must be signed in to change notification settings - Fork 305
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Enable Pro plan - WIP * no pricing page if have no paid plans * Set pricing ids in env * views & submissions FREE for all * extra param for env * form password FREE for all * Custom Code is PRO feature * Replace codeinput prism with codemirror * Better form Cleaning message * Added risky user email spam protection * fix form cleaning * Custom SEO * fix custom seo formcleaner * remvoe fix condition
- Loading branch information
Showing
13 changed files
with
174 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
database/migrations/2023_07_20_073728_add_seo_meta_to_forms.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
|
||
use Illuminate\Database\Migrations\Migration; | ||
use Illuminate\Database\Schema\Blueprint; | ||
use Illuminate\Support\Facades\Schema; | ||
|
||
return new class extends Migration | ||
{ | ||
/** | ||
* Run the migrations. | ||
* | ||
* @return void | ||
*/ | ||
public function up() | ||
{ | ||
Schema::table('forms', function (Blueprint $table) { | ||
$table->json('seo_meta')->default('{}'); | ||
}); | ||
} | ||
|
||
/** | ||
* Reverse the migrations. | ||
* | ||
* @return void | ||
*/ | ||
public function down() | ||
{ | ||
Schema::table('forms', function (Blueprint $table) { | ||
$table->dropColumn('seo_meta'); | ||
}); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63 changes: 63 additions & 0 deletions
63
resources/js/components/open/forms/components/form-components/FormCustomSeo.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<template> | ||
<collapse class="p-5 w-full border-b" :default-value="false"> | ||
<template #title> | ||
<h3 id="v-step-2" class="font-semibold text-lg"> | ||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" | ||
class="h-5 w-5 inline text-gray-500 mr-2 -mt-1" | ||
> | ||
<path stroke-linecap="round" stroke-linejoin="round" | ||
d="M2.25 15.75l5.159-5.159a2.25 2.25 0 013.182 0l5.159 5.159m-1.5-1.5l1.409-1.409a2.25 2.25 0 013.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 001.5-1.5V6a1.5 1.5 0 00-1.5-1.5H3.75A1.5 1.5 0 002.25 6v12a1.5 1.5 0 001.5 1.5zm10.5-11.25h.008v.008h-.008V8.25zm.375 0a.375.375 0 11-.75 0 .375.375 0 01.75 0z" | ||
/> | ||
</svg> | ||
|
||
Link Settings - SEO | ||
<pro-tag /> | ||
</h3> | ||
</template> | ||
<p class="mt-4 text-gray-500 text-sm"> | ||
Customize the image and text that appear when you share your form on other sites (Open Graph). | ||
</p> | ||
<text-input v-model="form.seo_meta.page_title" name="page_title" class="mt-4" | ||
label="Page Title" help="Under or approximately 60 characters" | ||
/> | ||
<text-area-input v-model="form.seo_meta.page_description" name="page_description" class="mt-4" | ||
label="Page Description" help="Between 150 and 160 characters" | ||
/> | ||
<image-input v-model="form.seo_meta.page_thumbnail" name="page_thumbnail" class="mt-4" | ||
label="Page Thumbnail Image" help="Also know as og:image - 1200 X 630" | ||
/> | ||
</collapse> | ||
</template> | ||
|
||
<script> | ||
import Collapse from '../../../../common/Collapse.vue' | ||
import ProTag from '../../../../common/ProTag.vue' | ||
export default { | ||
components: { Collapse, ProTag }, | ||
props: {}, | ||
data () { | ||
return {} | ||
}, | ||
computed: { | ||
form: { | ||
get () { | ||
return this.$store.state['open/working_form'].content | ||
}, | ||
/* We add a setter */ | ||
set (value) { | ||
this.$store.commit('open/working_form/set', value) | ||
} | ||
} | ||
}, | ||
watch: {}, | ||
mounted () { | ||
['page_title', 'page_description', 'page_thumbnail'].forEach((keyname) => { | ||
if (this.form.seo_meta[keyname] === undefined) { | ||
this.form.seo_meta[keyname] = null | ||
} | ||
}) | ||
}, | ||
methods: {} | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters