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

SXDEDPCXZIC-217 / remove extras from the package form #291

Open
wants to merge 60 commits into
base: uat
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
658f5f3
Merge pull request #255 from dpc-sdp/SXDEDPCXZIC-223
aleks-iv Sep 8, 2023
2c15d11
SXDEDPCXZIC-220 / add category list name accessability
alexmorev Sep 10, 2023
a3f509c
Merge pull request #249 from dpc-sdp/release-2.4.0
joelwigley Sep 11, 2023
47fae70
SXDEDPCXZIC-220 / add spinner and change suggestions style
alexmorev Sep 12, 2023
396d600
SXDEDPCXZIC-220 / fix suggestion box border
alexmorev Sep 12, 2023
4c3d705
Merge pull request #256 from dpc-sdp/release-2.5.0
joelwigley Sep 13, 2023
ed32d12
SXDEDPCXZIC-229 / allow sysadmins update other users without syspass
mutantsan Sep 13, 2023
356f27e
Merge branch 'SXDEDPCXZIC-229' into develop
mutantsan Sep 13, 2023
74d2d4f
SXDEDPCXZIC-225 / html email
mutantsan Sep 15, 2023
8109500
Merge branch 'SXDEDPCXZIC-225' into develop
mutantsan Sep 15, 2023
3762f12
SXDEDPCXZIC-225 / use png instead of svg
mutantsan Sep 15, 2023
63e81d7
Merge branch 'SXDEDPCXZIC-225' into develop
mutantsan Sep 15, 2023
d1d3ae0
SXDEDPCXZIC-225 / fix mail style
mutantsan Sep 15, 2023
b44411d
Merge branch 'SXDEDPCXZIC-225' into develop
mutantsan Sep 15, 2023
3682d49
SXDEDPCXZIC-225 / fix mail style v2
mutantsan Sep 15, 2023
a38e654
Merge branch 'SXDEDPCXZIC-225' into develop
mutantsan Sep 15, 2023
aee393b
SXDEDPCXZIC-225 / fix mail style v3
mutantsan Sep 15, 2023
b32df23
Merge branch 'SXDEDPCXZIC-225' into develop
mutantsan Sep 15, 2023
f8ae76d
SXDEDPCXZIC-230 / fix search suggestions styles
alexmorev Sep 21, 2023
015fca2
SXDEDPCXZIC-225 / fix mail style v4
mutantsan Sep 25, 2023
771a434
Merge branch 'SXDEDPCXZIC-225' into develop
mutantsan Sep 25, 2023
35b86ef
SXDEDPCXZIC-225 / fix mail style v5
mutantsan Sep 25, 2023
c088247
Merge branch 'SXDEDPCXZIC-225' into develop
mutantsan Sep 25, 2023
8566cc4
SXDEDPCXZIC-225 / fix mail style v6
mutantsan Sep 25, 2023
0a498ba
Merge branch 'SXDEDPCXZIC-225' into develop
mutantsan Sep 25, 2023
0ec8022
SXDEDPCXZIC-225 / fix mail style v7
mutantsan Sep 25, 2023
9067869
Merge branch 'SXDEDPCXZIC-225' into develop
mutantsan Sep 25, 2023
e4beca3
SXDEDPCXZIC-207 / improve pages extension
aleks-iv Sep 25, 2023
1030de5
Merge branch 'SXDEDPCXZIC-207' into develop
aleks-iv Sep 25, 2023
dad1c5f
SXDEDPCXZIC-207 / fix base url
aleks-iv Sep 25, 2023
6cbeff3
Merge pull request #276 from dpc-sdp/SXDEDPCXZIC-207
aleks-iv Sep 25, 2023
d2f835d
SXDEDPCXZIC-207 / fix color
aleks-iv Sep 26, 2023
ffdfc6c
Merge pull request #277 from dpc-sdp/SXDEDPCXZIC-207
aleks-iv Sep 26, 2023
0fa7600
Merge pull request #272 from dpc-sdp/release-2.4
joelwigley Sep 26, 2023
f58b742
SXDEDPCXZIC-230 / fix clickability on the suggested result
alexmorev Sep 27, 2023
780c649
SXDEDPCXZIC-235 / redirect after SSO login
alexmorev Oct 2, 2023
d8b272c
SXDEDPCXZIC-233 / add reminder for users of SSO
alexmorev Oct 5, 2023
82e88e5
Merge pull request #280 from dpc-sdp/SXDEDPCXZIC-233
alexmorev Oct 5, 2023
76f9a36
SXDEDPCXZIC-234_DATAVIC-588 / request access to datasets from DEECA
mutantsan Oct 9, 2023
4c9d7a6
Merge branch 'master' into SXDEDPCXZIC-234_DATAVIC-588
mutantsan Oct 9, 2023
1455c2c
Merge branch 'SXDEDPCXZIC-234_DATAVIC-588' into develop
mutantsan Oct 9, 2023
8da9b28
fix is_delwp_vector_data helper after conflict resolving
mutantsan Oct 9, 2023
4468ef3
:SXDEDPCXZIC-234_DATAVIC-588 / update form styles
mutantsan Oct 9, 2023
cdfb7a1
Merge branch 'SXDEDPCXZIC-234_DATAVIC-588' into develop
mutantsan Oct 9, 2023
d903ab2
SXDEDPCXZIC-234_DATAVIC-588 / add hidden extras to package form, upda…
mutantsan Oct 10, 2023
4cdf829
Merge branch 'SXDEDPCXZIC-234_DATAVIC-588' into develop
mutantsan Oct 10, 2023
1b7cf6f
SXDEDPCXZIC-238 / redirect after SSO login to dashboard datasets
alexmorev Oct 13, 2023
54b5b76
SXDEDPCXZIC-239_DATAVIC-617 / remove datatable left border
alexmorev Oct 13, 2023
466f72c
fixed conflict
Oct 19, 2023
0f0aa3a
Merge branch 'release-2.6.0' into SXDEDPCXZIC-207
aleks-iv Nov 6, 2023
56c4ecc
SXDEDPCXZIC-207 / update pages dropdown
aleks-iv Nov 6, 2023
5e3b8a1
Merge pull request #286 from dpc-sdp/SXDEDPCXZIC-207
aleks-iv Nov 6, 2023
70545bd
Merge branch 'SXDEDPCXZIC-207' into develop
aleks-iv Nov 6, 2023
55c2369
Merge pull request #287 from dpc-sdp/uat
joelwigley Nov 13, 2023
63eb018
SXDEDPCXZIC-243_DATAVIC-623 / fix activity feed changes
agmorev Nov 19, 2023
a858e79
Merge pull request #288 from dpc-sdp/SXDEDPCXZIC-243
alexmorev Nov 19, 2023
ea93854
SXDEDPCXZIC-244 / add api buttons, update resource item and package item
aleks-iv Nov 29, 2023
6af82de
Merge branch 'SXDEDPCXZIC-244' into develop
aleks-iv Nov 29, 2023
a6b5d34
SXDEDPCXZIC-217 / remove extras from the package form
mutantsan Dec 5, 2023
2667418
Merge branch 'develop' into SXDEDPCXZIC-217
mutantsan Dec 5, 2023
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
16 changes: 11 additions & 5 deletions ckanext/datavic_iar_theme/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,20 @@

