diff --git a/.eslintrc b/.eslintrc index 603b09bc9a..564e160191 100755 --- a/.eslintrc +++ b/.eslintrc @@ -58,6 +58,7 @@ "react/destructuring-assignment": 0, "react/display-name": 0, "react/jsx-curly-brace-presence": 0, + "react/jsx-curly-newline": 0, "react/jsx-filename-extension": 0, "react/jsx-fragments": 0, "react/jsx-no-bind": "warn", @@ -89,7 +90,6 @@ "API": true, "API_VERSION": true, "NETWORK": true, - "MOBX_DEV_TOOLS": true, "BUILD_NUMBER": true, "Process": true // TODO: remove after fix }, diff --git a/.prettierignore b/.prettierignore index 523aeda201..906172dffe 100644 --- a/.prettierignore +++ b/.prettierignore @@ -5,6 +5,7 @@ !source/ !features/ !storybook/ +!tests/ # Now we ignore all files *.* diff --git a/CHANGELOG.md b/CHANGELOG.md index 8d0380703c..8b6ebf9cc8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ ### Fixes +- Fixed issue with missing character when copying address from PDF ([PR 2925](https://github.com/input-output-hk/daedalus/pull/2925)) - Fixed stake pool list view overlapping news feed ([PR 2917](https://github.com/input-output-hk/daedalus/pull/2917)) - Restored opacity for search icon when focused ([PR 2909](https://github.com/input-output-hk/daedalus/pull/2909)) - Fixed styling of the incentivized testnet rewards wallet dropdown ([PR 2907](https://github.com/input-output-hk/daedalus/pull/2907)) @@ -20,6 +21,8 @@ ### Chores +- Using new faker.js ([PR 2855](https://github.com/input-output-hk/daedalus/pull/2855)) +- Removed `dockutil` due compatibility issues with MacOs Monterey 12.3 ([PR 2929](https://github.com/input-output-hk/daedalus/pull/2929)) - Fixed spelling issues and typos ([PR 2915](https://github.com/input-output-hk/daedalus/pull/2915)) - Removed SASS ts-lint ignore comments ([PR 2870](https://github.com/input-output-hk/daedalus/pull/2870)) - Enabled debugging of the main process ([PR 2893](https://github.com/input-output-hk/daedalus/pull/2893)) diff --git a/declaration.d.ts b/declaration.d.ts index e598e2a913..13ffd532f7 100644 --- a/declaration.d.ts +++ b/declaration.d.ts @@ -34,12 +34,12 @@ export type EnumMap< > = O & Record>; declare global { + let daedalus: Daedalus; namespace NodeJS { interface ProcessEnv { WALLET_COUNT: number; } } - var daedalus: Daedalus; } export {}; diff --git a/installers/common/MacInstaller.hs b/installers/common/MacInstaller.hs index 666907a6d0..e6fb54bcbf 100644 --- a/installers/common/MacInstaller.hs +++ b/installers/common/MacInstaller.hs @@ -177,27 +177,6 @@ codeSignEntitlements = [r| |] -makePostInstall :: Format a (Text -> a) -makePostInstall = "#!/usr/bin/env bash\n" % - "#\n" % - "# See /var/log/install.log to debug this\n" % - "\n" % - "src_pkg=\"$1\"\ndst_root=\"$2\"\ndst_mount=\"$3\"\nsys_root=\"$4\"\n" % - "./dockutil --add \"${dst_root}/" % s % "\" --allhomes\n" - -makeScriptsDir :: Options -> DarwinConfig -> Managed T.Text -makeScriptsDir Options{oBackend} DarwinConfig{dcAppNameApp} = case oBackend of - Cardano _ -> common - where - common = do - tmp <- fromString <$> (liftIO $ getEnv "TMP") - tempdir <- mktempdir tmp "scripts" - liftIO $ do - cp "data/scripts/dockutil" (tempdir "dockutil") - writeTextFile (tempdir "postinstall") (format makePostInstall dcAppNameApp) - chmod executable (tempdir "postinstall") - pure $ tt tempdir - makeSigningDir :: Managed (T.Text, T.Text) makeSigningDir = do tmp <- fromString <$> (liftIO $ getEnv "TMP") @@ -389,27 +368,21 @@ makeComponentRoot Options{oBackend,oCluster} appRoot darwinConfig@DarwinConfig{d exit $ ExitFailure 1 makeInstaller :: Options -> DarwinConfig -> FilePath -> FilePath -> IO FilePath -makeInstaller opts@Options{oOutputDir} darwinConfig@DarwinConfig{dcPkgName} componentRoot pkg = do +makeInstaller Options{oOutputDir} DarwinConfig{dcPkgName} componentRoot pkg = do echo "Making installer ..." - let tempPkg1 = format fp (oOutputDir pkg) - tempPkg2 = oOutputDir (dropExtension pkg <.> "unsigned" <.> "pkg") + let + tempPkg1 = format fp (oOutputDir pkg) + tempPkg2 = oOutputDir (dropExtension pkg <.> "unsigned" <.> "pkg") + pkgargs :: [ T.Text ] + pkgargs = + [ "--identifier", dcPkgName + , "--component", tt componentRoot + , "--install-location", "/Applications" + , tempPkg1 + ] mktree oOutputDir - with (makeScriptsDir opts darwinConfig) $ \scriptsDir -> do - let - pkgargs :: [ T.Text ] - pkgargs = - [ "--identifier" - , dcPkgName - , "--scripts", scriptsDir - , "--component" - , tt componentRoot - , "--install-location" - , "/Applications" - , tempPkg1 - ] - run "ls" [ "-ltrh", scriptsDir ] - run "pkgbuild" pkgargs + run "pkgbuild" pkgargs run "productbuild" [ "--product", "data/plist" , "--package", tempPkg1 diff --git a/installers/data/scripts/dockutil b/installers/data/scripts/dockutil deleted file mode 100755 index 1ad861aca8..0000000000 --- a/installers/data/scripts/dockutil +++ /dev/null @@ -1,681 +0,0 @@ -#!/usr/bin/python - -# Copyright 2008 Kyle Crawford - -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Send bug reports and comments to kcrwfrd at gmail - -# Possible future enhancements -# tie in with application identifier codes for locating apps and replacing them in the dock with newer versions? - -import sys, plistlib, subprocess, os, getopt, re, pipes, tempfile, pwd -import platform -import time - - -# default verbose printing to off -verbose = False -version = '2.0.5' - -def usage(e=None): - """Displays usage information and error if one occurred""" - - print """usage: %(progname)s -h -usage: %(progname)s --add | [--label