mirror of
https://github.com/caty21/forex-dashboard.git
synced 2026-08-07 17:57:44 +00:00
feat: enable TradingView drawing toolbar + add GitHub Actions workflow
- TvAdvancedChart: hide_top_toolbar false → outils de dessin visibles - GitHub Actions: workflow fetch-rate-data.yml (cron horaire) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
name: Fetch Rate Probabilities
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 * * * *' # toutes les heures
|
||||
workflow_dispatch: # déclenchement manuel
|
||||
|
||||
jobs:
|
||||
fetch:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20'
|
||||
|
||||
- name: Fetch rate probabilities from rateprobability.com
|
||||
run: node .github/scripts/fetch-rate-data.mjs
|
||||
|
||||
- name: Commit updated data (if changed)
|
||||
run: |
|
||||
git config user.name "github-actions[bot]"
|
||||
git config user.email "github-actions[bot]@users.noreply.github.com"
|
||||
git add data/rate-probabilities.json
|
||||
git diff --staged --quiet || git commit -m "chore: update rate-probabilities data [skip ci]"
|
||||
git push
|
||||
@@ -80,12 +80,14 @@ export function TvAdvancedChart({
|
||||
locale: "fr",
|
||||
backgroundColor: "rgba(8,12,20,0)",
|
||||
gridColor: "rgba(30,45,61,0.5)",
|
||||
hide_top_toolbar: true,
|
||||
hide_top_toolbar: false,
|
||||
hide_legend: false,
|
||||
allow_symbol_change: false,
|
||||
calendar: false,
|
||||
hide_volume: true,
|
||||
isTransparent: true,
|
||||
save_image: true,
|
||||
drawings_access: { type: "all", tools: [{ name: "Regression Trend" }] },
|
||||
},
|
||||
height
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user