Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
2b76dc9
Add initial version of Forthic React bundle
rjose Dec 26, 2022
6eefe1f
Overhaul and clean up ForthicPage
rjose Dec 26, 2022
57ee235
Support multiple Forthic Python/React versions
rjose Dec 29, 2022
bd772ef
Implement base of Forthic Python v3
rjose Dec 30, 2022
1635614
Ported global module tests to Forthic React v1
rjose Jan 14, 2023
9fb352a
Fix architectural issues with ForthicPage
rjose Jan 20, 2023
ca5edcf
Add test target to Forthic React Makefile
rjose Jan 21, 2023
d52068b
Change version from 1.0.0 to 3.0.0
rjose Jan 21, 2023
4dddf23
Add React elements to Forthic React
rjose Jan 25, 2023
18a496a
Update modules: global, datasets, cache, org
rjose Jan 25, 2023
e9cc3ee
Removed mypy from tox.ini
rjose Feb 1, 2023
549c785
Rebuilt Forthic React bundle
rjose Feb 1, 2023
7d31c9c
Rebuilt Forthic React bundle
rjose Feb 23, 2023
e2835fc
Add QUARTER and YEAR to isoweek module
rjose Feb 23, 2023
858c15c
Update global module
rjose Feb 23, 2023
c40a590
Update RecordsTable to allow click on total cells
rjose Feb 23, 2023
ce39ca3
Misc jira module updates
rjose Feb 23, 2023
af702ba
Add typeahead styling + misc table styling
rjose Feb 23, 2023
8671536
Add ui module
rjose Feb 23, 2023
c6da68d
Show how to use CSRF with SERVER-INTERPRET
rjose Feb 23, 2023
d7fa9aa
Add select tickets in EmailCampaign + misc fixes
rjose Mar 16, 2023
cf0cfd6
Ensure Jira changelog values are sorted
rjose Mar 17, 2023
9cd727a
Initial v3 changes to use jira module
rjose Mar 17, 2023
514868a
FIX: TicketsModal selection checkboxes not in sync
rjose Mar 17, 2023
6e6d26c
Initial gsheet module for Forthic v3
rjose Mar 22, 2023
9cdd1f2
Bug fixes
rjose Mar 29, 2023
9d6cc2e
Initial version of svg module
rjose Apr 7, 2023
07a1a23
Reorganized server and examples
rjose Apr 8, 2023
d43b81b
Add cache, gsheet, and Jira examples
rjose Apr 8, 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
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@ apps/examples/static/forthic/*
.vscode
.coverage
forthic.egg-info
build
build
.tox
tmp
15 changes: 11 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ SHELL := /bin/bash
.PHONY: install-forthic test test-js credentials-server examples docs

example-server: install-forthic
pushd apps/examples && ln -sf ../../../../forthic-js . && popd
source myenv/bin/activate && cd apps/examples && FLASK_APP=run.py FLASK_ENV=development flask run --port=8000
source myenv/bin/activate && cd server && FLASK_APP=run.py FLASK_DEBUG=true flask run --port=8000

myenv:
python3 -m venv myenv
Expand All @@ -21,13 +20,21 @@ test: myenv
qa: myenv
source myenv/bin/activate && pip install tox && tox -eqa

# NOTE: The Forthic JS code has been deprecated. Please use Forthic React for client side work
test-js:
@echo
@echo "JS tests"
@echo "Forthic JS tests"
@echo "============"
node --experimental-modules ./tests/tests_js/test_all.mjs

test-all: test test-js
test-react:
@echo
@echo "Forthic React tests"
@echo "============"
cd forthic-react/v1 && npm install && CI=1 npm run test


test-all: test test-react

credentials-server:
FLASK_APP=apps/setup/run.py flask run --port=8000
11 changes: 2 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,9 @@ This will create a Python virtual environment, install Forthic into it, and run
web server on port 8000 that can run some sample applications.

## Examples
The Forthic examples run as web apps. The urls for each sample app have the same structure, which matches the directory structure:
```
http://localhost:8000/examples/<example>
```
For instance, to see the `ex_cache` example, go to:
```
http://localhost:8000/examples/ex_cache
```
The Forthic examples run as web apps. To see a list of the examples run the server using `make` and then go here: [http://localhost:8000](http://localhost:8000)

See [EXAMPLES.md](docs/EXAMPLES.md) for more info about each example.
See [EXAMPLES.md](docs/EXAMPLES.md) for more info.


## Tests
Expand Down
1 change: 0 additions & 1 deletion apps/examples/ex_cache/description.md

This file was deleted.

7 changes: 0 additions & 7 deletions apps/examples/ex_cache/main.forthic

This file was deleted.

6 changes: 0 additions & 6 deletions apps/examples/ex_cache/overview.md

This file was deleted.

42 changes: 0 additions & 42 deletions apps/examples/ex_confluence.py

This file was deleted.

1 change: 0 additions & 1 deletion apps/examples/ex_gsheet/description.md

This file was deleted.

12 changes: 0 additions & 12 deletions apps/examples/ex_gsheet/main.forthic

This file was deleted.

9 changes: 0 additions & 9 deletions apps/examples/ex_gsheet/overview.md

This file was deleted.

33 changes: 0 additions & 33 deletions apps/examples/ex_jinja.py

This file was deleted.

77 changes: 0 additions & 77 deletions apps/examples/ex_jira.py

This file was deleted.

1 change: 0 additions & 1 deletion apps/examples/ex_jira/description.md

This file was deleted.

13 changes: 0 additions & 13 deletions apps/examples/ex_jira/main.forthic

This file was deleted.

9 changes: 0 additions & 9 deletions apps/examples/ex_jira/overview.md

This file was deleted.

78 changes: 0 additions & 78 deletions apps/examples/ex_spreadsheet.py

This file was deleted.

Loading