-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Next #12
base: main
Are you sure you want to change the base?
Next #12
Changes from 23 commits
ed68ae1
67c75d5
2486f47
66db32b
5deb518
170924e
82d7586
ac99e9a
79f802b
53e9ff6
a6b9de1
e35ad86
fabc8dc
c77f61c
e870fc7
d9677d3
3900f77
8363088
aad0399
75853f8
cac9c8b
0bf0a46
5d705cb
4edc254
87e1726
0fd89e7
2ed1208
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,3 +45,4 @@ build/ | |
|
||
# Node file for website | ||
node_modules | ||
.local-chrome |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ command: | |
flutter: ">=3.19.0" | ||
dependencies: | ||
collection: ^1.18.0 | ||
mix: ^1.5.4 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Verification agent 🧩 Analysis chainVerify the mix package version. Let's verify if version 🌐 Web query:
💡 Result: The latest version of the For context:
Citations:
Mix package version mismatch detected The web query shows that the latest stable version of the |
||
# publish: | ||
# hooks: | ||
# pre: melos run gen:build | ||
|
@@ -78,6 +79,10 @@ scripts: | |
packageFilters: | ||
dirExists: test | ||
|
||
clean: | ||
run: melos exec -- flutter clean | ||
description: Clean all packages | ||
|
||
brb: | ||
run: melos run gen:build | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Add directories or file patterns to ignore during indexing (e.g. foo/ or *.csv) | ||
.dart_tool/ | ||
.idea/ | ||
.vscode/ | ||
coverage/ | ||
build/ | ||
ios/ | ||
macos/ | ||
web/ | ||
windows/ | ||
linux/ |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Flutter/Dart/Pub related | ||
# Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock. | ||
pubspec.lock | ||
|
||
# Miscellaneous | ||
*.class | ||
*.log | ||
*.pyc | ||
*.swp | ||
.DS_Store | ||
.atom/ | ||
.buildlog/ | ||
.history | ||
.svn/ | ||
migrate_working_dir/ | ||
|
||
# IntelliJ related | ||
*.iml | ||
*.ipr | ||
*.iws | ||
.idea/ | ||
|
||
# The .vscode folder contains launch configuration and tasks you configure in | ||
# VS Code which you may wish to be included in version control, so this line | ||
# is commented out by default. | ||
#.vscode/ | ||
|
||
# Ignoring native folders of the example as they can be re-generated easily using: | ||
# flutter create --platforms=android,ios,web,windows,macos . | ||
|
||
|
||
# Flutter/Dart/Pub related | ||
**/doc/api/ | ||
.dart_tool/ | ||
.flutter-plugins | ||
.flutter-plugins-dependencies | ||
.packages | ||
.pub-cache/ | ||
.pub/ | ||
build/ | ||
|
||
# FVM Version Cache | ||
.fvm/ | ||
.firebase | ||
|
||
# Node file for website | ||
node_modules | ||
.local-chrome |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,2 @@ | ||
include: package:flutter_lints/flutter.yaml | ||
|
||
# Additional information about this file can be found at | ||
# https://dart.dev/guides/language/analysis-options | ||
analyzer: | ||
errors: | ||
invalid_annotation_target: ignore | ||
body_might_complete_normally_nullable: ignore | ||
plugins: | ||
- custom_lint | ||
exclude: | ||
- '**.mapper.dart' | ||
- '**/generated_plugin_registrant.dart' | ||
linter: | ||
rules: | ||
public_member_api_docs: false | ||
always_use_package_imports: false | ||
prefer_relative_imports: true | ||
library_private_types_in_public_api: false | ||
extends: ../../shared_analysis_options.yaml |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>iframe template</title> | ||
<style> | ||
/* CSS_PLACEHOLDER */ | ||
body, html { | ||
margin: 0; | ||
padding: 0; | ||
height: 100%; | ||
overflow: hidden; | ||
} | ||
iframe { | ||
width: 100%; | ||
height: 100%; | ||
border: none; | ||
} | ||
</style> | ||
<script> | ||
// Function to load URL into iframe | ||
function loadURL(url) { | ||
document.getElementById('content-frame').src = url; | ||
} | ||
|
||
|
||
|
||
|
||
// Function to safely execute code in the iframe | ||
function executeInIframe(code) { | ||
return new Promise((resolve, reject) => { | ||
const iframe = document.getElementById('content-frame'); | ||
if (!iframe) { | ||
reject('Iframe not found'); | ||
return; | ||
} | ||
|
||
// Ensure the iframe is fully loaded | ||
if (iframe.contentWindow.document.readyState === 'complete') { | ||
try { | ||
const result = iframe.contentWindow.eval(code); | ||
resolve(result); | ||
} catch (error) { | ||
reject(error); | ||
} | ||
} else { | ||
iframe.onload = () => { | ||
try { | ||
const result = iframe.contentWindow.eval(code); | ||
resolve(result); | ||
} catch (error) { | ||
reject(error); | ||
} | ||
}; | ||
} | ||
}); | ||
} | ||
|
||
|
||
// Function to clear the DartPad editor | ||
function clearDartPadEditor() { | ||
return executeInIframe(` | ||
var editor = document.querySelector('.CodeMirror')?.CodeMirror; | ||
if (!editor) return; | ||
editor.setValue(''); | ||
editor.setCursor({line: 0, ch: 0}); | ||
editor.focus(); | ||
console.log('DartPad editor cleared!'); | ||
`); | ||
} | ||
|
||
// Function to add content to the DartPad editor | ||
function addToDartPadEditor(content) { | ||
return executeInIframe(` | ||
var editor = document.querySelector('.CodeMirror')?.CodeMirror; | ||
if (!editor) return; | ||
var currentContent = editor.getValue(); | ||
var newContent = currentContent ? currentContent + '\\n' + ${JSON.stringify(content)} : ${JSON.stringify(content)}; | ||
editor.setValue(newContent); | ||
editor.setCursor(editor.lineCount(), 0); | ||
editor.focus(); | ||
console.log('Content added to DartPad editor!'); | ||
`); | ||
} | ||
|
||
// Function to set content in the DartPad editor | ||
function setDartPadEditorContent(content) { | ||
return executeInIframe(` | ||
var editor = document.querySelector('.CodeMirror')?.CodeMirror; | ||
if (!editor) return; | ||
editor.setValue(${JSON.stringify(content)}); | ||
editor.setCursor(editor.lineCount(), 0); | ||
editor.focus(); | ||
console.log('DartPad editor content set!'); | ||
`); | ||
} | ||
</script> | ||
</head> | ||
<body> | ||
<iframe id="content-frame" src="https://dartpad.dev"></iframe> | ||
|
||
</body> | ||
</html> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
description: This file stores settings for Dart & Flutter DevTools. | ||
documentation: https://docs.flutter.dev/tools/devtools/extensions#configure-extension-enablement-states | ||
extensions: |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"last_modified": "2025-02-11T14:10:52.864184Z", | ||
"files": [ | ||
".superdeck/assets/thumbnail_cS8UY7ii.png", | ||
".superdeck/assets/thumbnail_nPPBLQ6k.png", | ||
".superdeck/assets/thumbnail_WyJ8NjmF.png", | ||
".superdeck/assets/thumbnail_F2fTbXOG.png", | ||
".superdeck/assets/thumbnail_0zqy1l5c.png", | ||
".superdeck/assets/thumbnail_RiDZbaFZ.png", | ||
".superdeck/assets/thumbnail_z34aal1W.png", | ||
".superdeck/assets/thumbnail_H2GzZVSx.png", | ||
".superdeck/assets/thumbnail_SJncL4H2.png", | ||
".superdeck/assets/thumbnail_ybLDY8oi.png", | ||
".superdeck/assets/thumbnail_aTAXFyQ7.png", | ||
".superdeck/assets/thumbnail_9mHDFwa9.png", | ||
".superdeck/assets/thumbnail_9BmK4SPw.png", | ||
".superdeck/assets/thumbnail_3sLdrfsM.png", | ||
".superdeck/assets/thumbnail_oglBIjM0.png", | ||
".superdeck/assets/thumbnail_Z40wIUYP.png", | ||
".superdeck/assets/thumbnail_9y5hBeTm.png", | ||
".superdeck/assets/thumbnail_CwxHOCpO.png", | ||
".superdeck/assets/thumbnail_pukXIjvK.png", | ||
".superdeck/assets/thumbnail_14RbmSW5.png", | ||
".superdeck/assets/thumbnail_XeDZiCNk.png", | ||
".superdeck/assets/mermaid_srHRIuii.png", | ||
".superdeck/assets/mermaid_srHRIuii.png" | ||
] | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Enhance security of FVM installation.
The current installation method of piping curl directly to bash poses security risks. Consider these improvements:
Here's a safer implementation:
📝 Committable suggestion