import ckan.plugins.toolkit as tk


CONFIG_PARENT_SITE_URL = "ckan.parent_site_url"
DEFAULT_PARENT_SITE_URL = "https://www.data.vic.gov.au/"

CONFIG_HOTJAR_ENABLED = "ckan.tracking.hotjar_enabled"
CONFIG_HOTJAR_HJID = "ckan.tracking.hotjar.hjid"
CONFIG_HOTJAR_HJSV = "ckan.tracking.hotjar.hjsv"
CONFIG_SHOW_BLOG = "ckan.pages.show_blog_button"
CONFIG_PAGES_BASE_URL = "ckan.pages.base_url"


def get_parent_site_url() -> str:
return tk.config.get(CONFIG_PARENT_SITE_URL, DEFAULT_PARENT_SITE_URL)
return tk.config[CONFIG_PARENT_SITE_URL]


def hotjar_tracking_enabled() -> bool:
return tk.asbool(tk.config.get(CONFIG_HOTJAR_ENABLED))
return tk.config[CONFIG_HOTJAR_ENABLED]


def get_hotjar_hsid() -> str | None:
Expand All @@ -26,3 +25,10 @@ def get_hotjar_hsid() -> str | None:
def get_hotjar_hjsv() -> str | None:
return tk.config.get(CONFIG_HOTJAR_HJSV)


def show_blog_button() -> bool:
return tk.config[CONFIG_SHOW_BLOG]


def get_pages_base_url() -> str:
return tk.config[CONFIG_PAGES_BASE_URL]
14 changes: 14 additions & 0 deletions ckanext/datavic_iar_theme/config_declaration.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: 1
groups:
- annotation: ckanext-datavic-iar-theme
options:
- key: ckan.parent_site_url
default: https://www.data.vic.gov.au/

- key: ckan.tracking.hotjar_enabled
type: bool
default: False

- key: ckan.tracking.hotjar.hjid

