Feature request regarding COR/local use of Transcrypt files in combination with pywebview

Aperta
#824 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
javascript, python

Direzione di ricerca

The issue names Transcrypt-generated JavaScript files, local HTML opened directly in a browser, and pywebview, but no source files, entry points, or tests. Start by locating how Transcrypt emits JavaScript modules and determine whether a non-modular output mode can support local pywebview use without manually removing export statements.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Hello,

if I am correct you cannot use Transcrypt generated JS files embedded in a local html file by directly opening this file in a local browser as javascript modules are only allowed to be embedded through http/https?

I would like to use Transcrypt locally in combination with pywebview to create user interfaces to python programs just with HTML and javascript. Pywebview opens a browsing window and allows communication with a python script to the java script in this browsing window.

As I like this approach and I see no need to start a server on the local machine with pywebview, is it possible to tell transcrypt just to put out non modularized java script code? Would that be a new feature? Or would I have to replace all the "export"-statements in the Javascript file manually and would it still work then?

Kind regards
Bastian

Lingua principale
Python
Stelle
2.9k
Fork
218
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di TranscryptOrg/Transcrypt

Tutte le issue di TranscryptOrg/Transcrypt

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.