Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dev.biuro
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Biuro
dev.biuro
Commits
0fd40bf7
Commit
0fd40bf7
authored
May 02, 2019
by
Simonas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
released version
parent
aade4e9b
Changes
10
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
79 additions
and
14 deletions
+79
-14
README.md
README.md
+4
-3
biuro-contacts-public--employees--step-1.php
...lic/partials/biuro-contacts-public--employees--step-1.php
+1
-1
biuro-contacts-public--employers--step-1.php
...lic/partials/biuro-contacts-public--employers--step-1.php
+1
-1
_component--form.css
...ntent/themes/biuro/css/07-components/_component--form.css
+16
-0
_component--jobs.css
...ntent/themes/biuro/css/07-components/_component--jobs.css
+1
-1
core-d26cdaf59b.min.css
wp-content/themes/biuro/css/core-d26cdaf59b.min.css
+1
-1
footer.php
wp-content/themes/biuro/footer.php
+1
-1
header.php
wp-content/themes/biuro/header.php
+3
-3
main-eabfed8e.min.js
wp-content/themes/biuro/js/main-eabfed8e.min.js
+1
-1
main.js
wp-content/themes/biuro/js/main.js
+50
-2
No files found.
README.md
View file @
0fd40bf7
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
### DB backup
### DB backup
-
`C:\web\dev.biuro> docker exec -i dev-biuro-mysql mysqldump -udev_user -pY6V6bFkD6@GyD!wTShgFmWz! --default-character-set=utf8 dev_biuro > docker/mariadb/data-004.sql`
-
`C:\web\dev.biuro> docker exec -i dev-biuro-mysql mysqldump -udev_user -pY6V6bFkD6@GyD!wTShgFmWz! --default-character-set=utf8 dev_biuro > docker/mariadb/data-004.sql`
-
`sudo docker exec -i biuro-staging-mysql mysqldump -ustaging_user -p'qzl8pMNV^gZ&c1!7ebVsXqQh' --default-character-set=utf8 staging_biuro > docker/mariadb/data-01
2
.sql`
-
`sudo docker exec -i biuro-staging-mysql mysqldump -ustaging_user -p'qzl8pMNV^gZ&c1!7ebVsXqQh' --default-character-set=utf8 staging_biuro > docker/mariadb/data-01
3
.sql`
### DB restore
### DB restore
-
`C:\web\dev.biuro> docker exec -i dev-biuro-mysql mysql -udev_user -pY6V6bFkD6@GyD!wTShgFmWz! --default-character-set=utf8 dev_biuro < docker/mariadb/data-004.sql`
-
`C:\web\dev.biuro> docker exec -i dev-biuro-mysql mysql -udev_user -pY6V6bFkD6@GyD!wTShgFmWz! --default-character-set=utf8 dev_biuro < docker/mariadb/data-004.sql`
...
@@ -112,10 +112,10 @@ Can't share C drive
...
@@ -112,10 +112,10 @@ Can't share C drive
-
docker load --input ourdemo.tar
-
docker load --input ourdemo.tar
-
docker build -t biuro/web:0.0.2
1
.
-
docker build -t biuro/web:0.0.2
2
.
-
docker login --username=biuro --password=9Ndtjd2vKsLvGuFOeFq1KdJs
-
docker login --username=biuro --password=9Ndtjd2vKsLvGuFOeFq1KdJs
-
sudo docker login --username=biuro --password=9Ndtjd2vKsLvGuFOeFq1KdJs
-
sudo docker login --username=biuro --password=9Ndtjd2vKsLvGuFOeFq1KdJs
-
docker push biuro/web:0.0.2
1
-
docker push biuro/web:0.0.2
2
-
sudo chown -R www-data:www-data wordpress/wp-content/plugins
-
sudo chown -R www-data:www-data wordpress/wp-content/plugins
...
@@ -131,6 +131,7 @@ Can't share C drive
...
@@ -131,6 +131,7 @@ Can't share C drive
-
`sudo docker exec -it biuro-staging-mysql bash`
-
`sudo docker exec -it biuro-staging-mysql bash`
-
`sudo docker exec -it biuro-www-mysql bash`
-
`mysql -uroot -p'#w1ML4QfWaR*8dBYRL7aZJI$' --default-character-set=utf8`
-
`mysql -uroot -p'#w1ML4QfWaR*8dBYRL7aZJI$' --default-character-set=utf8`
...
...
wp-content/plugins/biuro-contacts/public/partials/biuro-contacts-public--employees--step-1.php
View file @
0fd40bf7
...
@@ -40,7 +40,7 @@ if ( ! defined( 'WPINC' ) ) die;
...
@@ -40,7 +40,7 @@ if ( ! defined( 'WPINC' ) ) die;
<div
class=
"c-form--row"
>
<div
class=
"c-form--row"
>
<label
class=
"c-form--label"
for=
"form-name"
>
<?php
_e
(
'Name, surname'
,
'biuro-contacts'
);
?>
</label>
<label
class=
"c-form--label"
for=
"form-name"
>
<?php
_e
(
'Name, surname'
,
'biuro-contacts'
);
?>
</label>
<div
class=
"c-form--input-wrap
<?php
if
(
$nameStatus
)
{
echo
"c-form--input-wrap--
$nameStatus
"
;
}
?>
"
>
<div
class=
"c-form--input-wrap
<?php
if
(
$nameStatus
)
{
echo
"c-form--input-wrap--
$nameStatus
"
;
}
?>
"
>
<input
type=
"text"
class=
"c-form--input"
id=
"form-name"
name=
"name"
value=
"
<?php
echo
$nameValue
;
?>
"
<?php
if
(
$nameStatus
==
'error'
||
$phoneStatus
!=
'error'
&&
$agreeStatus
==
'error'
)
:
?>
autofocus=
"autofocus"
<?php
endif
;
?>
>
<input
type=
"text"
class=
"c-form--input"
id=
"form-name"
name=
"name"
value=
"
<?php
echo
$nameValue
;
?>
"
<?php
if
(
$nameStatus
==
'error'
||
$phoneStatus
!=
'error'
&&
$agreeStatus
==
'error'
||
isset
(
$_GET
[
'focus'
])
)
:
?>
autofocus=
"autofocus"
<?php
endif
;
?>
>
</div>
</div>
<?php
if
(
$nameMessage
)
:
?>
<?php
if
(
$nameMessage
)
:
?>
<div
class=
"c-form--validation c-form--validation-
<?php
echo
$nameStatus
;
?>
"
>
<div
class=
"c-form--validation c-form--validation-
<?php
echo
$nameStatus
;
?>
"
>
...
...
wp-content/plugins/biuro-contacts/public/partials/biuro-contacts-public--employers--step-1.php
View file @
0fd40bf7
...
@@ -40,7 +40,7 @@ if ( ! defined( 'WPINC' ) ) die;
...
@@ -40,7 +40,7 @@ if ( ! defined( 'WPINC' ) ) die;
<div
class=
"c-form--row"
>
<div
class=
"c-form--row"
>
<label
class=
"c-form--label"
for=
"form-name"
>
<?php
_e
(
'Name, surname'
,
'biuro-contacts'
);
?>
</label>
<label
class=
"c-form--label"
for=
"form-name"
>
<?php
_e
(
'Name, surname'
,
'biuro-contacts'
);
?>
</label>
<div
class=
"c-form--input-wrap
<?php
if
(
$nameStatus
)
{
echo
"c-form--input-wrap--
$nameStatus
"
;
}
?>
"
>
<div
class=
"c-form--input-wrap
<?php
if
(
$nameStatus
)
{
echo
"c-form--input-wrap--
$nameStatus
"
;
}
?>
"
>
<input
type=
"text"
class=
"c-form--input"
id=
"form-name"
name=
"name"
value=
"
<?php
echo
$nameValue
;
?>
"
<?php
if
(
$nameStatus
==
'error'
||
$phoneStatus
!=
'error'
&&
$agreeStatus
==
'error'
)
:
?>
autofocus=
"autofocus"
<?php
endif
;
?>
>
<input
type=
"text"
class=
"c-form--input"
id=
"form-name"
name=
"name"
value=
"
<?php
echo
$nameValue
;
?>
"
<?php
if
(
$nameStatus
==
'error'
||
$phoneStatus
!=
'error'
&&
$agreeStatus
==
'error'
||
isset
(
$_GET
[
'focus'
])
)
:
?>
autofocus=
"autofocus"
<?php
endif
;
?>
>
</div>
</div>
<?php
if
(
$nameMessage
)
:
?>
<?php
if
(
$nameMessage
)
:
?>
<div
class=
"c-form--validation c-form--validation-
<?php
echo
$nameStatus
;
?>
"
>
<div
class=
"c-form--validation c-form--validation-
<?php
echo
$nameStatus
;
?>
"
>
...
...
wp-content/themes/biuro/css/07-components/_component--form.css
View file @
0fd40bf7
...
@@ -11,6 +11,22 @@
...
@@ -11,6 +11,22 @@
}
}
}
}
.l-content--divisions
{
.c-form--employees
{
@media
(--max--medium)
{
padding
:
38px
35px
20px
;
}
}
}
.l-content--regions
{
.c-form--employers
{
@media
(--max--medium)
{
padding
:
38px
35px
20px
;
}
}
}
.c-form--position
{
padding
:
38px
35px
20px
;
border-radius
:
3px
;
background-color
:
#ffffff
;
.c-form--position
{
padding
:
38px
35px
20px
;
border-radius
:
3px
;
background-color
:
#ffffff
;
@media
(--min--medium)
{
@media
(--min--medium)
{
margin
:
-40px
-15px
0
;
box-shadow
:
0
1px
31px
-23px
#6A7481
;
margin
:
-40px
-15px
0
;
box-shadow
:
0
1px
31px
-23px
#6A7481
;
...
...
wp-content/themes/biuro/css/07-components/_component--jobs.css
View file @
0fd40bf7
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
.c-jobs--headline
{
min-height
:
29px
;
margin
:
0
0
25px
;
padding
:
20px
20px
0
;
color
:
#2A3644
;
font-size
:
25px
;
font-weight
:
500
;
line-height
:
29px
;
.c-jobs--headline
{
min-height
:
29px
;
margin
:
0
0
25px
;
padding
:
20px
20px
0
;
color
:
#2A3644
;
font-size
:
25px
;
font-weight
:
500
;
line-height
:
29px
;
@media
(--max--medium)
{
@media
(--max--medium)
{
height
:
26px
;
font-size
:
18px
;
font-weight
:
500
;
line-height
:
26px
;
text-align
:
center
;
min-
height
:
26px
;
font-size
:
18px
;
font-weight
:
500
;
line-height
:
26px
;
text-align
:
center
;
}
}
}
}
...
...
wp-content/themes/biuro/css/core-
a1791931b8
.min.css
→
wp-content/themes/biuro/css/core-
d26cdaf59b
.min.css
View file @
0fd40bf7
This diff is collapsed.
Click to expand it.
wp-content/themes/biuro/footer.php
View file @
0fd40bf7
...
@@ -79,7 +79,7 @@
...
@@ -79,7 +79,7 @@
'//www.googletagmanager.com/gtm.js?id='
+
i
+
dl
;
f
.
parentNode
.
insertBefore
(
j
,
f
);
'//www.googletagmanager.com/gtm.js?id='
+
i
+
dl
;
f
.
parentNode
.
insertBefore
(
j
,
f
);
})(
window
,
document
,
'script'
,
'dataLayer'
,
'GTM-THF42F'
);
</script>
})(
window
,
document
,
'script'
,
'dataLayer'
,
'GTM-THF42F'
);
</script>
<script
src=
"/wp-content/themes/biuro/js/main-
f94c9556
.min.js"
async
></script>
<script
src=
"/wp-content/themes/biuro/js/main-
eabfed8e
.min.js"
async
></script>
<?php
wp_footer
();
?>
<?php
wp_footer
();
?>
</body>
</body>
</html>
</html>
wp-content/themes/biuro/header.php
View file @
0fd40bf7
...
@@ -32,7 +32,7 @@ define('cityID', $cityID);
...
@@ -32,7 +32,7 @@ define('cityID', $cityID);
?>
?>
<link
href=
"https://fonts.googleapis.com/css?family=Roboto:300,400,500,700"
rel=
"stylesheet"
>
<link
href=
"https://fonts.googleapis.com/css?family=Roboto:300,400,500,700"
rel=
"stylesheet"
>
<style>
<?php
include
'css/core-
a1791931b8
.min.css'
;
?>
</style>
<style>
<?php
include
'css/core-
d26cdaf59b
.min.css'
;
?>
</style>
<link
rel=
"preload"
href=
"/wp-content/themes/biuro/css/main-d091026dbb.min.css"
as=
"style"
onload=
"this.rel='stylesheet'"
>
<link
rel=
"preload"
href=
"/wp-content/themes/biuro/css/main-d091026dbb.min.css"
as=
"style"
onload=
"this.rel='stylesheet'"
>
...
@@ -143,7 +143,7 @@ global $post;
...
@@ -143,7 +143,7 @@ global $post;
while
(
$contactsPage
->
have_posts
()
)
:
while
(
$contactsPage
->
have_posts
()
)
:
$contactsPage
->
the_post
();
$contactsPage
->
the_post
();
?>
?>
<a
href=
"
<?php
echo
get_the_permalink
();
?>
"
class=
"o-btn c-btn--main c-btn--header"
>
<?php
_e
(
'Get an offer'
,
'biuro'
);
?>
</a>
<a
href=
"
<?php
echo
get_the_permalink
();
?>
?focus=form
"
class=
"o-btn c-btn--main c-btn--header"
>
<?php
_e
(
'Get an offer'
,
'biuro'
);
?>
</a>
<?php
<?php
endwhile
;
endwhile
;
wp_reset_query
();
wp_reset_query
();
...
@@ -161,7 +161,7 @@ global $post;
...
@@ -161,7 +161,7 @@ global $post;
while
(
$contactsPage
->
have_posts
()
)
:
while
(
$contactsPage
->
have_posts
()
)
:
$contactsPage
->
the_post
();
$contactsPage
->
the_post
();
?>
?>
<a
href=
"
<?php
echo
get_the_permalink
();
?>
"
class=
"o-btn c-btn--main c-btn--header"
>
<?php
_e
(
'Get a job offer'
,
'biuro'
);
?>
</a>
<a
href=
"
<?php
echo
get_the_permalink
();
?>
?focus=form
"
class=
"o-btn c-btn--main c-btn--header"
>
<?php
_e
(
'Get a job offer'
,
'biuro'
);
?>
</a>
<?php
<?php
endwhile
;
endwhile
;
wp_reset_query
();
wp_reset_query
();
...
...
wp-content/themes/biuro/js/main-
f94c9556
.min.js
→
wp-content/themes/biuro/js/main-
eabfed8e
.min.js
View file @
0fd40bf7
This source diff could not be displayed because it is too large. You can
view the blob
instead.
wp-content/themes/biuro/js/main.js
View file @
0fd40bf7
...
@@ -119,7 +119,7 @@ const mapStyles = [
...
@@ -119,7 +119,7 @@ const mapStyles = [
}
}
];
];
function
setMarkers
(
map
,
positions
)
{
function
setMarkers
(
map
,
positions
,
focus
)
{
var
info
;
var
info
;
var
bounds
=
new
window
.
google
.
maps
.
LatLngBounds
();
var
bounds
=
new
window
.
google
.
maps
.
LatLngBounds
();
...
@@ -151,6 +151,13 @@ function setMarkers (map, positions) {
...
@@ -151,6 +151,13 @@ function setMarkers (map, positions) {
info
.
open
(
map
,
this
);
info
.
open
(
map
,
this
);
});
});
}
}
if
(
focus
)
{
if
(
window
.
innerWidth
<
960
)
{
window
.
scrollTo
(
0
,
0
);
}
new
google
.
maps
.
event
.
trigger
(
marker
,
'click'
);
}
}
}
map
.
fitBounds
(
bounds
);
map
.
fitBounds
(
bounds
);
...
@@ -219,7 +226,7 @@ function initDivisionsMap (node, data) {
...
@@ -219,7 +226,7 @@ function initDivisionsMap (node, data) {
const
ID
=
(
node
&&
node
.
dataset
.
id
)
?
node
.
dataset
.
id
:
''
;
const
ID
=
(
node
&&
node
.
dataset
.
id
)
?
node
.
dataset
.
id
:
''
;
if
(
data
[
ID
])
{
if
(
data
[
ID
])
{
setMarkers
(
map
,
data
[
ID
].
filter
((
d
)
=>
{
return
d
.
lat
&&
d
.
lng
;
}));
setMarkers
(
map
,
data
[
ID
].
filter
((
d
)
=>
{
return
d
.
lat
&&
d
.
lng
;
})
,
true
);
}
else
{
}
else
{
setMarkers
(
map
,
divisions
.
filter
((
d
)
=>
{
return
d
.
lat
&&
d
.
lng
;
}));
setMarkers
(
map
,
divisions
.
filter
((
d
)
=>
{
return
d
.
lat
&&
d
.
lng
;
}));
}
}
...
@@ -375,5 +382,46 @@ if (document.querySelector('.js-modal--close')) {
...
@@ -375,5 +382,46 @@ if (document.querySelector('.js-modal--close')) {
if
(
modal
)
{
if
(
modal
)
{
modal
.
remove
();
modal
.
remove
();
}
}
if
(
document
.
querySelector
(
'[autofocus]'
))
{
document
.
querySelector
(
'[autofocus]'
).
focus
();
}
});
}
function
fallbackCopyTextToClipboard
(
text
)
{
var
textArea
=
document
.
createElement
(
'textarea'
);
textArea
.
value
=
text
;
document
.
body
.
appendChild
(
textArea
);
textArea
.
focus
();
textArea
.
select
();
try
{
var
successful
=
document
.
execCommand
(
'copy'
);
var
msg
=
successful
?
'successful'
:
'unsuccessful'
;
console
.
log
(
'Fallback: Copying text command was '
+
msg
);
}
catch
(
err
)
{
console
.
error
(
'Fallback: Oops, unable to copy'
,
err
);
}
document
.
body
.
removeChild
(
textArea
);
}
function
copyTextToClipboard
(
text
)
{
if
(
!
navigator
.
clipboard
)
{
fallbackCopyTextToClipboard
(
text
);
return
;
}
navigator
.
clipboard
.
writeText
(
text
).
then
(
function
()
{
},
function
(
err
)
{
console
.
error
(
'Async: Could not copy text: '
,
err
);
});
}
if
(
document
.
querySelector
(
'.js-copy-to-clipboard'
))
{
document
.
querySelector
(
'.js-copy-to-clipboard'
).
addEventListener
(
'click'
,
(
e
)
=>
{
e
.
preventDefault
();
copyTextToClipboard
(
window
.
location
);
});
});
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment