Skip to content
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

Implemented autosave on a 5-second timer #3037

Merged
merged 18 commits into from
Jan 16, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixed lints
Levi-Lesches committed Dec 13, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 333027016704d10784f62c37c8e39bd65c1c73ff
6 changes: 1 addition & 5 deletions pkgs/dartpad_ui/test/autosave_test.dart
Original file line number Diff line number Diff line change
@@ -2,16 +2,12 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

import 'dart:convert';

import 'package:dartpad_ui/gists.dart';
import 'package:dartpad_ui/local_storage.dart';
import 'package:dartpad_ui/model.dart';
import 'package:dartpad_ui/samples.g.dart';
import 'package:dartpad_ui/utils.dart';
import 'package:test/test.dart';

import 'gists_test.dart';
import 'package:test/test.dart';

String getFallback() =>
LocalStorage.instance.getUserCode() ?? Samples.defaultSnippet();