- key: ckan.tracking.hotjar.hjsv
95 changes: 95 additions & 0 deletions ckanext/datavic_iar_theme/grunt/sass/_dataset.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
.via-iar-delwp-dataset {
.delwp-resource-list {
.resource-item {
align-items: center;
gap: 1rem;
padding-bottom: 1rem;

.resource-icon img {
width: 50px;
}

.resource-summary {
p {
margin: 0;
}

.resource-summary__formats {
font-size: rpl-font-size('xs');
}
}

.btn-group .btn {
border: 2px rpl-color() solid;
background: rpl-color('white');
color: #545454;
}
}
}

.delwp-access-notes {
margin-top: 2rem;
margin-bottom: 1rem;
}

#data-request-form {
margin-top: 4rem;

& > h3 {
margin-bottom: 1rem;
}

& > p {
font-size: rpl-font-size('m');
margin-bottom: 2rem;
}

.form {
.form-group {
label {
float: unset;
width: auto;
color: #1a1a1a;
font-size: rpl-font-size('m');
font-family: rpl-font('bold');
margin-bottom: 1rem;

span.required {
color: #aa0028;
font-family: rpl-font('regular');
font-size: rpl-font-size('s');
font-weight: normal;
}
}

.controls {
margin-left: 0;
}

input {
height: 50px;
}

input,
textarea {
background-color: #f5f5f5;
border-color: #666666;
box-shadow: none;
}
}

.form-actions {
float: left;
}
}

@include rpl_breakpoint('m') {
max-width: 75%;
}
}


#dataset-contact {
display: none;
}
}
17 changes: 13 additions & 4 deletions ckanext/datavic_iar_theme/grunt/sass/_login.scss
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ a.close {


.row.user-login-page,
.row.user-register-page {
.row.user-register-page,
.row.user-reset-page {
.primary {
float: none;

Expand Down Expand Up @@ -139,9 +140,11 @@ a.close {
gap: 30px;
justify-content: space-between;
align-items: center;

margin-top: rem(48px);

&.form-reset {
justify-content: flex-end;
}

.sign-up {
font-family: "Vic-Bold", arial, sans-serif;
Expand All @@ -154,6 +157,10 @@ a.close {
.btn {
width: 25%;

&.btn-reset {
width: 35%;
}

&:disabled {
width: unset;
margin-left: auto;
Expand Down Expand Up @@ -201,6 +208,10 @@ a.close {

.btn {
padding: 16px;

&.btn-reset {
width: fit-content;
}
}
}
}
Expand All @@ -212,7 +223,6 @@ a.close {
}
}


.row.user-register-page {
.division-line {
margin-bottom: rem(24px);
Expand All @@ -237,7 +247,6 @@ a.close {
margin-bottom: rem(36px);
}
}

}

.division-line {
Expand Down
110 changes: 110 additions & 0 deletions ckanext/datavic_iar_theme/grunt/sass/_menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -356,3 +356,113 @@ $rpl-menu-gutter: rpl_grid_get_gutter($rpl-grid) !default;
height: 3rem;
}
}

.pages-menu {
.rpl-link {
color: rpl-color('secondary');

&::after {
content: none;
border: none;
}
}

.dropdown {
display: none;
position: absolute;
top: 100%;
z-index: 100;
background-color: rpl-color('primary');
transition: background-color 0.3s ease;
inset: -40px 60px auto -40px;

.container {
display: flex;
flex-direction: column;
padding: 28px 48px 40px;

.dropdown-header {
padding: 0;

h3 {
color: #1A1A1A;
font-size: 20px;
font-weight: 700;
padding: 0 8px;
}
}

.dropdown-items {
list-style-type: none;
padding: 0;

li {
border-bottom: 1px solid rpl-color('light_primary');

a {
color: #1A1A1A;
font-size: 14px;
padding: 12px 8px;
}
}

.dropdown-item:hover {
background-color: rpl-color('primary');
}
}
}
}
}

#main-menu {
.pages-menu {
.rpl-link {
@include rpl_typography_font('xs', 1em, 'bold');
background-color: transparent;
padding: 0;
position: relative;
margin: $rpl-menu-horizontal-items-root-margin;

&::after {
content: "";
display: inline-block;
font-family: FontAwesome;
color: rpl-color('secondary');
}

&.show {
&::after {
transform: rotate(180deg);
transition: transform 0.3s ease;
}
}
}

.dropdown {
margin-left: 20px;
inset: 0 60px auto -40px;

.container {
flex-direction: row;

.dropdown-header {
width: 25%;
}

.dropdown-items {
width: 25%
}
}
}
}
}

.dropdown-shown {
background-color: rpl-color('light_primary_2') !important;
transition: background-color 0.3s ease;
}

.dropdown-hidden {
background-color: rpl-color('primary') !important;
transition: background-color 0.3s ease;
}
Loading