Skip to content

Commit

Permalink
FIx build
Browse files Browse the repository at this point in the history
  • Loading branch information
jonburchel committed Jul 28, 2024
1 parent 039261d commit 1d5f052
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 26 deletions.
13 changes: 3 additions & 10 deletions .github/workflows/uufsolver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,12 @@ jobs:
- name: Set up Python version
uses: actions/setup-python@v1
with:
python-version: '3.11'

- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
python-version: '3.11'

- name: Create and start virtual environment
run: |
python -m venv venv
source venv/bin/activate
source venv/scripts/activate
pip install --upgrade pip
pip install -r requirements.txt
deactivate
Expand Down Expand Up @@ -78,6 +71,6 @@ jobs:
uses: azure/webapps-deploy@v2
id: deploy-to-webapp
with:
app-name: 'sample-app-github-cd'
app-name: 'uufsolver'
slot-name: 'Production'

2 changes: 1 addition & 1 deletion deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ then
fi

# Activate the virtual environment
source venv/bin/activate
source venv/scripts/activate

# Check if python3 is available
if ! command -v python3 &> /dev/null
Expand Down
2 changes: 1 addition & 1 deletion frontend/dist/tsconfig.tsbuildinfo

Large diffs are not rendered by default.

29 changes: 19 additions & 10 deletions frontend/src/pages/chat/Chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ const Chat = () => {
if (showLoadingMessage)
{
const response = await axios.get('/get_status');
if (response.data.status_message.replaceAll(".", "") != statusMessage.replaceAll(".", "")) {
setStatusMessage(response.data.status_message);
}
}
} catch (error) {
console.error('Error fetching status:', error);
Expand All @@ -101,22 +103,29 @@ const Chat = () => {
}, [showLoadingMessage]);

useEffect(() => {
console.log("useEffect for updateStatusDotsToLookAlive triggered");
const updateStatusDotsToLookAlive = async () => {
try {
if (showLoadingMessage) {
console.log("index of ... : " + statusMessage.indexOf("...."));
if (statusMessage.indexOf("....") !== -1) {
setStatusMessage(statusMessage.replace("....", "."));
console.log("showLoadingMessage: " + showLoadingMessage);
if (showLoadingMessage)
{
console.log("index of ... : " + statusMessage.indexOf("...."));
if (statusMessage.indexOf("....") !== -1)
{
setStatusMessage(statusMessage.replace("....", "."));
}
}
else {
else
{
setStatusMessage(statusMessage + ".");
}
}
} catch (error) {
console.error('Error fetching status:', error);
}

const intervalId = setInterval(updateStatusDotsToLookAlive, 333);
catch (error)
{
console.error('Error fetching status:', error);
}

const intervalId = setInterval(updateStatusDotsToLookAlive, 500);
return () => clearInterval(intervalId); // Cleanup on unmount
}
}, [showLoadingMessage]);
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<link rel="icon" type="image/x-icon" href="{{ favicon }}" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>{{ title }}</title>
<script type="module" crossorigin src="/assets/index-5af8f332.js"></script>
<script type="module" crossorigin src="/assets/index-abdda794.js"></script>
<link rel="modulepreload" crossorigin href="/assets/vendor-e3678f2f.js">
<link rel="stylesheet" href="/assets/index-61492790.css">
</head>
Expand Down
Binary file removed venv.tar.gz
Binary file not shown.

0 comments on commit 1d5f052

Please sign in to comment.