mirror of
https://github.com/esiur/esiur-dart.git
synced 2025-05-06 04:02:57 +00:00
package
This commit is contained in:
parent
b796bf9436
commit
1bf0bc32ae
71
.gitignore
vendored
71
.gitignore
vendored
@ -1,13 +1,70 @@
|
|||||||
# See https://www.dartlang.org/guides/libraries/private-files
|
# Miscellaneous
|
||||||
|
*.class
|
||||||
|
*.log
|
||||||
|
*.pyc
|
||||||
|
*.swp
|
||||||
|
.DS_Store
|
||||||
|
.atom/
|
||||||
|
.buildlog/
|
||||||
|
.history
|
||||||
|
.svn/
|
||||||
|
|
||||||
# Files and directories created by pub
|
# IntelliJ related
|
||||||
|
*.iml
|
||||||
|
*.ipr
|
||||||
|
*.iws
|
||||||
|
.idea/
|
||||||
|
|
||||||
|
# Visual Studio Code related
|
||||||
|
.vscode/
|
||||||
|
|
||||||
|
# Flutter/Dart/Pub related
|
||||||
|
**/doc/api/
|
||||||
.dart_tool/
|
.dart_tool/
|
||||||
|
.flutter-plugins
|
||||||
.packages
|
.packages
|
||||||
|
.pub-cache/
|
||||||
.pub/
|
.pub/
|
||||||
build/
|
build/
|
||||||
# If you're building an application, you may want to check-in your pubspec.lock
|
|
||||||
pubspec.lock
|
|
||||||
|
|
||||||
# Directory created by dartdoc
|
# Android related
|
||||||
# If you don't generate documentation locally you can remove this line.
|
**/android/**/gradle-wrapper.jar
|
||||||
doc/api/
|
**/android/.gradle
|
||||||
|
**/android/captures/
|
||||||
|
**/android/gradlew
|
||||||
|
**/android/gradlew.bat
|
||||||
|
**/android/local.properties
|
||||||
|
**/android/**/GeneratedPluginRegistrant.java
|
||||||
|
|
||||||
|
# iOS/XCode related
|
||||||
|
**/ios/**/*.mode1v3
|
||||||
|
**/ios/**/*.mode2v3
|
||||||
|
**/ios/**/*.moved-aside
|
||||||
|
**/ios/**/*.pbxuser
|
||||||
|
**/ios/**/*.perspectivev3
|
||||||
|
**/ios/**/*sync/
|
||||||
|
**/ios/**/.sconsign.dblite
|
||||||
|
**/ios/**/.tags*
|
||||||
|
**/ios/**/.vagrant/
|
||||||
|
**/ios/**/DerivedData/
|
||||||
|
**/ios/**/Icon?
|
||||||
|
**/ios/**/Pods/
|
||||||
|
**/ios/**/.symlinks/
|
||||||
|
**/ios/**/profile
|
||||||
|
**/ios/**/xcuserdata
|
||||||
|
**/ios/.generated/
|
||||||
|
**/ios/Flutter/App.framework
|
||||||
|
**/ios/Flutter/Flutter.framework
|
||||||
|
**/ios/Flutter/Generated.xcconfig
|
||||||
|
**/ios/Flutter/app.flx
|
||||||
|
**/ios/Flutter/app.zip
|
||||||
|
**/ios/Flutter/flutter_assets/
|
||||||
|
**/ios/ServiceDefinitions.json
|
||||||
|
**/ios/Runner/GeneratedPluginRegistrant.*
|
||||||
|
|
||||||
|
# Exceptions to above rules.
|
||||||
|
!**/ios/**/default.mode1v3
|
||||||
|
!**/ios/**/default.mode2v3
|
||||||
|
!**/ios/**/default.pbxuser
|
||||||
|
!**/ios/**/default.perspectivev3
|
||||||
|
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
|
||||||
|
10
.metadata
Normal file
10
.metadata
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
# This file tracks properties of this Flutter project.
|
||||||
|
# Used by Flutter tool to assess capabilities and perform upgrades etc.
|
||||||
|
#
|
||||||
|
# This file should be version controlled and should not be manually edited.
|
||||||
|
|
||||||
|
version:
|
||||||
|
revision: 7a4c33425ddd78c54aba07d86f3f9a4a0051769b
|
||||||
|
channel: stable
|
||||||
|
|
||||||
|
project_type: package
|
3
CHANGELOG.md
Normal file
3
CHANGELOG.md
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
## [0.0.1] - TODO: Add release date.
|
||||||
|
|
||||||
|
* TODO: Describe initial release.
|
14
README.md
Normal file
14
README.md
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
# esiur
|
||||||
|
|
||||||
|
A new Flutter package project.
|
||||||
|
|
||||||
|
## Getting Started
|
||||||
|
|
||||||
|
This project is a starting point for a Dart
|
||||||
|
[package](https://flutter.dev/developing-packages/),
|
||||||
|
a library module containing code that can be shared easily across
|
||||||
|
multiple Flutter or Dart projects.
|
||||||
|
|
||||||
|
For help getting started with Flutter, view our
|
||||||
|
[online documentation](https://flutter.dev/docs), which offers tutorials,
|
||||||
|
samples, guidance on mobile development, and a full API reference.
|
@ -1,2 +0,0 @@
|
|||||||
export 'Resource/Warehouse.dart';
|
|
||||||
|
|
96
lib/esiur.dart
Normal file
96
lib/esiur.dart
Normal file
@ -0,0 +1,96 @@
|
|||||||
|
// Resource
|
||||||
|
export 'src/Resource/Warehouse.dart';
|
||||||
|
export 'src/Resource/Instance.dart';
|
||||||
|
export 'src/Resource/IResource.dart';
|
||||||
|
export 'src/Resource/IStore.dart';
|
||||||
|
export 'src/Resource/ResourceTrigger.dart';
|
||||||
|
export 'src/Resource/StorageMode.dart';
|
||||||
|
|
||||||
|
// Resource-Template
|
||||||
|
export 'src/Resource/Template/EventTemplate.dart';
|
||||||
|
export 'src/Resource/Template/FunctionTemplate.dart';
|
||||||
|
export 'src/Resource/Template/MemberTemplate.dart';
|
||||||
|
export 'src/Resource/Template/MemberType.dart';
|
||||||
|
export 'src/Resource/Template/PropertyPermission.dart';
|
||||||
|
export 'src/Resource/Template/PropertyTemplate.dart';
|
||||||
|
export 'src/Resource/Template/ResourceTemplate.dart';
|
||||||
|
|
||||||
|
// -----------------------------------------------------------------
|
||||||
|
// Core
|
||||||
|
export 'src/Core/ProgressType.dart';
|
||||||
|
export 'src/Core/AsyncBag.dart';
|
||||||
|
export 'src/Core/AsyncException.dart';
|
||||||
|
export 'src/Core/AsyncQueue.dart';
|
||||||
|
export 'src/Core/AsyncReply.dart';
|
||||||
|
export 'src/Core/ErrorType.dart';
|
||||||
|
export 'src/Core/ExceptionCode.dart';
|
||||||
|
export 'src/Core/IDestructible.dart';
|
||||||
|
export 'src/Core/IEventHandler.dart';
|
||||||
|
|
||||||
|
// -----------------------------------------------------------------
|
||||||
|
// Data
|
||||||
|
export 'src/Data/AutoList.dart';
|
||||||
|
export 'src/Data/BinaryList.dart';
|
||||||
|
export 'src/Data/Codec.dart';
|
||||||
|
export 'src/Data/DataType.dart';
|
||||||
|
export 'src/Data/DC.dart';
|
||||||
|
export 'src/Data/Guid.dart';
|
||||||
|
export 'src/Data/KeyList.dart';
|
||||||
|
export 'src/Data/NotModified.dart';
|
||||||
|
export 'src/Data/PropertyValue.dart';
|
||||||
|
export 'src/Data/ResourceComparisonResult.dart';
|
||||||
|
export 'src/Data/SizeObject.dart';
|
||||||
|
export 'src/Data/Structure.dart';
|
||||||
|
export 'src/Data/StructureComparisonResult.dart';
|
||||||
|
export 'src/Data/StructureMetadata.dart';
|
||||||
|
export 'src/Data/ValueObject.dart';
|
||||||
|
|
||||||
|
// -----------------------------------------------------------------
|
||||||
|
// Net
|
||||||
|
export 'src/Net/NetworkBuffer.dart';
|
||||||
|
export 'src/Net/NetworkConnection.dart';
|
||||||
|
export 'src/Net/SendList.dart';
|
||||||
|
|
||||||
|
// Net-IIP
|
||||||
|
export 'src/Net/IIP/DistributedConnection.dart';
|
||||||
|
export 'src/Net/IIP/DistributedPropertyContext.dart';
|
||||||
|
export 'src/Net/IIP/DistributedResource.dart';
|
||||||
|
export 'src/Net/IIP/DistributedResourceQueueItem.dart';
|
||||||
|
export 'src/Net/IIP/DistributedResourceQueueItemType.dart';
|
||||||
|
|
||||||
|
// Net-Packets
|
||||||
|
export 'src/Net/Packets/IIPAuthPacket.dart';
|
||||||
|
export 'src/Net/Packets/IIPAuthPacketAction.dart';
|
||||||
|
export 'src/Net/Packets/IIPAuthPacketCommand.dart';
|
||||||
|
export 'src/Net/Packets/IIPAuthPacketMethod.dart';
|
||||||
|
export 'src/Net/Packets/IIPPacket.dart';
|
||||||
|
export 'src/Net/Packets/IIPPacketAction.dart';
|
||||||
|
export 'src/Net/Packets/IIPPacketCommand.dart';
|
||||||
|
export 'src/Net/Packets/IIPPacketEvent.dart';
|
||||||
|
export 'src/Net/Packets/IIPPacketReport.dart';
|
||||||
|
|
||||||
|
// Net-Sockets
|
||||||
|
export 'src/Net/Sockets/IPEndPoint.dart';
|
||||||
|
export 'src/Net/Sockets/ISocket.dart';
|
||||||
|
export 'src/Net/Sockets/SocketState.dart';
|
||||||
|
export 'src/Net/Sockets/TCPSocket.dart';
|
||||||
|
|
||||||
|
// -----------------------------------------------------------------
|
||||||
|
// Security-Authority
|
||||||
|
export 'src/Security/Authority/Authentication.dart';
|
||||||
|
export 'src/Security/Authority/AuthenticationState.dart';
|
||||||
|
export 'src/Security/Authority/AuthenticationType.dart';
|
||||||
|
export 'src/Security/Authority/ClientAuthentication.dart';
|
||||||
|
export 'src/Security/Authority/CoHostAuthentication.dart';
|
||||||
|
export 'src/Security/Authority/HostAuthentication.dart';
|
||||||
|
export 'src/Security/Authority/Session.dart';
|
||||||
|
export 'src/Security/Authority/Source.dart';
|
||||||
|
export 'src/Security/Authority/SourceAttributeType.dart';
|
||||||
|
|
||||||
|
// Security-Integrity
|
||||||
|
export 'src/Security/Integrity/SHA256.dart';
|
||||||
|
|
||||||
|
// Security-Permissions
|
||||||
|
export 'src/Security/Permissions/ActionType.dart';
|
||||||
|
export 'src/Security/Permissions/IPermissionsManager.dart';
|
||||||
|
export 'src/Security/Permissions/Ruling.dart';
|
@ -1,4 +1,4 @@
|
|||||||
library esiur;
|
// library esiur;
|
||||||
|
|
||||||
import 'IEventHandler.dart';
|
import 'IEventHandler.dart';
|
||||||
|
|
@ -28,7 +28,10 @@ import '../Data/KeyList.dart';
|
|||||||
import './Template/PropertyTemplate.dart';
|
import './Template/PropertyTemplate.dart';
|
||||||
import '../Data/PropertyValue.dart';
|
import '../Data/PropertyValue.dart';
|
||||||
|
|
||||||
abstract class IStore extends IResource
|
// old
|
||||||
|
// abstract class IStore extends IResource
|
||||||
|
// new
|
||||||
|
abstract class IStore implements IResource
|
||||||
{
|
{
|
||||||
AsyncReply<IResource> get(String path);
|
AsyncReply<IResource> get(String path);
|
||||||
AsyncReply<IResource> retrieve(int iid);
|
AsyncReply<IResource> retrieve(int iid);
|
139
pubspec.lock
Normal file
139
pubspec.lock
Normal file
@ -0,0 +1,139 @@
|
|||||||
|
# Generated by pub
|
||||||
|
# See https://www.dartlang.org/tools/pub/glossary#lockfile
|
||||||
|
packages:
|
||||||
|
async:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: async
|
||||||
|
url: "https://pub.dartlang.org"
|
||||||
|
source: hosted
|
||||||
|
version: "2.1.0"
|
||||||
|
boolean_selector:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: boolean_selector
|
||||||
|
url: "https://pub.dartlang.org"
|
||||||
|
source: hosted
|
||||||
|
version: "1.0.4"
|
||||||
|
charcode:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: charcode
|
||||||
|
url: "https://pub.dartlang.org"
|
||||||
|
source: hosted
|
||||||
|
version: "1.1.2"
|
||||||
|
collection:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: collection
|
||||||
|
url: "https://pub.dartlang.org"
|
||||||
|
source: hosted
|
||||||
|
version: "1.14.11"
|
||||||
|
flutter:
|
||||||
|
dependency: "direct main"
|
||||||
|
description: flutter
|
||||||
|
source: sdk
|
||||||
|
version: "0.0.0"
|
||||||
|
flutter_test:
|
||||||
|
dependency: "direct dev"
|
||||||
|
description: flutter
|
||||||
|
source: sdk
|
||||||
|
version: "0.0.0"
|
||||||
|
matcher:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: matcher
|
||||||
|
url: "https://pub.dartlang.org"
|
||||||
|
source: hosted
|
||||||
|
version: "0.12.5"
|
||||||
|
meta:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: meta
|
||||||
|
url: "https://pub.dartlang.org"
|
||||||
|
source: hosted
|
||||||
|
version: "1.1.6"
|
||||||
|
path:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: path
|
||||||
|
url: "https://pub.dartlang.org"
|
||||||
|
source: hosted
|
||||||
|
version: "1.6.2"
|
||||||
|
pedantic:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: pedantic
|
||||||
|
url: "https://pub.dartlang.org"
|
||||||
|
source: hosted
|
||||||
|
version: "1.5.0"
|
||||||
|
quiver:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: quiver
|
||||||
|
url: "https://pub.dartlang.org"
|
||||||
|
source: hosted
|
||||||
|
version: "2.0.2"
|
||||||
|
sky_engine:
|
||||||
|
dependency: transitive
|
||||||
|
description: flutter
|
||||||
|
source: sdk
|
||||||
|
version: "0.0.99"
|
||||||
|
source_span:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: source_span
|
||||||
|
url: "https://pub.dartlang.org"
|
||||||
|
source: hosted
|
||||||
|
version: "1.5.5"
|
||||||
|
stack_trace:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: stack_trace
|
||||||
|
url: "https://pub.dartlang.org"
|
||||||
|
source: hosted
|
||||||
|
version: "1.9.3"
|
||||||
|
stream_channel:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: stream_channel
|
||||||
|
url: "https://pub.dartlang.org"
|
||||||
|
source: hosted
|
||||||
|
version: "2.0.0"
|
||||||
|
string_scanner:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: string_scanner
|
||||||
|
url: "https://pub.dartlang.org"
|
||||||
|
source: hosted
|
||||||
|
version: "1.0.4"
|
||||||
|
term_glyph:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: term_glyph
|
||||||
|
url: "https://pub.dartlang.org"
|
||||||
|
source: hosted
|
||||||
|
version: "1.1.0"
|
||||||
|
test_api:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: test_api
|
||||||
|
url: "https://pub.dartlang.org"
|
||||||
|
source: hosted
|
||||||
|
version: "0.2.4"
|
||||||
|
typed_data:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: typed_data
|
||||||
|
url: "https://pub.dartlang.org"
|
||||||
|
source: hosted
|
||||||
|
version: "1.1.6"
|
||||||
|
vector_math:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: vector_math
|
||||||
|
url: "https://pub.dartlang.org"
|
||||||
|
source: hosted
|
||||||
|
version: "2.0.8"
|
||||||
|
sdks:
|
||||||
|
dart: ">=2.2.0 <3.0.0"
|
53
pubspec.yaml
Normal file
53
pubspec.yaml
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
name: esiur
|
||||||
|
description: A new Flutter package project.
|
||||||
|
version: 0.0.1
|
||||||
|
author: Ahmed Zamil <ahmed@dijlh.com>
|
||||||
|
homepage: https://github.com/esiur/esiur-dart
|
||||||
|
|
||||||
|
environment:
|
||||||
|
sdk: ">=2.1.0 <3.0.0"
|
||||||
|
|
||||||
|
dependencies:
|
||||||
|
flutter:
|
||||||
|
sdk: flutter
|
||||||
|
|
||||||
|
dev_dependencies:
|
||||||
|
flutter_test:
|
||||||
|
sdk: flutter
|
||||||
|
|
||||||
|
# For information on the generic Dart part of this file, see the
|
||||||
|
# following page: https://www.dartlang.org/tools/pub/pubspec
|
||||||
|
|
||||||
|
# The following section is specific to Flutter.
|
||||||
|
flutter:
|
||||||
|
|
||||||
|
# To add assets to your package, add an assets section, like this:
|
||||||
|
# assets:
|
||||||
|
# - images/a_dot_burr.jpeg
|
||||||
|
# - images/a_dot_ham.jpeg
|
||||||
|
#
|
||||||
|
# For details regarding assets in packages, see
|
||||||
|
# https://flutter.dev/assets-and-images/#from-packages
|
||||||
|
#
|
||||||
|
# An image asset can refer to one or more resolution-specific "variants", see
|
||||||
|
# https://flutter.dev/assets-and-images/#resolution-aware.
|
||||||
|
|
||||||
|
# To add custom fonts to your package, add a fonts section here,
|
||||||
|
# in this "flutter" section. Each entry in this list should have a
|
||||||
|
# "family" key with the font family name, and a "fonts" key with a
|
||||||
|
# list giving the asset and other descriptors for the font. For
|
||||||
|
# example:
|
||||||
|
# fonts:
|
||||||
|
# - family: Schyler
|
||||||
|
# fonts:
|
||||||
|
# - asset: fonts/Schyler-Regular.ttf
|
||||||
|
# - asset: fonts/Schyler-Italic.ttf
|
||||||
|
# style: italic
|
||||||
|
# - family: Trajan Pro
|
||||||
|
# fonts:
|
||||||
|
# - asset: fonts/TrajanPro.ttf
|
||||||
|
# - asset: fonts/TrajanPro_Bold.ttf
|
||||||
|
# weight: 700
|
||||||
|
#
|
||||||
|
# For details regarding fonts in packages, see
|
||||||
|
# https://flutter.dev/custom-fonts/#from-packages
|
@ -1,6 +1,14 @@
|
|||||||
import 'esiur.dart';
|
import 'package:flutter_test/flutter_test.dart';
|
||||||
|
import 'package:esiur/esiur.dart';
|
||||||
|
|
||||||
main() async
|
void main() {
|
||||||
|
test('adds one to input values', () {
|
||||||
|
connect();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
connect() async
|
||||||
{
|
{
|
||||||
// connect to the server
|
// connect to the server
|
||||||
var x = await Warehouse.get("iip://localhost:5000/db/my", {"username": "demo", "password": "1234"});
|
var x = await Warehouse.get("iip://localhost:5000/db/my", {"username": "demo", "password": "1234"});
|
Loading…
x
Reference in New Issue
Block a user