Giter Club home page Giter Club logo

renovation_core.dart's Introduction

Getting Started

Backend

First you need to install renovation_core app from backend

bench get-app renovation_core https://github.com/leam-tech/renovation_core.git 

Dart/Flutter

To get started, just import the package like:

import 'package:renovation_core/core.dart';

Auth

import 'package:renovation_core/auth.dart';

Model

import 'package:renovation_core/model.dart';

Meta

import 'package:renovation_core/meta.dart';

Permission

import 'package:renovation_core/perm.dart';

Storage

import 'package:renovation_core/storage.dart';

Translation

import 'package:renovation_core/translation.dart';

Misc

import 'package:renovation_core/misc.dart';

Backend Specific

import 'package:renovation_core/backend.dart';

Documentation

Renovation Documentation

renovation_core.dart's People

Contributors

assemmarwan avatar ikerfah avatar malikzu avatar mohamedzu avatar nabilshuja avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

renovation_core.dart's Issues

Enhancment in isDBListValue

I need to use filter for multiple values specailly for "IN" & "NOT IN" db operator ,
like in this case

        filters: <String, dynamic>{
          "city": [
            "IN",
            ["Dubi", "Abu Dhabi", "Sharjah]
          ],
        },

but I got an exception of not dbfilters so
Can you please add support for List<dynamic> in

  static bool _isDBListValue(dynamic value) =>
      value == null ||
      value is List<String> ||
      value is List<int> ||
      value is List<double>;

DocPerm not defined

Hi all,
I'm trying to use getPerm method from getFrappePermissionController,
This method has as return type RequestResponse<List<DocPerm>>
I can't import DocPerm to continue, And the IDE is asking to create the class so i think it's not visible or not exported.
The code i tried to run :

RequestResponse<List<DocPerm>> getPermResult = await getFrappePermissionController().getPerm(
  doctype: "Item"
);

Cookie not sent with socket.io headers when using Cookies for authentication

When using cookies for authentication, the Cookies are not set in the headers.

final opts = <dynamic, dynamic>{
  'path': path,
  'transports': <String>['websocket'],
  'extraHeaders': requiresAuthorization
      ? <String, String>{
    'Authorization': RenovationRequestOptions.headers['Authorization']  
    // <=== "Cookie missing here, if any"
  }
      : null
};

Miscellaneous string functions do not work as intended

When calling a simple function such as this;

final title = underScoreToTitle('title_case');
print(title);

the output is TiTle_case, when it should be Title Case.

The issue also seems to be present for toTitleCase & underScoreToCamel.

The app "renovation_core" is not installed in the backend [v13]

Hello,
I'm trying to migrate the app API endpoint to new one running on frappe version 13 (current is 12)
i'm getting this error message :

The app "renovation_core" is not installed in the backend.

I tried also to signup and use SMS OTP verification and i got this error too

Please install it to be able to use the feature(s):

sendOTP

Any suggestions ?

Ambiguous import : Status enum defined in both model and storage

Hey,
When i tried to use storage controller with uploadFile method and listen to the stream emitted,
i can't use Status enum provided by storage lib because Status is already defined in the model lib.
(Same name but different implementations).
So the problem is :
error: The name 'Status' is defined in the libraries 'package:lts_renovation_core/src/model/interfaces.dart (via package:lts_renovation_core/model.dart)' and 'package:lts_renovation_core/src/storage/interfaces.dart'. (ambiguous_import at [cookbook_sample_app] lib/core/services/api.dart:186)

My temporary solution was to use as prefix:
import 'package:lts_renovation_core/src/storage/interfaces.dart' as Storage;

Using this temporary is not good for dart and the compiler throws lint info as following:
info: Don't import implementation files from another package.
and is why Don't

Socket.IO does not connect after disconnecting

Issue

On calling connect() for socket.io after being connected, the socket disconnects, but doesn't connect again. The application basically has to be restarted.

Suggested Solution

If _socket is not null, do the following on connect():

  • reuse the _socket property and modify the url and options
  • Disconnect and connect sequentially.

If _socket is null, initialize as the code does now.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.