Skip to content

Commit

Permalink
Merge branch 'main' into depfu/batch_all/yarn/2023-07-17
Browse files Browse the repository at this point in the history
  • Loading branch information
rjsparks committed Aug 11, 2023
2 parents 6b2f617 + a94ba22 commit b7c60b8
Show file tree
Hide file tree
Showing 156 changed files with 3,215 additions and 2,600 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,9 @@ jobs:
echo "Running tests..."
if [[ "x${{ github.event.inputs.ignoreLowerCoverage }}" == "xtrue" ]]; then
echo "Lower coverage failures will be ignored."
./ietf/manage.py test --settings=settings_postgrestest --ignore-lower-coverage
./ietf/manage.py test --validate-html-harder --settings=settings_test --ignore-lower-coverage
else
./ietf/manage.py test --settings=settings_postgrestest
./ietf/manage.py test --validate-html-harder --settings=settings_test
fi
coverage xml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
exit 1
fi
echo "Running tests..."
./ietf/manage.py test --settings=settings_postgrestest
./ietf/manage.py test --validate-html-harder --settings=settings_test
coverage xml
- name: Upload Coverage Results to Codecov
Expand Down
16 changes: 8 additions & 8 deletions .pnp.cjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"args": [
"${workspaceFolder}/ietf/manage.py",
"test",
"--settings=settings_postgrestest"
"--settings=settings_test"
],
"group": "test",
"presentation": {
Expand All @@ -68,7 +68,7 @@
"args": [
"${workspaceFolder}/ietf/manage.py",
"test",
"--settings=settings_postgrestest",
"--settings=settings_test",
"--pattern=tests_js.py"
],
"group": "test",
Expand Down
Binary file not shown.
Binary file not shown.
4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
BSD 3-Clause License

Copyright (c) 2008-2022, The IETF Trust
Copyright (c) 2008-2023, The IETF Trust
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand All @@ -26,4 +26,4 @@ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ If VS Code is not available to you, in your clone, type `cd docker; ./run`
Once the containers are started, run the tests to make sure your checkout is a good place to start from (all tests should pass - if any fail, ask for help at tools-develop@). Inside the app container's shell type:
```sh
ietf/manage.py test --settings=settings_postgrestest
ietf/manage.py test --settings=settings_test
```

Note that we recently moved the datatracker onto PostgreSQL - you may still find older documentation that suggests testing with settings_sqlitetest. That will no longer work.
Expand Down Expand Up @@ -228,7 +228,7 @@ before activating a new release.
From a datatracker container, run the command:
```sh
./ietf/manage.py test --settings=settings_postgrestest
./ietf/manage.py test --settings=settings_test
```

> You can limit the run to specific tests using the `--pattern` argument.
Expand Down
15 changes: 15 additions & 0 deletions client/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,21 @@ const siteStore = useSiteStore()
const appContainer = ref(null)
// --------------------------------------------------------------------
// Set user theme
// --------------------------------------------------------------------
const desiredTheme = window.localStorage?.getItem('theme')
if (desiredTheme === 'dark') {
siteStore.theme = 'dark'
} else if (desiredTheme === 'light') {
siteStore.theme = 'light'
} else if (window.matchMedia("(prefers-color-scheme: dark)").matches) {
siteStore.theme = 'dark'
} else {
siteStore.theme = 'light'
}
// --------------------------------------------------------------------
// Handle browser resize
// --------------------------------------------------------------------
Expand Down
7 changes: 7 additions & 0 deletions client/agenda/Agenda.vue
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,13 @@ onMounted(() => {
color: $blue-700;
position: relative;
@at-root .theme-dark & {
border: 1px solid $blue-800;
background: linear-gradient(to top, lighten($blue-900, 2%), lighten($blue-900, 5%));
color: $blue-100;
box-shadow: inset 0 0 0 1px #000;
}
> button {
position: absolute;
top: 15px;
Expand Down
18 changes: 18 additions & 0 deletions client/agenda/AgendaDetailsModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,10 @@ async function fetchSessionMaterials () {
.bi {
font-size: 20px;
color: $indigo;
@at-root .theme-dark & {
color: $indigo-300;
}
}
.detail-header {
Expand Down Expand Up @@ -343,6 +347,11 @@ async function fetchSessionMaterials () {
border-radius: 5px;
font-weight: 500;
@at-root .theme-dark & {
background-color: $gray-900;
border-color: $gray-700;
}
a {
cursor: pointer;
Expand All @@ -365,6 +374,11 @@ async function fetchSessionMaterials () {
margin-top: 12px;
border-radius: 5px;
@at-root .theme-dark & {
background-color: $gray-900;
border-color: $gray-700;
}
.bi {
color: $blue;
}
Expand All @@ -377,6 +391,10 @@ async function fetchSessionMaterials () {
border: none;
border-radius: 5px;
display: block;
@at-root .theme-dark & {
background-color: $gray-900;
}
}
}
Expand Down
44 changes: 44 additions & 0 deletions client/agenda/AgendaFilter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -217,30 +217,58 @@ function toggleFilterGroup (key) {
padding: 5px;
border-radius: 10px;
@at-root .theme-dark & {
background-color: $gray-800;
}
&:nth-child(2) {
background-color: $blue-100;
@at-root .theme-dark & {
background-color: $gray-800;
}
.agenda-personalize-areamain {
button {
color: $blue-600;
@at-root .theme-dark & {
color: $blue-100;
}
}
}
.agenda-personalize-groups {
background-color: lighten($blue-100, 7%);
@at-root .theme-dark & {
background-color: $gray-700;
}
}
}
&:nth-child(3) {
background-color: $orange-100;
@at-root .theme-dark & {
background-color: $gray-800;
}
.agenda-personalize-areamain {
button {
color: $orange-600;
@at-root .theme-dark & {
color: $orange-100;
}
}
}
.agenda-personalize-groups {
background-color: lighten($orange-100, 7%);
@at-root .theme-dark & {
background-color: $gray-700;
}
}
}
Expand Down Expand Up @@ -276,6 +304,12 @@ function toggleFilterGroup (key) {
transition: background-color .5s ease;
position: relative;
@at-root .theme-dark & {
background-color: $gray-600;
border-color: $gray-700;
color: #FFF;
}
> .bi {
margin-right: .5rem;
}
Expand Down Expand Up @@ -310,6 +344,10 @@ function toggleFilterGroup (key) {
flex: 1;
display: flex;
flex-wrap: wrap;
@at-root .theme-dark & {
background-color: $gray-700;
}
}
&-group {
Expand All @@ -324,6 +362,12 @@ function toggleFilterGroup (key) {
color: $gray-600;
margin-right: 0px;
@at-root .theme-dark & {
background-color: $gray-600;
border-color: $gray-700;
color: #FFF;
}
@media screen and (max-width: $bs5-break-sm) {
font-size: .9em;
}
Expand Down
12 changes: 12 additions & 0 deletions client/agenda/AgendaQuickAccess.vue
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,9 @@ function scrollToNow (ev) {
</script>
<style lang="scss">
@import "bootstrap/scss/functions";
@import "bootstrap/scss/variables";
.agenda-quickaccess {
width: 300px;
Expand Down Expand Up @@ -252,6 +255,10 @@ function scrollToNow (ev) {
text-align: center;
margin-top: 12px;
@at-root .theme-dark & {
border-color: $secondary;
}
@media screen and (max-width: 1350px) {
flex-direction: column;
}
Expand All @@ -267,6 +274,11 @@ function scrollToNow (ev) {
background-color: #FFF;
transform: translate(-50%, 0);
text-transform: uppercase;
@at-root .theme-dark & {
background-color: $gray-900;
color: #FFF;
}
}
button {
Expand Down
Loading

0 comments on commit b7c60b8

Please sign in to comment.