Skip to content

Commit

Permalink
Manage comman assets images for placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-dharti-r committed Jan 11, 2024
1 parent 892c748 commit fb4bdf2
Show file tree
Hide file tree
Showing 38 changed files with 48 additions and 3,811 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Check Version Existence
id: check_version
run: |
if npm show @canopassoftware/[email protected].7; then
if npm show @canopassoftware/[email protected].8; then
echo "Version already published. Skipping npm publish."
echo "::set-output name=skip_publish::true"
else
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
2 changes: 1 addition & 1 deletion react/examples/LongSquareView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import Image, { StaticImageData } from "next/image";
import React, { useState } from "react";
import placeHolderImg from "../assets/images/placeholder.png";
import placeHolderImg from "../../assets/images/placeholder.png";
import "@canopassoftware/react-file-upload/style.css"
import {
SingleFileUpload,
Expand Down
2 changes: 1 addition & 1 deletion react/examples/RoundView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import Image, { StaticImageData } from "next/image";
import React, { useState } from "react";
import placeHolderImg from "../assets/images/placeholder.png";
import placeHolderImg from "../../assets/images/placeholder.png";
import "@canopassoftware/react-file-upload/style.css"
import {
SingleFileUpload,
Expand Down
2 changes: 1 addition & 1 deletion react/examples/SquareView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import Image, { StaticImageData } from "next/image";
import React, { useState } from "react";
import placeHolderImg from "../assets/images/placeholder.png";
import placeHolderImg from "../../assets/images/placeholder.png";
import "@canopassoftware/react-file-upload/style.css"
import {
SingleFileUpload,
Expand Down
1 change: 1 addition & 0 deletions react/examples/demo/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import Image, { StaticImageData } from "next/image";
import React, { useState } from "react";
import "@canopassoftware/react-file-upload/style.css"
import {
SingleFileUpload,
MultipleFileUpload,
Expand Down
4 changes: 2 additions & 2 deletions react/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@canopassoftware/react-file-upload",
"version": "1.2.0",
"version": "1.1.35",
"description": "Show the preview of file and manage files data to upload",
"main": "index.umd.js",
"repository": {
Expand Down Expand Up @@ -55,7 +55,6 @@
"example": "examples"
},
"files": [
"./assets",
"./index.mjs",
"./index.umd.js",
"./style.css"
Expand Down
14 changes: 7 additions & 7 deletions react/src/app/components/multipleFileUpload.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
"use client";

import React, { useState, useRef, RefObject } from "react";
import pdfPreviewImg from "../../../assets/images/pdf-icon.png";
import textPreviewImg from "../../../assets/images/text-icon.png";
import audioPreviewImg from "../../../assets/images/music-icon.png";
import apkPreviewImg from "../../../assets/images/apk-icon.png";
import zipPreviewImg from "../../../assets/images/zip-icon.png";
import sqlPreviewImg from "../../../assets/images/sql-icon.png";
import filePreviewImg from "../../../assets/images/file-icon.png";
import pdfPreviewImg from "../../../../assets/images/pdf-icon.png";
import textPreviewImg from "../../../../assets/images/text-icon.png";
import audioPreviewImg from "../../../../assets/images/music-icon.png";
import apkPreviewImg from "../../../../assets/images/apk-icon.png";
import zipPreviewImg from "../../../../assets/images/zip-icon.png";
import sqlPreviewImg from "../../../../assets/images/sql-icon.png";
import filePreviewImg from "../../../../assets/images/file-icon.png";
import { StaticImageData } from "next/image";
type InputElementType = HTMLInputElement;

Expand Down
14 changes: 7 additions & 7 deletions react/src/app/components/singleFileUpload.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
"use client";

import React, { useState, useRef } from "react";
import pdfPreviewImg from "../../../assets/images/pdf-icon.png";
import textPreviewImg from "../../../assets/images/text-icon.png";
import audioPreviewImg from "../../../assets/images/music-icon.png";
import apkPreviewImg from "../../../assets/images/apk-icon.png";
import zipPreviewImg from "../../../assets/images/zip-icon.png";
import sqlPreviewImg from "../../../assets/images/sql-icon.png";
import filePreviewImg from "../../../assets/images/file-icon.png";
import pdfPreviewImg from "../../../../assets/images/pdf-icon.png";
import textPreviewImg from "../../../../assets/images/text-icon.png";
import audioPreviewImg from "../../../../assets/images/music-icon.png";
import apkPreviewImg from "../../../../assets/images/apk-icon.png";
import zipPreviewImg from "../../../../assets/images/zip-icon.png";
import sqlPreviewImg from "../../../../assets/images/sql-icon.png";
import filePreviewImg from "../../../../assets/images/file-icon.png";
import { StaticImageData } from "next/image";

export default function SingleFileUpload({
Expand Down
3 changes: 1 addition & 2 deletions react/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import type { Metadata } from "next";
import { Inter } from "next/font/google";
import "./globals.css";
import "../../dist/css/output.css";
import "../../dist/css/style.scss";
import "../../dist/style.css";

const inter = Inter({ subsets: ["latin"] });

Expand Down
Loading

0 comments on commit fb4bdf2

Please sign in to comment.