Skip to content

Commit

Permalink
Refactor project structure for blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathangomz committed Jun 1, 2021
1 parent c51c7d5 commit dcee245
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'notion_types.dart';
import '../rich_text/notion_types.dart';
import 'text.dart';

/// A representation of the Paragraph notion object.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'colors.dart';
import '../rich_text/colors.dart';

/// A representation of the Text notion object.
class Text {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:notion_api/models/rich_text/paragraph.dart';
import 'package:notion_api/models/blocks/paragraph.dart';

import 'notion_types.dart';
import '../rich_text/notion_types.dart';
import 'text.dart';

/// A representation of the Paragraph notion object.
Expand Down
6 changes: 3 additions & 3 deletions lib/models/children.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'rich_text/heading.dart';
import 'rich_text/paragraph.dart';
import 'rich_text/todo.dart';
import 'blocks/heading.dart';
import 'blocks/paragraph.dart';
import 'blocks/todo.dart';

/// A representation of the Children json for the Notion API.
class Children {
Expand Down
2 changes: 1 addition & 1 deletion lib/models/pages.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'rich_text/text.dart';
import 'blocks/text.dart';

/// A representation of the Page notion object.
class Page {
Expand Down
8 changes: 4 additions & 4 deletions test/notion_api_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import 'package:dotenv/dotenv.dart' show load, env, clean;
import 'dart:io' show Platform;
import 'package:notion_api/models/children.dart';
import 'package:notion_api/models/pages.dart';
import 'package:notion_api/models/rich_text/paragraph.dart';
import 'package:notion_api/models/rich_text/text.dart';
import 'package:notion_api/models/blocks/paragraph.dart';
import 'package:notion_api/models/blocks/text.dart';
import 'package:notion_api/models/rich_text/colors.dart';
import 'package:notion_api/models/rich_text/heading.dart';
import 'package:notion_api/models/rich_text/todo.dart';
import 'package:notion_api/models/blocks/heading.dart';
import 'package:notion_api/models/blocks/todo.dart';
import 'package:notion_api/notion.dart';
import 'package:notion_api/notion_blocks.dart';
import 'package:notion_api/notion_databases.dart';
Expand Down

0 comments on commit dcee245

Please sign in to comment.