diff --git a/.env.example b/.env.example deleted file mode 100644 index cf011e232..000000000 --- a/.env.example +++ /dev/null @@ -1,7 +0,0 @@ -REACT_APP_CANDY_MACHINE_CONFIG=__PLACEHOLDER__ -REACT_APP_CANDY_MACHINE_ID=__PLACEHOLDER__ -REACT_APP_TREASURY_ADDRESS=__PLACEHOLDER__ -REACT_APP_CANDY_START_DATE=__PLACEHOLDER__ - -REACT_APP_SOLANA_NETWORK=devnet -REACT_APP_SOLANA_RPC_HOST=https://explorer-api.devnet.solana.com diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml new file mode 100644 index 000000000..ab81c1dd0 --- /dev/null +++ b/.github/workflows/pages.yml @@ -0,0 +1,76 @@ +name: Deploy Images→PDF tool to Pages + +on: + push: + branches: ["main", "master", "claude/images-to-pdf-tool-SSHIS"] + paths: + - "public/images-to-pdf.html" + - ".github/workflows/pages.yml" + workflow_dispatch: + +permissions: + contents: write + pages: write + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Assemble site + run: | + mkdir -p _site + cp public/images-to-pdf.html _site/index.html + # Make the page discoverable at the repo root path + touch _site/.nojekyll + + - name: Publish to gh-pages branch + uses: peaceiris/actions-gh-pages@v4 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./_site + publish_branch: gh-pages + force_orphan: true + commit_message: "Deploy Images→PDF tool" + + - name: Enable GitHub Pages (gh-pages branch source) + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + REPO: ${{ github.repository }} + run: | + # Create the Pages site with gh-pages as source; ignore 409 if already configured. + code=$(curl -s -o /tmp/pages_create.json -w "%{http_code}" \ + -X POST \ + -H "Accept: application/vnd.github+json" \ + -H "Authorization: Bearer ${GH_TOKEN}" \ + -H "X-GitHub-Api-Version: 2022-11-28" \ + "https://api.github.com/repos/${REPO}/pages" \ + -d '{"source":{"branch":"gh-pages","path":"/"}}' || true) + echo "create status: $code" + cat /tmp/pages_create.json || true + if [ "$code" != "201" ] && [ "$code" != "409" ]; then + # Try to update (PUT) in case Pages is already enabled from a different source + code2=$(curl -s -o /tmp/pages_update.json -w "%{http_code}" \ + -X PUT \ + -H "Accept: application/vnd.github+json" \ + -H "Authorization: Bearer ${GH_TOKEN}" \ + -H "X-GitHub-Api-Version: 2022-11-28" \ + "https://api.github.com/repos/${REPO}/pages" \ + -d '{"source":{"branch":"gh-pages","path":"/"}}' || true) + echo "update status: $code2" + cat /tmp/pages_update.json || true + fi + + - name: Print site URL + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + REPO: ${{ github.repository }} + run: | + curl -s \ + -H "Accept: application/vnd.github+json" \ + -H "Authorization: Bearer ${GH_TOKEN}" \ + -H "X-GitHub-Api-Version: 2022-11-28" \ + "https://api.github.com/repos/${REPO}/pages" | tee /tmp/pages.json + url=$(grep -o '"html_url":[[:space:]]*"[^"]*"' /tmp/pages.json | head -1 | sed 's/.*"html_url":[[:space:]]*"\([^"]*\)".*/\1/') + echo "Pages URL: $url" diff --git a/IMPORTANT.txt b/IMPORTANT.txt new file mode 100644 index 000000000..963e7b46b --- /dev/null +++ b/IMPORTANT.txt @@ -0,0 +1,19 @@ +pubkey: rrtHDnD9XTeAceT6z34vJm5uLiQbuJ3MDye8xjAYP5A + +devote lion melody erode camp boss length seek hungry sleep fence coconut + + +candy machine with publickey: DgNrs5oaPWJdRLrR1511AK18UPa9rHBstchJyuUfXsbx + +{"program":{"uuid":"DgNrs5","config":"DgNrs5oaPWJdRLrR1511AK18UPa9rHBstchJyuUfXsbx"},"items":{"0":{"link":"https://arweave.net/XUq2M_D13Dj0ovffeHs54PVxO0VsJZzWiQjE_TxnUn4","name":"NFT 0","onChain":true},"1":{"link":"https://arweave.net/QXO6BWR8t91P9qTQG2zyiRL2hasSR7PuPmA3dSPbUZ4","name":"NFT 1","onChain":true}},"env":"devnet","cacheName":"temp","authority":"rrtHDnD9XTeAceT6z34vJm5uLiQbuJ3MDye8xjAYP5A"} + + +candy machine pubkey: Emt7aNgcuKwtAtyhctAyxAsH7PjaXpSPDy9kTnbwsu8z + +timestamp: 983401200 + + +must lens beach armed judge typical outside brain start beef discover will + + http://localhost:3000 + On Your Network: http://192.168.56.1:3000 \ No newline at end of file diff --git a/public/images-to-pdf.html b/public/images-to-pdf.html new file mode 100644 index 000000000..63b7d98e3 --- /dev/null +++ b/public/images-to-pdf.html @@ -0,0 +1,350 @@ + + +
+ + +Glisse tes images, réordonne-les si besoin, génère un PDF avec une image par page.
+ +