Comments (5)
same problem
from phpdesktop.
Ive figured out the bootstrap issue, but unfortunately I do not know enough javascript to refactor the code. Its a problem with Spread syntax (...) bs5 uses this to allow an iterable, such as an array or string, to be expanded in places where zero or more arguments (for function calls) or elements (for array literals) are expected. Im trying to figure out a way to replace this. Any help from some javascript guys would be appreciated.
Its not an issue with arrays or functions because they are supported in Chrome since version 46 but its an issue with objects.
Spread in object literals is only supported in Chrome 60+
Spread in object literals
_mergeConfigObj(t, e) { const i = o(e) ? B.getDataAttribute(e, "config") : {}; return { ...this.constructor.Default, ...("object" == typeof i ? i : {}), ...(o(e) ? B.getDataAttributes(e) : {}), ...("object" == typeof t ? t : {}), }; }
from phpdesktop.
This may help, but I have not tried it personally: https://github.com/coliff/bootstrap-ie11
from phpdesktop.
Unfortunately the bundled Chromium version is extremely outdated and many modern features simply do not work.
from phpdesktop.
i had similar issue and did this temporary fix
-
Install Babel and Dependencies: Run the following command in your terminal to install Babel and its necessary dependencies:
npm install --save-dev @babel/core @babel/cli @babel/preset-env
-
Create Babel Configuration: Create a Babel configuration file named .babelrc in the root directory of your project. Inside this file, specify the presets you want to use. For example:
{ "presets": ["@babel/preset-env"] }
-
Transpile Your JavaScript: Transpile your bootstrap.bundle.min.js file using Babel. Run the following command in your terminal:
npx babel path/to/the/bootstrap.bundle.min.js --out-file new/path/to/the/outputfile/bootstrap.bundle.min.js
Replace path/to/the/bootstrap.bundle.min.js with the path to your original JavaScript file, and new/path/to/the/outputfile/bootstrap.bundle.min.js with the desired output path.
- Include Transpiled File in Laravel: Once transpilation is complete, include the transpiled JavaScript file (bootstrap.bundle.min.js) in your project. You can do this in your template file or wherever you include JavaScript files.
<script src="new/path/to/the/outputfile/bootstrap.bundle.min.js"></script>
By following these steps, you'll integrate Babel into your project to transpile the Bootstrap bundle script, ensuring compatibility with older environments.
from phpdesktop.
Related Issues (20)
- Window.print error HOT 1
- Linux build php-cgi shared library issue HOT 2
- php-desktop 57.0 not interpreting HTML HOT 1
- Update HOT 4
- Any version without chrome HOT 5
- Algum procedimento recomendado para a lib funcionar na versão 7.4 do php?
- Most links on Build/Windows are dead? HOT 2
- slowness HOT 1
- How to upgrade the CEF version? HOT 2
- Unable to play local video HOT 3
- Bootstrap js and Nav Js not work HOT 2
- Compilation : 'OVERRIDE' : unknown substitution specifier HOT 1
- Uncaught (in promise) ReferenceError: AbortController is not defined
- Codeigniter 4 sqlite3 connection problem HOT 3
- Code protection suggestion HOT 7
- Is PHP Desktop compatible with Laravel latest ( versrion 10.x now )?
- Default Window Size But
- how to update the chromium version HOT 6
- how to build this project HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phpdesktop.