diff --git a/.github/workflows/build_plugin.yml b/.github/workflows/build_plugin.yml index 07f427f..47f917c 100644 --- a/.github/workflows/build_plugin.yml +++ b/.github/workflows/build_plugin.yml @@ -18,8 +18,8 @@ jobs: - name: Building Icons run: node generator/gen.js - - name: Exporting Icons - run: node generator/export.js + # - name: Exporting Icons + # run: node generator/export.js - name: Formating the Package run: flutter format . diff --git a/example/test/widget_test.dart b/example/test/widget_test.dart deleted file mode 100644 index 42d5d3e..0000000 --- a/example/test/widget_test.dart +++ /dev/null @@ -1,30 +0,0 @@ -// This is a basic Flutter widget test. -// -// To perform an interaction with a widget in your test, use the WidgetTester -// utility that Flutter provides. For example, you can send tap and scroll -// gestures. You can also use WidgetTester to find child widgets in the widget -// tree, read text, and verify that the values of widget properties are correct. - -import 'package:flutter/material.dart'; -import 'package:flutter_test/flutter_test.dart'; - -import 'package:iconify/main.dart'; - -void main() { - testWidgets('Counter increments smoke test', (WidgetTester tester) async { - // Build our app and trigger a frame. - await tester.pumpWidget(const MyApp()); - - // Verify that our counter starts at 0. - expect(find.text('0'), findsOneWidget); - expect(find.text('1'), findsNothing); - - // Tap the '+' icon and trigger a frame. - await tester.tap(find.byIcon(Icons.add)); - await tester.pump(); - - // Verify that our counter has incremented. - expect(find.text('0'), findsNothing); - expect(find.text('1'), findsOneWidget); - }); -} diff --git a/generator/gen.js b/generator/gen.js index 9180191..32aa02c 100644 --- a/generator/gen.js +++ b/generator/gen.js @@ -41,12 +41,8 @@ import { promises as fs } from 'fs'; const inputIconSetsPath = 'generator/icon-sets/json/'; const iconsets = await fs.readdir(inputIconSetsPath); - for (const i in iconsets) { + for (const iconset of iconsets) { // Skip Colored Iconsets - // TODO: Check This - if (parseInt(i) > 55) continue; - - const iconset = iconsets[i]; let makeit = false; makeIconsList.forEach((item) => { if (item[0] == iconset.split('.')[0]) @@ -56,6 +52,7 @@ import { promises as fs } from 'fs'; console.log('skip ' + iconset); continue; } + if (iconset == 'fluent') continue; // Read file // if (iconset == "flat-color-icons.json") { diff --git a/lib/iconify_flutter.dart b/lib/iconify_flutter.dart index 1fd73d0..a8b3494 100644 --- a/lib/iconify_flutter.dart +++ b/lib/iconify_flutter.dart @@ -3,9 +3,6 @@ library iconify_flutter; import 'package:flutter/widgets.dart'; import 'package:flutter_svg/flutter_svg.dart'; -// ignore: unused_import -import 'icons.dart'; - /// Similarly to Material Icons, use [Iconify] Widget to display Iconify. /// /// diff --git a/website/src/data/index.ts b/website/src/data/index.ts index d4e3000..87939ca 100644 --- a/website/src/data/index.ts +++ b/website/src/data/index.ts @@ -1,8 +1,8 @@ -import type { IconifyJSON } from '@iconify/iconify' import { notNullish } from '@antfu/utils' +import type { IconifyJSON } from '@iconify/iconify' import Iconify from '@purge-icons/generated' -import { favoritedCollections, inProgress, isFavorited, progressMessage } from '../store' import { isLocalMode, staticPath } from '../env' +import { favoritedCollections, inProgress, isFavorited, progressMessage } from '../store' import { loadCollection, saveCollection } from '../store/indexedDB' import infoJSON from './collections-info.json' @@ -41,7 +41,7 @@ export const sortedCollectionsInfo = computed(() => { .sort( (a, b) => favoritedCollections.value.indexOf(b.id) - - favoritedCollections.value.indexOf(a.id), + - favoritedCollections.value.indexOf(a.id), ) })