aloha 3.0.0

  • Readme
  • Changelog
  • Example
  • Installing
  • 36

aloha #

Bindings for the Aloha HTML5 editor.

This version currently implements nearly all the core Aloha Events and API and the editables API. Repository and registry API's are not yet implemented.

Please see the usage.md document in the doc directory for further usage details.

3.0.0 #

Updates for Dart 2.0

2.0.1 #

Updated for use with Dart 1.6 Issues 1 and 2 incorporated. Note: Aloha now uses dart:js, not package:js, no API changes

2.0.0 #

Updated for Dart 1.0 Aloha CDN now uses latest branch Note; still using js 0.0.26, not upgraded this at this time

example/example.dart

/*
 * Package : aloha
 * Author : S. Hamblett <steve.hamblett@linux.com>
 * Date   : 05/09/2018
 * Copyright :  S.Hamblett@OSCF
 */

/// Examples of usage to be found in the test suite
int main() {
  return 0;
}

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  aloha: ^3.0.0

2. Install it

You can install packages from the command line:

with pub:


$ pub get

Alternatively, your editor might support pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:aloha/aloha.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
0
Health:
Code health derived from static analysis. [more]
70
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
74
Overall:
Weighted score of the above. [more]
36
Learn more about scoring.

We analyzed this package on Dec 9, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.6.1
  • pana: 0.12.21

Health suggestions

Fix lib/src/Aloha.dart. (-25.60 points)

Analysis of lib/src/Aloha.dart reported 59 hints, including:

line 30 col 11: Unnecessary new keyword.

line 60 col 41: Unnecessary new keyword.

line 76 col 12: Don't explicitly initialize variables to null.

line 80 col 11: Unnecessary new keyword.

line 85 col 13: Unnecessary new keyword.

Fix lib/src/AlohaClassTypes.dart. (-3.45 points)

Analysis of lib/src/AlohaClassTypes.dart reported 7 hints, including:

line 16 col 10: Don't explicitly initialize variables to null.

line 32 col 17: Don't explicitly initialize variables to null.

line 37 col 10: Don't explicitly initialize variables to null.

line 42 col 7: Don't explicitly initialize variables to null.

line 47 col 10: Don't explicitly initialize variables to null.

Fix lib/src/AlohaEditable.dart. (-1.99 points)

Analysis of lib/src/AlohaEditable.dart reported 4 hints:

line 18 col 15: Don't explicitly initialize variables to null.

line 23 col 15: Don't explicitly initialize variables to null.

line 91 col 7: DO use curly braces for all flow control structures.

line 91 col 13: Unnecessary new keyword.

Maintenance suggestions

Package is getting outdated. (-26.03 points)

The package was last published 65 weeks ago.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev <3.0.0
Dev dependencies
build_runner ^0.10.0
build_test ^0.10.2
build_web_compilers ^0.4.0
coverage ^0.12.2
dart_style ^1.1.3
dartdoc ^0.20.3
test ^1.3.0