Skip to content

Commit

Permalink
Add build process to publish
Browse files Browse the repository at this point in the history
  • Loading branch information
fsbraun committed Mar 18, 2024
1 parent 2d473aa commit 25fadd0
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 12 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/publish-to-live-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ jobs:
pip install
build
--user
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- name: Install dependencies
run: npm install
- name: Build client
run: webpack --mode production
- name: Build a binary wheel and a source tarball
run: >-
python -m
Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/publish-to-test-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,25 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Python 3.9
- name: Set up Python 3.12
uses: actions/setup-python@v1
with:
python-version: 3.9
python-version: 3.12

- name: Install pypa/build
run: >-
python -m
pip install
build
--user
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- name: Install dependencies
run: npm install
- name: Build client
run: webpack --mode production

- name: Build a binary wheel and a source tarball
run: >-
python -m
Expand Down
18 changes: 9 additions & 9 deletions private/css/cms.linkfield.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
font-size: 0.8rem;
position: relative;
input[type="text"] {
padding-right: 3em;
background: var(--dca-white) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="16" fill="%23808080" viewBox="0 0 16 16"><path d="M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z"/></svg>') no-repeat right center;
padding-inline-end: 3em;
background: var(--dca-white) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="16" fill="%23808080" viewBox="0 0 16 16"><path d="M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z"/></svg>') no-repeat inline-end center;
background-size: auto 1em;
}
.cms-linkfield-selected {
Expand All @@ -18,16 +18,16 @@
z-index: 1;
visibility: hidden;
position: absolute;
max-height: 400px;
max-block-size: 400px;
overflow: auto;
left: 0;
top: 100%;
inset-inline-start: 0;
inset-block-start: 100%;
border: 1px solid var(--dca-gray-lighter);
background: var(--dca-white);
width: 120%;
inline-size: 120%;
resize: both;
border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px;
border-end-start-radius: 4px;
border-end-end-radius: 4px;
box-shadow: 0 1.5px 1.5px rgba(var(--dca-shadow),.4);
.cms-linkfield-error {
color: red;
Expand All @@ -37,7 +37,7 @@
padding: 0.5rem 6px;
white-space: nowrap;
font-weight: normal;
border-bottom: 1px solid var(--dca-gray-lighter);
border-block-end: 1px solid var(--dca-gray-lighter);
&:last-child {
border-bottom: none;
}
Expand Down
2 changes: 1 addition & 1 deletion private/js/tiptap_plugins/cms.balloon-toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export default class CmsBalloonToolbar {
const startPos = resolvedPos.start(depth);
this.toolbar.dataset.block = startPos;
const pos = this.editor.view.coordsAtPos(startPos);
this.toolbar.style.top = `${pos.top + window.scrollY - this.ref.top}px`;
this.toolbar.style.insetBlockStart = `${pos.top + window.scrollY - this.ref.top}px`;
// TODO: Set the size of the balloon according to the fontsize
// this.toolbar.style.setProperty('--size', this.editor.view. ...)
}
Expand Down

0 comments on commit 25fadd0

Please sign in to comment.