Skip to content

Commit

Permalink
Feature/clearbit (#469)
Browse files Browse the repository at this point in the history
* decoupling clearbit

* prevent multiple submits

* prevent multiple submits

* uptimizing css for country
  • Loading branch information
iruzevic authored Dec 9, 2024
1 parent 2908ed3 commit ceefcd1
Show file tree
Hide file tree
Showing 25 changed files with 967 additions and 685 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@ All notable changes to this project will be documented in this file.

This projects adheres to [Semantic Versioning](https://semver.org/) and [Keep a CHANGELOG](https://keepachangelog.com/).

## [5.6.0]

### Added

- Prevention of multiple form submissions from the same user until the API response is processed.

### Changed

- Decoupled Clearbit integration from sync submit and moved it to job queue.

## [5.5.1]

### Added
Expand Down Expand Up @@ -832,6 +842,7 @@ This projects adheres to [Semantic Versioning](https://semver.org/) and [Keep a

- Initial production release.

[5.6.0]: https://github.com/infinum/eightshift-forms/compare/5.5.1...5.6.0
[5.5.1]: https://github.com/infinum/eightshift-forms/compare/5.5.0...5.5.1
[5.5.0]: https://github.com/infinum/eightshift-forms/compare/5.4.3...5.5.0
[5.4.3]: https://github.com/infinum/eightshift-forms/compare/5.4.2...5.4.3
Expand Down
2 changes: 1 addition & 1 deletion eightshift-forms.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Description: Eightshift Forms is a complete form builder plugin that utilizes modern Block editor features with multiple third-party integrations, bringing your project to a new level.
* Author: WordPress team @Infinum
* Author URI: https://eightshift.com/
* Version: 5.5.1
* Version: 5.6.0
* Text Domain: eightshift-forms
*
* @package EightshiftForms
Expand Down
4 changes: 4 additions & 0 deletions src/Activate.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

namespace EightshiftForms;

use EightshiftForms\Db\CreateEntriesTable;
use EightshiftForms\Permissions\Permissions;
use EightshiftFormsVendor\EightshiftFormsUtils\Config\UtilsConfig;
use EightshiftFormsVendor\EightshiftLibs\Plugin\HasActivationInterface;
Expand All @@ -36,6 +37,9 @@ public function activate(): void
}
}

// Create DB table.
CreateEntriesTable::createTable();

// Do a cleanup.
\flush_rewrite_rules();
}
Expand Down
292 changes: 289 additions & 3 deletions src/Blocks/components/country/country-frontend-mandatory.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,291 @@
@import './country-style';
.choices__item {
$countries: (
ac,
ad,
ae,
af,
ag,
ai,
al,
am,
ao,
aq,
ar,
as,
at,
au,
aw,
ax,
az,
ba,
bb,
bd,
be,
bf,
bg,
bh,
bi,
bj,
bl,
bm,
bn,
bo,
bq,
br,
bs,
bt,
bv,
bw,
by,
bz,
ca,
cc,
cd,
cf,
cg,
ch,
ci,
ck,
cl,
cm,
cn,
co,
cp,
cr,
cu,
cv,
cw,
cx,
cy,
cz,
de,
dg,
dj,
dk,
dm,
do,
dz,
ea,
ec,
ee,
eg,
eh,
er,
es,
et,
eu,
fi,
fj,
fk,
fm,
fo,
fr,
ga,
gb,
gd,
ge,
gf,
gg,
gh,
gi,
gl,
gm,
gn,
gp,
gq,
gr,
gs,
gt,
gu,
gw,
gy,
hk,
hm,
hn,
hr,
ht,
hu,
ic,
id,
ie,
il,
im,
in,
io,
iq,
ir,
is,
it,
je,
jm,
jo,
jp,
ke,
kg,
kh,
ki,
km,
kn,
kp,
kr,
kw,
ky,
kz,
la,
lb,
lc,
li,
lk,
lr,
ls,
lt,
lu,
lv,
ly,
ma,
mc,
md,
me,
mf,
mg,
mh,
mk,
ml,
mm,
mn,
mo,
mp,
mq,
mr,
ms,
mt,
mu,
mv,
mw,
mx,
my,
mz,
na,
nc,
ne,
nf,
ng,
ni,
nl,
no,
np,
nr,
nu,
nz,
om,
pa,
pe,
pf,
pg,
ph,
pk,
pl,
pm,
pn,
pr,
ps,
pt,
pw,
py,
qa,
re,
ro,
rs,
ru,
rw,
sa,
sb,
sc,
sd,
se,
sg,
sh,
si,
sj,
sk,
sl,
sm,
sn,
so,
sr,
ss,
st,
sv,
sx,
sy,
sz,
ta,
tc,
td,
tf,
tg,
th,
tj,
tk,
tl,
tm,
tn,
to,
tr,
tt,
tv,
tw,
tz,
ua,
ug,
um,
un,
us,
uy,
uz,
va,
vc,
ve,
vg,
vi,
vn,
vu,
wf,
ws,
xk,
ye,
yt,
za,
zm,
zw,
);

.es-field--country {
@extend %country-choices-icons;
$width: 20px;
$height: 15px;

&::before {
content: '';
background-image: url('../public/flags.png');
background-repeat: no-repeat;
inline-size: $width;
block-size: $height;
vertical-align: middle;
margin-inline-end: 10px;
display: inline-block;
}

$i: 0;

@each $country in $countries {
&[data-country-code="#{$country}"]::before {
background-position: -#{$i * $width} 0;
}

$i: $i + 1;
}

// If placeholder is used.
&:not([data-country-code])::before {
display: none !important; // stylelint-disable-line declaration-no-important
}
}
Loading

0 comments on commit ceefcd1

Please sign in to comment.